Skip to content

Instantly share code, notes, and snippets.

View bradbaris's full-sized avatar

Brad Baris bradbaris

View GitHub Profile
@erichs
erichs / ghanity.sh
Created March 18, 2013 15:02
create GitHub vanity url using git.io shortening service. Works with OSX clipboard
ghanity ()
{
local code="$1" url="$2";
echo 'creating vanity GitHub URL... ';
ghurl=$(curl -s -i http://git.io -F "url=$url" -F "code=$code" | grep Location | awk '{print $2}');
echo $ghurl | pbcopy;
echo "copied to clipboard: ${ghurl}"
}
@seltzered
seltzered / IllustratorSaveAsSVGs.jsx
Last active December 15, 2024 22:06
Quick little script to batch-convert Illustrator .ai's to .svg's, based on Adobe's sample 'save to pdf's' script. Save it to a jsx, and load it under illustrator. Intended for Illustrator CS6.
/**********************************************************
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2010 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it.
If you have received this file from a source
@1stvamp
1stvamp / mac-curl-ca-bundle.sh
Created March 22, 2012 12:50
Script to install cURL CA certificates on OS X without macports
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else