Skip to content

Instantly share code, notes, and snippets.

(function() {
var div = document.createElement('div');
div.setAttribute('id', 'inputDiv');
div.setAttribute('style', 'position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;background:white;');
var btnClick = "var str = window.document.getElementById('gameStateInput').value;"
+ "try{"
+ "var json = JSON.parse(atob(str));"
+ "if (json.daily_current_streak == null || json.daily_history == null || json.daily_max_streak == null) throw 'err';"
+ "window.localStorage.setItem('daily_current_streak', json.daily_current_streak);"
+ "window.localStorage.setItem('daily_history', json.daily_history);"
@jaquer
jaquer / rootfs-snap.sh
Last active October 21, 2015 07:47
Root FS snapshotting script using BTRFS
#!/bin/sh -e
#
# simple rootfs (/) snapshots using BTRFS
# variables
ROOT=/media/root/@
# begin script
if [ $(id --user) != 0 ]; then
echo "script must be run as root"

Keybase proof

I hereby claim:

  • I am jaquer on github.
  • I am jaquer (https://keybase.io/jaquer) on keybase.
  • I have a public key whose fingerprint is 2662 DAC9 39F6 6D0E 1E4E CE7E 2041 446F 0433 8084

To claim this, I am signing this object: