Skip to content

Instantly share code, notes, and snippets.

View aflashyrhetoric's full-sized avatar
🏠
Working from home

Kevin Oh aflashyrhetoric

🏠
Working from home
View GitHub Profile
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
@aflashyrhetoric
aflashyrhetoric / Contract Killer 3.md
Last active August 29, 2015 14:26
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

"----------------Vundle Stuff ------------------"
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"call vundle#begin('~/some/path/here')
" - Go To Plugins
# Install rubygems to enable gems
sudo apt-get install rubygems
# Install gist library
gem install gist
# Download Bash_Aliases
curl https://gist.githubusercontent.com/aflashyrhetoric/07e290c11ce089a5dfae/raw/97c3aa73c61032a6f3622a8f4fea45c8f2f3f86a/bash_aliases ~/.bash_aliases
# Source BashAliases
source ~/.bash_aliases
# Download Vimrc
curl https://gist.githubusercontent.com/aflashyrhetoric/d0b1c9a5e3716f08f4c8/raw/2fca45aff1225053e1bd96c086ef96097bfee6ad/.vimrc ~/.vimrc
@aflashyrhetoric
aflashyrhetoric / Messenger Anonymize.js
Last active May 16, 2016 22:49
Changes names on messenger.com.
// Gets all the names
var names = document.getElementsByClassName("_1ht6");
var nameHeaders = document.getElementsByClassName("_3oh-");
// New name variable, leave empty to delete names (not recommended)
var newName = "";
// Changes names to newName
[].slice.call(names).forEach( function ( name ) { name.innerHTML = newName;});
// Changes nameHeaders and conversation messages to John Doe
console.log("hi");

Using Github Gists to VC bash_aliases

Version Control your .bash_aliases file using:


I'll use a sample .bash_aliases file for the tut:

# ~/.bash_aliases
.wixAdsdesktopWADBottom { visibility: hidden !important; display: none !important; }
@aflashyrhetoric
aflashyrhetoric / HACKMD Alternative Test
Created January 20, 2017 16:05
A test to see if Github Gists are a better alternative to HackMD
This is some testing junks
/*
* This script converts API data from Backlog Syntax to Markdown.
* It can also output to Markdown and JSON.
*/
// Lib Imports
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const readline = require('readline');