Skip to content

Instantly share code, notes, and snippets.

View enykeev's full-sized avatar
💥
Boom!

Kirill Enykeev enykeev

💥
Boom!
View GitHub Profile
enykeev at localhost : /A/T/C/MacOS
↪ cat install_tower_cli
#!/bin/sh
echo $1 > /tmp/something
echo $2 >> /tmp/something
enykeev at localhost : /A/T/C/MacOS
↪ cat /tmp/something
/Applications/Tower
:: running early hook [udeu]
:: running hook [udeu]
:: Triggering uevents...
[ 3.698847] irq 17: nobody cared (try booting with the "irqpoll“ option)
[ 3.698938] handlers:
[ 3.698950] [<ffffffffa01aad60>] sdhci_irq [sdhci]
[ 3.6989?1] Disabling IRQ #17
ERROR: device '' not found. Skipping fsck.
ERROR: Unable to find root device
You are being dropped to a recovery shell
@enykeev
enykeev / sieve.js
Last active August 29, 2015 13:57
Hook2048 Algorithms
fail = 0;
i = Hook2048(function (manager, step) {
if (fail < 6) {
fail = manager.move([1,2,2,3,2,2][step%6]) ? 0 : fail + 1;
} else {
manager.move(0);
fail = 0;
}
}, function (res) {