Skip to content

Instantly share code, notes, and snippets.

View scottrobertson's full-sized avatar

Scott Robertson scottrobertson

View GitHub Profile

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
<?php
$value1 = 0.0116;
$value2 = 0.01158;
echo $value1 - $value2; // 1.9999999999999E-5

Keybase proof

I hereby claim:

  • I am scottrobertson on github.
  • I am scottrobertson (https://keybase.io/scottrobertson) on keybase.
  • I have a public key whose fingerprint is 6334 E871 3F57 92B0 2259 949C E667 1C8B 70CD B6E3

To claim this, I am signing this object:

Verifying that +scottrobertson is my Bitcoin username. You can send me #bitcoin here: https://onename.io/scottrobertson
server {
listen 80;
server_name movies.blah.com;
location / {
proxy_pass http://127.0.0.1:5050;
}
}

Drinks:

  • Tazo Tea
  • Filter Coffee
  • Cafe Misto with Soy
  • Steamed Soy with or without syrups
  • Espresso
  • Espresso Macchiato with Soy
  • Cafe Americano black or with Soy
  • Soy Lattes with or without syrups
  • Soy Cappuccinos with or without syrups
time wget http://ipv4.download.thinkbroadband.com/512MB.zip
--2015-05-02 20:12:42-- http://ipv4.download.thinkbroadband.com/512MB.zip
Resolving ipv4.download.thinkbroadband.com... 80.249.99.148
Connecting to ipv4.download.thinkbroadband.com|80.249.99.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 536870912 (512M) [application/zip]
Saving to: '512MB.zip'
512MB.zip 100%[================================================================================================>] 512.00M 17.8MB/s in 36s
Verifying I am +scottymeuk on my passcard. https://onename.com/scottymeuk
@scottrobertson
scottrobertson / dev.sh
Last active December 16, 2015 09:18
Route all "*.dev" domains to 127.0.0.1
#!/bin/sh
brew install dnsmasq
mkdir -pv $(brew --prefix)/etc/
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
# sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo mkdir -v /etc/resolver
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'
wget http://prajith.in/downloads/apachebooster.tar.gz
tar -zxf apachebooster.tar.gz
cd apachebooster
sh install.sh