This file contains hidden or 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
require 'formula' | |
require 'net/http' | |
# This is an odd formula which adapts itself to whatever version of PHP | |
# is installed with the current version of OS X to install the missing | |
# PostgreSQL extension. | |
class PhpPostgresql < Formula | |
homepage 'http://www.php.net/' | |
# author: Samuel Cochran <[email protected]> |
This file contains hidden or 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
declare @server_name varchar(40) | |
declare @db_name varchar(40) | |
select @server_name = 'win7b', @db_name='io' | |
select ' | |
BCP "DECLARE @colnames VARCHAR(max);DECLARE @tab char(1);SELECT @tab=char(9);SELECT @colnames = COALESCE(@colnames + @tab, '''') + column_name from ' + @db_name + '.INFORMATION_SCHEMA.COLUMNS where TABLE_NAME=''' + name + '''; select @colnames;" queryout HeadersOnly.csv -c -T -S ' + @server_name + ' | |
BCP '+@db_name+'.dbo.'+name+' out TableDataWithoutHeaders.csv -c -T -S ' + @server_name + ' | |
copy /b HeadersOnly.csv+TableDataWithoutHeaders.csv '+name+'.txt | |
del HeadersOnly.csv | |
del TableDataWithoutHeaders.csv |
This file contains hidden or 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
Option Explicit | |
Dim server_name, db_name | |
Dim cs, cn, rsTables, rsData, sql, rsCount | |
Dim line, fso | |
Dim outfile | |
Dim i | |
Dim lineCount, lineTotalCount, baseMessage | |
server_name = "win7b" | |
db_name = "io" |
This file contains hidden or 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
#get commit stats (date and SHA) | |
commit_sha=`git rev-parse --short HEAD` | |
commit_ts=`git show -s --format="%ci" $sha` | |
commit_dt=${commit_ts:0:16} | |
commit_count=`git log --oneline | wc -l | tr -d ' '` | |
SETTINGSBUNDLEPATH="$CODESIGNING_FOLDER_PATH/Settings.bundle/Root.plist" | |
#where are we getting the original data from? |
This file contains hidden or 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
property kGraffleAliasList : {} | |
tell application "Finder" | |
set source_folder to choose folder with prompt "Please select directory." | |
my createList(source_folder) | |
kGraffleAliasList | |
my convertGraffles() | |
This file contains hidden or 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 | |
if [ $# -ne 2 ]; then | |
echo "Invalid parameters specified." | |
echo "expected syntax to remove keys in list from plist file some.plist:" | |
echo "./remove_key.sh some.plist key1,key2,key3"i | |
exit 1 | |
fi | |
plist="$1" | |
keysToRemove="$2" |
This file contains hidden or 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 | |
function set_default_value_for_key { | |
key_to_find=$1 | |
value_to_set=$2 | |
cnt=`/usr/libexec/PlistBuddy -c "Print PreferenceSpecifiers:" $plist | grep "Dict"|wc -l | tr -d ' '` | |
cnt=`expr "$cnt" '-' '1'` | |
for i in `seq 0 $cnt`; do | |
key=`/usr/libexec/PlistBuddy -c "Print PreferenceSpecifiers:${i}:Key" $plist 2>/dev/null` | |
if [[ $key == $key_to_find ]]; then |
This file contains hidden or 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 | |
if [[ "$WORKSPACE" == "" ]]; then | |
WORKSPACE=$(pwd) | |
fi | |
#specify these configuration values | |
TESTFLIGHT_API_TOKEN="" | |
TESTFLIGHT_TEAM_TOKEN="" |
This file contains hidden or 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 | |
PROJECT_NAME=MyApp | |
SCHEME_NAME=MyApp | |
STARTTIME=$(date +%s); | |
set -e | |
set -x | |
### Install dependencies | |
echo "--- Install dependencies [Time Elapsed $(($(date +%s) - $STARTTIME))s]" |
This file contains hidden or 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 node | |
//goes in hooks/after_platform_add/ | |
var fs = require('fs'); | |
rootdir = process.argv[2], | |
android_dir = rootdir + '/platforms/android'; | |
gradle_file = rootdir + '/build-extras.gradle'; | |
dest_gradle_file = android_dir + '/build-extras.gradle'; |
OlderNewer