Skip to content

Instantly share code, notes, and snippets.

@jpgrace
jpgrace / check-s3fs-mount.sh
Created April 5, 2017 18:33 — forked from icheko/check-s3fs-mount.sh
Check if S3FS mount is not connected and attempt to reconnect Usage: ./checkNFSMount.sh /mount/point
#!/bin/sh
MNT_PATH=$1
if [ -z "$MNT_PATH" ]
then
echo "MNT_PATH is not set"
exit
fi
@jpgrace
jpgrace / engenius-eap600-enable-ssh.md
Created March 31, 2017 01:31 — forked from darconeous/engenius-eap600-enable-ssh.md
Enabling SSH on Engenius EAP600

Enabling SSH on Engenius EAP600

This tutorial will walk you through the steps needed to get root SSH access on an [Engenius EAP600][1] dual-band WiFi access point. SSH doesn't come enabled out of the box on these things, so if you want to SSH into the device (which is running an old version of OpenWRT), keep reading.

Picture of EAP600

@jpgrace
jpgrace / prepare-commit-msg
Created January 29, 2017 19:11 — forked from sebald/prepare-commit-msg
Append Jira issue number to every commit
#!/usr/bin/env node
const { exec } = require('child_process');
const { readFile, writeFile } = require('fs');
const { EOL } = require('os');
const CURRENT_BRANCH_JIRA_ISSUE_EXP = /\*[^/]*\/([a-zA-Z]+([-][0-9]+)+)/;
const messageFile = process.argv[2];
/**
* We need the message file to append.

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@jpgrace
jpgrace / git.migrate
Last active March 3, 2017 10:53 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
### Keybase proof
I hereby claim:
* I am jpgrace on github.
* I am jpgrace (https://keybase.io/jpgrace) on keybase.
* I have a public key whose fingerprint is E58C 90CF 40E8 9DD8 2F8A F268 E44B 9633 052D 2D39
To claim this, I am signing this object: