Skip to content

Instantly share code, notes, and snippets.

View aowongster's full-sized avatar

Alistair Wong aowongster

View GitHub Profile
aowongster /
Created April 11, 2018 22:17 — forked from noelboss/
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like or and pull or export it to a production server. Or you use a service like my to act upon a Web-Hook that's triggered that service.

aowongster / 100.txt
Created July 4, 2017 17:34
The numbers one through one hundred spelled out in english plain text
View 100.txt
aowongster / alexa.js
Last active November 21, 2022 18:08 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array. Now with majestic
View alexa.js
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
const alexa = ''
const majestic = ''
const sources = [majestic];
const zSources = [alexa];
aowongster /
Created February 15, 2017 19:01
autossh command
# create ssh proxy server
autossh -f -M 20000 -N -D 8000 some_ssh_host
# then setup a socks proxy for your browser to localhost:8000
# to browse securely!
aowongster / post-receive
Created February 9, 2017 19:45
git post receive hook for updating index on push
View post-receive
unset GIT_DIR
echo "checking out force latest"
cd .. && git checkout -f
aowongster / index.html
Created February 3, 2017 07:36
Blank html doc
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<!-- page content -->
aowongster / DCGAN.ipynb
Created January 20, 2017 17:15 — forked from awjuliani/DCGAN.ipynb
An implementation of DCGAN in Tensorflow and Python.
View DCGAN.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
aowongster /
Last active January 24, 2017 02:31 — forked from jriguera/
Email from Python with Jinja2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python 3 and compatibility with Python 2
from __future__ import unicode_literals, print_function
import os
import sys
import re
import logging
aowongster /
Last active August 30, 2016 00:21 — forked from hanshasselberg/
Install dnsperf on ubuntu
# shell script to install dnsperf tool on ubuntu
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev libgeoip-dev
curl -O
tar xfvz dnsperf-src-
cd dnsperf-src-
aowongster /
Last active August 29, 2015 14:21
Sails tutorials