Instantly share code, notes, and snippets.

View post-receive
echo "Copying tree to Docker directory"
git --work-tree=$DOCKER_DIR --git-dir=$GIT_DIR checkout -f
echo "Building Docker image"

Keybase proof

I hereby claim:

  • I am hstntn on github.
  • I am harry ( on keybase.
  • I have a public key whose fingerprint is 6E93 04C5 B4C3 6AAF F779 2A8D E24E FAE3 3000 0A6E

To claim this, I am signing this object:

View whatismymessengerid.js
var express = require('express')
var app = express()
var body_parser = require('body-parser')
var verify_token = 'x'
app.get('/webhook', function(req, res) {
if (req.query['hub.verify_token'] == verify_token) {
View indexed_redis.js
// Indexed hashes in Redis
var redis = require('redis')
var client = redis.createClient(process.env.REDIS)
exports.append = function(key, value, cb) {
client.send_command('scan', ['0', 'match', key], function(err, resp) {
resp = resp[1]
if (resp.length) {
View .profile
# wget ~/Downloads/; open ~/Downloads/Tomorrow\ Night.terminal
# touch ~/.hushlogin
# touch ~/.bash_sessions_disable
# Mac specific
alias reset-launchpad='defaults write ResetLaunchPad -bool true; killall Dock'
alias icloud-drive='cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'
# Universal stuff
alias post='curl -H "Content-Type: application/json" -X POST -d'
import os
folders = []
files = []
def main(path):
while True:
if os.path.isdir(path):
for x in os.listdir(path):
x = os.path.join(path, x)
View scambaiting.html
<!DOCTYPE html>
<title>Security Warning</title>
<style type="text/css">
body {
background-color: #CD3426;
#main {
View twitter.rb
require 'oauth'
require 'json'
consumer ="consumer key", "consumer secret key", {:site => ""})
token_hash = { :oauth_token => "access token", :oauth_token_secret => "access secret key" }
access_token = OAuth::AccessToken.from_hash(consumer, token_hash)
# Tweets
post ="", "status=Sample%20tweet", {"Content-Type"=>"application/x-www-form-urlencoded"})
puts post.code
View nabaztag.php
function weather() {
$weather = file_get_contents(',uk');
$weatherJSON = json_decode($weather, true);
$weatherText = $weatherJSON["weather"][0][main];
$nabaztagIP = 'IP';
$minute = date('i', time());