This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/' do | |
'Hello world' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
world = 'world' | |
"hello #{world}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am roosoft on github. | |
* I am roosoft (https://keybase.io/roosoft) on keybase. | |
* I have a public key ASDJUx3y7nbSQQDAGLMthYoAzLNmGK-2Xv_AJSAQdJdyNQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Sep 25 17:21:13 UTC 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ctrlc_count=0 | |
function no_ctrlc() | |
{ | |
let ctrlc_count++ | |
echo | |
if [[ $ctrlc_count == 1 ]]; then | |
echo "Stop that." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage() { | |
echo "Usage: ${0} folder" >&2 | |
echo "Watches file manipulations in a folder" >&2 | |
exit 1 | |
} | |
if [[ "$#" -ne 1 ]] ; then | |
usage | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub_key_hash_size = 0x14 | |
pub_key_hash = 0x12AB8DC588CA9D5787DDE7EB29569DA63C3A238C | |
# 76 a9 14 12ab8dc588ca9d5787dde7eb29569da63c3a238c 88 ac | |
# OP_DUP OP_HASH160 OP_PUSHBYTES_20 12ab8dc588ca9d5787dde7eb29569da63c3a238c OP_EQUALVERIFY OP_CHECKSIG | |
script = | |
<<@dup::8, @hash_160::8, pub_key_hash_size::8, pub_key_hash::160, @equal_verify::8, | |
@check_sig::8>> | |
# can probably be gotten by https://hexdocs.pm/curvy/Curvy.html#sign/3 |