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/python3 | |
# | |
# can simply execute `python3 prepjava.py` from the root of your project, if given the following folder structure: | |
# /project | |
# discussion.txt | |
# header.txt | |
# output.txt | |
# src/*.java | |
# |
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
@echo off | |
REM *************************************************************************** | |
REM To use: | |
REM provide your source and destination server configuration parameters. | |
REM It will append a date to the restored database catalog because the database | |
REM should not exist when restoring. | |
REM | |
REM This is very useful for pulling a copy of an Azure-hosted SQL Server database | |
REM to your local instance for development purposes. | |
REM |
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 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'; |
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 | |
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 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 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 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 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 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 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" |
NewerOlder