Skip to content

Instantly share code, notes, and snippets.

@ildar
ildar / init_draft.lua
Created July 15, 2019 11:44
NodeMCU init_draft.lua
-- require "tmr"
rr_tmr = tmr.create() -- round-robin timer for wifi connect
stations = {
current = 0,
{
ssid="AP1",
pwd="123456",
save=false
},
@ildar
ildar / 61_android
Created July 29, 2014 11:00
/etc/grub.d/61_android entry for Android-x86 boot
#!/bin/sh
exec tail -n +3 $0
menuentry "Android-x86" {
set root='(hd0,msdos9)'
linux /kernel root=/dev/ram0 androidboot.hardware=android_x86 SRC= video=-16 video=LVDS-1:d
initrd /initrd.img
}
@ildar
ildar / restore_busybox_functions_links.sh
Created July 21, 2014 09:38
restore busybox functions (applets) on a (remote) device
@ildar
ildar / goproblems_get_n_sort.sh
Created July 21, 2014 08:03
GoProblems.com fetching and sorting
#!/bin/bash -ef
URL=${URL:-http://www.goproblems.com/mkoff/goproblemsSGF.tgz}
WORKDIR=${WORKDIR:-.}
mkdir -p "$WORKDIR"
cd "$WORKDIR"
[[ -s goproblemsSGF.tgz ]] || \
wget "$URL"