Skip to content

Instantly share code, notes, and snippets.

View andxyz's full-sized avatar
:octocat:
ship it

Andrew Stevens andxyz

:octocat:
ship it
View GitHub Profile
@andxyz
andxyz / markdown-autolink-st2.md
Created January 22, 2014 22:48
Add urlize to Sublimetext2 - Markdown Preview
@andxyz
andxyz / chrome-insecure.sh
Last active December 23, 2015 12:59
~/bin/chrome-insecure for osx
#!/bin/bash
#
# see https://github.com/gruntjs/grunt-contrib-watch/pull/197
# some info about redirecting the output http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/
#
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-running-insecure-content --ignore-certificate-errors > /dev/null 2>&1
@andxyz
andxyz / licenses-api.sh
Last active November 11, 2015 16:33 — forked from mislav/licenses-api.sh
An example of using the GitHub Licenses API, currently in preview.
#!/usr/bin/env bash
curl -s -H 'Accept: application/vnd.github.drax-preview+json' \
https://api.github.com/orgs/scoremedia/repos?per_page=100 | \
grep -A1 '"license"' | grep '"key"' | cut -d'"' -f4 | \
sort | uniq -c
# 5 apache-2.0
# 1 bsd-3-clause
# 2 cc0-1.0
@andxyz
andxyz / 030_update_platform_config.js
Created November 9, 2015 20:46 — forked from marcocarnazzo/030_update_platform_config.js
Ionic/Cordova update platform config
#!/usr/bin/env node
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml.
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported.
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml
Preferences:
1. Preferences defined outside of the platform element will apply to all platforms
2. Preferences defined inside a platform element will apply only to the specified platform
@andxyz
andxyz / installed-crap.txt
Last active October 26, 2015 06:26
some stuff I've installed over the past months
~/Downloads/_apps$ tree
.
├── 360ControllerInstall_0.14_unofficial.dmg
├── AX88772C_772B_772A_760_772_Macintosh_10.5_to_10.10_Driver_Installer_v2.4.0_20141215.zip
├── Adium_1.5.10.dmg
├── Afloat-2.4.1_10.9_x86-64.zip
├── Afloat.bundle
│   └── Contents
│   ├── Afloat Scripting.app
│   │   └── Contents
#!/usr/bin/env ruby
# Shows the jira tickets and their summary for git branches
# see http://cl.ly/image/0v3I3A3D1W3P/Image%202015-09-21%20at%202.26.13%20PM.png
#
# example usage:
# ruby -W0 jira-sickness.rb
# or
# ./jira-sickness.rb
## Make sure to export these variables in the shell for yourself
module SearchApp
class ElasticSearchClient
def self.production_client
Elasticsearch::Client.new
end
def self.debug_client
@client = Elasticsearch::Client.new log: true
@client.transport.logger = Logger.new($stdout)
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>background</key>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMChARm
ZmZmAQEBg0jhej+G
</data>
<key>border</key>