Skip to content

Instantly share code, notes, and snippets.

@0xinterface
0xinterface / android.Dockerfile
Last active January 3, 2019 14:15
Docker Build Specs for Android SDK
FROM openjdk:8-slim
LABEL maintainer "Kristopher Lam <kris@sandb0x.io>"
ENV SDK_TOOLS_REV="4333796" \
ANDROID_HOME="/opt/android-sdk" \
ANDROID_COMPILE_SDK="28" \
ANDROID_BUILD_TOOLS_VERSION="28.0.2" \
PATH="${PATH}:/opt/android-sdk/tools/bin:/opt/android-sdk/platform-tools"
WORKDIR /tmp
@0xinterface
0xinterface / flutter.Dockerfile
Last active January 3, 2019 14:15
Docker Build Specs for Flutter SDK (Android Platform Only)
FROM openjdk:8-slim
LABEL maintainer "Kristopher Lam <kris@sandb0x.io>"
ENV SDK_TOOLS_REV="4333796" \
ANDROID_HOME="/opt/android-sdk" \
ANDROID_COMPILE_SDK="28" \
ANDROID_BUILD_TOOLS_VERSION="28.0.2" \
FLUTTER_HOME="/opt/flutter" \
PATH="${PATH}:/opt/android-sdk/tools/bin:/opt/android-sdk/platform-tools:/opt/flutter/bin:/opt/flutter/bin/cache/dart-sdk/bin"
@0xinterface
0xinterface / instructions.md
Last active July 16, 2021 15:17
Raspberry Pi 3 @HKUST eduroam

Edit /etc/wpa_supplicant/wpa_supplicant.conf

  • requires sudo administrative right
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
  ssid="eduroam"
 scan_ssid=1
@0xinterface
0xinterface / AppDelegate.swift
Last active November 14, 2017 04:22
Cheatsheet
var window: UIWindow?
var navigationController: UINavigationController?
var mainViewController: UIViewController?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.main.bounds)
mainViewController = UIViewController()
navigationController = UINavigationController(rootViewController: mainViewController!)
@0xinterface
0xinterface / how-to-become-a-better-learner.md
Last active September 9, 2017 08:56
How to Become a Better Learner

How to Become a Better Learner

Everybody hates that feeling when you spend three weeks reading a book, and a month later somebody asks you about it and you can’t remember a damn thing you read. Not only does it make you feel stupid, but it also makes you wonder why the hell you wasted a couple dozen hours of your life on a bunch of words that didn’t stick.

There are better and worse ways to learn. And interestingly, despite all of the babbling that goes on in school when you’re a kid about what you need to learn, not much is said about how to learn effectively.

1. Memory is Based on Relevance

@0xinterface
0xinterface / example.service
Created June 28, 2017 07:01
systemd service file example
[Unit]
Description=Your comment or description here
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/yourprogram with-your-args somesort
[Install]
@0xinterface
0xinterface / keybase.md
Last active February 19, 2017 03:59
keybase.md

Keybase proof

I hereby claim:

  • I am 0xinterface on github.
  • I am kristopher (https://keybase.io/kristopher) on keybase.
  • I have a public key whose fingerprint is 1E7E 184C ABF0 31C3 8623 0472 D3E1 E925 2A0C AC3C

To claim this, I am signing this object: