This file contains hidden or 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 | |
| for n in $(chrome-cli list tabs | awk '{print $1}' | sed -e 's/\[//' | sed -e 's/\]//'); do | |
| chrome-cli execute '$("#run-code-button").click()' -t $n > /dev/null | |
| done |
This file contains hidden or 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
| data DesignData = DesignData { | |
| getName :: Text, | |
| getAge :: Int | |
| } deriving Show | |
| instance FromJSON DesignData where | |
| parseJSON (Object obj) = | |
| DesignData <$> | |
| obj .: "name" <*> | |
| obj .: "age" |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Disable zopim livechat | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== | |
| /* jshint -W097 */ |
This file contains hidden or 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
| Verifying that "prasmussen.id" is my Blockstack ID. https://onename.com/prasmussen |
This file contains hidden or 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
| var triplesec = require('triplesec'); | |
| var encryptedPortalKey = new Buffer("<encryptedPortalKey>", "hex"); | |
| var password = new Buffer("<password>"); | |
| triplesec.decrypt({key: password, data: encryptedPortalKey}, function(err, plaintext) { | |
| if (err) { | |
| console.log(err); | |
| } else { | |
| console.log("Your backup phrase:"); |
This file contains hidden or 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
| net.ipv4.ip_forward=1 | |
| net.ipv6.conf.default.forwarding=1 | |
| net.ipv6.conf.6rdtun.forwarding=1 | |
| net.ipv6.conf.all.forwarding=1 |
This file contains hidden or 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
| server { | |
| listen 8000; | |
| server_name _; | |
| root /home/glot/www; | |
| index index.html; | |
| location / { | |
| try_files $uri $uri/ =404; |
OlderNewer