Skip to content

Instantly share code, notes, and snippets.

View cneill's full-sized avatar
🤓
Nerdin' out

Charles Neill cneill

🤓
Nerdin' out
View GitHub Profile
16:27:43 weechat whee => msg $channel (∩▂∩)
16:27:43 weechat wheee => msg $channel (ノ^_^)ノ
16:27:43 weechat wheeee => msg $channel ゚・✿ヾ╲(。◕‿◕。)╱✿・゚
16:27:43 weechat wheeeee => msg $channel ᕕ(ᐛ)ᕗ
@cneill
cneill / lifehacks.md
Created April 10, 2016 23:12
20 one-liners to make your life better

Morning

  • Wake up with a "smart"/sleep phase alarm so you aren't jolted awake during deep sleep

  • Stretch out fully when waking up (like a starfish)

  • Drink some water when you first get out of bed

    • Don't drink caffeine within 1-2 hours of waking up
  • Get some direct sunshine in the morning. Turn all the lights on.

@cneill
cneill / crypto.js
Last active September 3, 2015 02:37
function get_random_bytes (len) {
return crypto.randomBytes(Math.ceil(len / 2))
.toString('hex')
.slice(0, len);
}
@cneill
cneill / data_tips_and_tricks.md
Last active August 29, 2015 14:23
Tips & tricks for analyzing and manipulating data in bash

About

This gist contains a few simple commands for manipulating and analyzing various types of data from the command line. This might be useful, for example, when trying to audit a web applicaton for security defects.

Table of Contents

Encoding and Decoding

  1. Hex
  2. URL
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'

Keybase proof

I hereby claim:

  • I am cneill on github.
  • I am cneill (https://keybase.io/cneill) on keybase.
  • I have a public key whose fingerprint is 289B B637 7B14 5FB3 EE09 E0C6 1337 9E6D C643 3C71

To claim this, I am signing this object: