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
brew outdated | parallel --keep-order brew fetch --deps && brew upgrade | |
# without GNU parallel (output will be out of order): | |
brew outdated -q | xargs -L1 -P8 brew fetch --deps |
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/sh | |
if [[ $# < 2 ]]; then | |
echo "Use password saved in macOS keychain for Cisco VPNs" | |
echo "$0 usage: myscript vpnname keychainitem [close_second_window]" | |
exit 1 | |
fi | |
VPNName=$1 # match the name of the VPN service to run | |
keychainItem=$2 # this name has to match "Account" for the entry you make in keychain | |
password=$(security find-generic-password -wl "$keychainItem") |
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
<?php | |
// You can use this file to test different video products in different players | |
// choose product and options | |
$product = 'hls'; // hls|stream_packaging|vod | |
$secure = true; | |
$staging = false; | |
$URLonly = false; // true to output only URL, false to output HTML | |
// no changes required below santa claus - happy holidays 2016 |
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
// Export Parse Push Events | |
// log into http://parse.com and run this code in your web console | |
// the pushes will be inside window.pushes | |
(function() { | |
const parseApp = '[YOUR_PARSE_APP_NAME]'; // the string in the URL https://parse.com/apps/[PARSE_APP]/ e.g. 'push-tests--2' | |
const entries = 10; | |
'use strict'; | |
function get(theUrl) { | |
return new Promise( |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>FB Events</title> | |
</head> | |
<body> | |
<div id="pictures"></div> | |
<div id="fb-root"></div> |
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/php | |
<?php | |
$in = fopen('php://stdin', 'r'); | |
$result=array(); | |
$format='_.'; | |
while($line=fgetcsv($in, 0, "\t")) { | |
$result[]='|'.$format.implode('|'.$format, $line).'|'; | |
$format=''; | |
} | |
fclose($in); |
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 | |
# Script to use with git bisect for phpunit tests for yii apps | |
# | |
# Should lie under protected/tests | |
# usage: | |
# | |
# git bisect start __bad__ __good__ -- | |
# git bisect run protected/tests/git-bisect-phpunit.sh __args__ | |
# | |
# where __args__ are phpunit arguments: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Created by Ukelele version 2.2.4 on 2013-01-18 at 18:00 (MEZ)--> | |
<!--Last edited by Ukelele version 2.2.4 on 2013-01-18 at 18:01 (MEZ)--> | |
<keyboard group="0" id="5591" name="U.S. - without dead keys" maxout="1"> | |
<layouts> | |
<layout first="0" last="17" modifiers="f4" mapSet="16c"/> | |
<layout first="18" last="18" modifiers="f4" mapSet="984"/> | |
<layout first="21" last="23" modifiers="f4" mapSet="984"/> | |
<layout first="30" last="30" modifiers="f4" mapSet="984"/> |
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
javascript:document.getElementById('issue_status_id').selectedIndex=5;document.getElementById('issue-form').submit(); |
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
# add to your ~/.profile | |
. ~/sources/z/z.sh | |
zz () { (z $* && open .); } | |
# "$ z some_folder" now goes to that folder in the Terminal | |
# "$ zz some_folder" opens this folder in the Finder |
NewerOlder