Skip to content

Instantly share code, notes, and snippets.

View hjc's full-sized avatar

Hayden Chudy hjc

View GitHub Profile
@hjc
hjc / mc3-npm-failure.sh
Created October 31, 2015 06:08
mc3-npm-shrinkwrap-error
hayden@beardtop {~/gits} ~> git clone git@github.com:croscon/mc3lite.git mc3
Cloning into 'mc3'...
remote: Counting objects: 26225, done.
remote: Compressing objects: 100% (232/232), done.
remote: Total 26225 (delta 3141), reused 2991 (delta 2991), pack-reused 23002
Receiving objects: 100% (26225/26225), 50.81 MiB | 12.88 MiB/s, done.
Resolving deltas: 100% (18808/18808), done.
Checking connectivity... done.
hayden@beardtop {~/gits} ~> cd mc3
hayden@beardtop (develop) {~/gits/mc3} ~> npm install

Keybase proof

I hereby claim:

  • I am hjc1710 on github.
  • I am hjc1710 (https://keybase.io/hjc1710) on keybase.
  • I have a public key whose fingerprint is B4C9 16C2 664B 2528 6C06 729A 41E6 5A2F 9B3A 3CCC

To claim this, I am signing this object:

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Example aliases
@hjc
hjc / keybase.md
Created September 23, 2014 17:22
keybase.md

Keybase proof

I hereby claim:

  • I am hjc1710 on github.
  • I am hjc1710 (https://keybase.io/hjc1710) on keybase.
  • I have a public key whose fingerprint is 0A5E AD6C C5C5 0F04 DB11 28BF 1398 D8FF 4547 8BE4

To claim this, I am signing this object:

@hjc
hjc / no_screensaver.sh
Created May 6, 2014 18:49
NO DAMN SCREENSAVERS
no-screensaver () {
COUNTER=0;
while [ $COUNTER -ne "-1" ]; do
xdotool mousemove $COUNTER 0
COUNTER=$(echo "$COUNTER + 5" | bc)
if [ $COUNTER -eq "255" ]; then
COUNTER=0
fi
sleep 7m;
done
@hjc
hjc / id_rsa.pub
Created September 9, 2013 16:16
Public key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvfyNPxR68k0zfNOXIHMipMwPqHie3JBzoyusrZHlDC8O0CEjP3iDppVZrfMgRJlEB4EhZcXKb45Mc7LeJd4aLOK7//GzG46p98+8rg0ursBlX5iL0zDJUn42M7a2hLWuRiB1DcIuyeQNp8fux0N4ur7HizDLtnUk20xsKfV6L55OsMszC0nTV+CW2hmKUkWbxer339u87duie0iE57cs/WyTZDiLeWZJQ4pOUpR95nu0dqUdgU1nnPxQmSI2bnsQ+9TqwSqvoXaZTpG0vUX6PzNYaLHuCOCA5XFPnNVVEkAjGf5Py8Om1YH/cAZh2o7cc0ZV9D5sYljapBnKRSH4Aw== hjc1710@gmail.com
@hjc
hjc / gist:6496375
Last active December 22, 2015 15:59
SSH config that tries to stop some of the NSA horseshit.
Host *
ServerAliveInterval 10
IdentitiesOnly yes
Cipher blowfish
Ciphers blowfish-cbc
AskPassGUI no
CheckHostIP yes
Compression no
ForwardAgent no
ForwardX11 no
@hjc
hjc / bools.php
Created June 25, 2013 23:36
A small and simple array to convert any and all truthy/falsey values into a hard true or false, in PHP.
<?php
//I don't play this mismatched boolean logic bullshit, its true or
// false, never 1 or 0
$bool_replaces = [
'0' => false,
"1" => true,
false => false,
true => true,
0 => false,
1 => true,
@hjc
hjc / autoFocus.js
Created June 18, 2013 14:27
Simple Knockout Binding Handler to enable auto focusing fields (i.e. when one field gets max input, jump to the other).
/**
* This binding has required parameters and should be an object, they are:
*
* observable - the observable we want to look at and evaluate to see if we
* should change focus
*
* evaluator - a function to determine if we should change focus. It should
* return true whenever we want to change focus and false otherwise, see
* below for how to add extra arguments onto the function. Any function can
* be used as long as you can provide the correct scope for it from the HTML
# On Virtual Box?
# Ensure your networking type is bridged interface or this will fail
sudo vim /etc/network/interfaces
# comment (#) out all lines that are there and add this to the bottom (however, replace
# the * in the address with whatever you want the static IP to be, e.g., my goal is a
# static IP of: 192.168.1.140, so the address line should be: address 192.168.1.140):
auto lo eth0