Skip to content

Instantly share code, notes, and snippets.

@adricasti
adricasti / chromium-wayland.sh
Last active January 21, 2026 13:45
Script to install a Chromium Kiosk in Alpine Linux
#!/bin/sh
# 1. Enable Community Repositories automatically
# This searches for lines containing '/community' and removes the '#' prefix
sed -i 's/#http/http/g' /etc/apk/repositories
# 2. Add required packages
# mesa-egl and mesa-gbm are included automatically by mesa-dri-gallium and mesa-va-gallium
apk update
apk add open-vm-tools sway swaybg mesa-dri-gallium mesa-va-gallium \
@adricasti
adricasti / Svelte.md
Created November 25, 2021 16:45
Svelte Boilerplate

New Svelte App with Material UI

npm init svelte@next my-app
cd my-app
npm install

Add Material UI

@adricasti
adricasti / Vault.java
Created July 3, 2020 11:28
Extended length APDU read and write
package storage;
import javacard.framework.*;
import javacardx.apdu.ExtendedLength;
public class Vault extends Applet implements ExtendedLength {
final static byte GET_DATA = (byte) 0xCB;
final static byte PUT_DATA = (byte) 0xDB;
private byte[] objBuffer;
@adricasti
adricasti / Readme.md
Last active June 24, 2020 18:59
nRF52 Toolchain Setup in Mac OS X

Equipment

  • MacOS Mojave 10.14.4
  • MacBook Pro (Retina, 13-inch, Late 2012)
  • nRF52-DK (PCA10040)

Toolchain Setup

  1. Install GCC