for f in foo.replace; do
mv -- "$f" "${f%.ts}.tsx"
done
find . -name "*.txt" -exec rename 's/.txt$/.newext/' {} \;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Chrome Refresh | |
# | |
# Simple applescript browser reloader for Google Chrome. It will either open a | |
# new tab with the url passed in as an argument, refresh an existing tab, or open | |
# a file from your current working directory. | |
# | |
# Link this up with watchr to auto-refresh browser windows when you save files | |
# or bind it in vim, textmate etc. |
https://developers.cloudflare.com/workers/about/how-it-works/
- goto workers.dev to create your account
- create a cloudflare account, verify your account thru email (IMPORTANT)
after registration you are prompted to add a site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This if for the mac hipchat client | |
# To setup, download this file to any folder and save as `hip.sh` | |
# change the permissions of the file so it is executable using terminal | |
# You can do this by running `chmod u+x ./hip.sh` | |
# Now you can run `./hip.sh` | |
echo 'Hipchat hooray...ho... - Press CTRL+C to stop' | |
while : | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #262626 !important; | |
} | |
body > center > table, input, textarea { | |
background-color: #222 !important; | |
} | |
body > center > table > tbody > tr:first-child > td { | |
background-color: #ff6600 !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query_to_hash = function() { | |
var j, q; | |
q = window.location.search.replace(/\?/, "").split("&"); | |
j = {}; | |
$.each(q, function(i, arr) { | |
arr = arr.split('='); | |
return j[arr[0]] = arr[1]; | |
}); | |
return j; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# ------ Description ------ | |
# Shell script to enable and disable iSight macs built in camera | |
# Open terminal, follow instructions below | |
# ------ Installation ------ | |
# cd ~/Downloads && curl -0 https://gist.githubusercontent.com/lfender6445/fa3f78f2f312fbba3bf1/raw/805e30f3e40d0f3211823ccde5e5bf085aad022a/gistfile1.sh -o mac_camera.sh && chmod +x mac_camera.sh | |
# ------ Usage ------------- | |
# ./mac_camera.sh | |
osascript <<EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'socket' | |
# graphite/carbon settings | |
GRAPHITE_HOST="graphite.intra.local.ch" | |
GRAPHITE_PORT=8125 | |
def instrument_redis(redis_host) | |
namespace = "#{redis_host}" | |
redis = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› curl -I 'http://1.usa.gov/1WpPxtr' | |
HTTP/1.1 301 Moved Permanently | |
Server: nginx | |
Date: Wed, 16 Mar 2016 12:51:12 GMT | |
Content-Type: text/html; charset=utf-8 | |
Content-Length: 222 | |
Connection: keep-alive | |
Cache-Control: private, max-age=90 | |
Location: http://www.vacanteen.va.gov/exit.php?VAURL=http://zjvycjxu.beboletj.tegutonal.jxucjxine.strikenx.bid/site/page/?12144jzopusuh83342seqjq |