Skip to content

Instantly share code, notes, and snippets.

Nate Murray jashmenn

Block or report user

Report or block jashmenn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jashmenn /
Created Sep 27, 2018
Use S3 as a url short-linker / redirection service
#!/bin/bash -x
if [[ $# -eq 0 ]] ; then
echo 'Usage: cmd <s3 path> <redirect-location>'
echo 'e.g.'
echo ''
exit 0
jashmenn / geth-and-remix.scpt
Created Nov 16, 2017
open geth and remix in tabs via applescript
View geth-and-remix.scpt
-- osascript services.scpt
tell application "iTerm 3"
set myterm to (create window with default profile)
tell myterm
set mysession to (current session)
tell mysession
set name to "geth"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/private-net"
write text "./bin/geth --datadir=./datadir --nodiscover --rpc --rpcapi \"db,personal,eth,net,web3,debug\" --rpccorsdomain='*' --rpcaddr=\"localhost\" --rpcport 8545 --ws --wsapi \"db,personal,eth,net,web3,debug\" --wsorigins='*' --wsaddr=\"localhost\" --wsport 8546 console"
View gist:9b45a4ecab360aefef84d9ebc6cf0495
Verifying my Blockstack ID is secured with the address 1EZ6kY8mCk1sPj4n1qbsZh6YFCRNsUaMy1
jashmenn / final-cut-it-out.js
Created Sep 21, 2017
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo:
View final-cut-it-out.js
#!/usr/bin/env osascript -l JavaScript
* Delete silence from Final Cut Pro timeline using a script.
* Demo:
* This script accepts an ffmpeg silencedetect log as input.
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip
jashmenn / vending-machine-smart-contract.js
Last active Dec 27, 2017
Pseudocode for a vending machine "smart contract" in JavaScript
View vending-machine-smart-contract.js
* A pseudo VendingMachine "smart contract" in JavaScript
* See:
class VendingMachine {
constructor() {
this.price = 50; // 50 cents for any soda
this.balance = 0; // number of cents paid so far
this.selection = null; // name of selected drink
View genesis.json
"config": {
"chainId": 101,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",

Example: You have a branch refactor that is quite different from master. You can't merge all of the commits, or even every hunk in any single commit or master will break, but you have made a lot of improvements there that you would like to bring over to master.

Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.

On master:

> git co -b temp
jashmenn /
Created Mar 9, 2017 — forked from piscisaureus/
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

jashmenn / github-operator-mono-dark.css
Last active Mar 9, 2018
Stylish Chrome Extension for Github Operator Mono Dark Theme
View github-operator-mono-dark.css
.markdown-body .highlight pre,
.blob-code-inner {
font-family: "Operator Mono";
font-weight: 400;
line-height: 1.5em;
font-size: 14px;
.markdown-body .highlight pre,
table.highlight {
jashmenn / ng-book-rc.4.diff
Created Jul 1, 2016
ng-book 2 code diff between rc.2 and rc.4 -
View ng-book-rc.4.diff
diff --git a/manuscript/code/advanced_components/app/ts/app.ts b/manuscript/code/advanced_components/app/ts/app.ts
index 6db6693..830beb2 100644
--- a/manuscript/code/advanced_components/app/ts/app.ts
+++ b/manuscript/code/advanced_components/app/ts/app.ts
@@ -13,10 +13,10 @@ import {
import { bootstrap } from '@angular/platform-browser-dynamic';
import {
- RouteDefinition,
You can’t perform that action at this time.