I hereby claim:
- I am jjhamshaw on github.
- I am iamhamsure (https://keybase.io/iamhamsure) on keybase.
- I have a public key ASAw55bnCcIep3rHK-xFtBPomnfV1MDzWukpjW0oyYnoQwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
docker exec -it $(docker ps -q --filter "name=postgres") psql -U postgres |
import async from 'async'; | |
export default class ETLRunner { | |
constructor(extractor, transformer, loader) { | |
this.extractor = extractor; | |
this.transformer = transformer; | |
this.loader = loader; | |
} | |
extract(callback) { |
# safe delete branches | |
# (deletes all MERGED branches, except dev and master) | |
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d | |
# delete branches | |
# (deletes all branches, except dev and master) | |
git branch | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -D |
open -n /Applications/Xamarin\ Studio.app |
public class AppCache : ICache | |
{ | |
public object GetValue(string key) | |
{ | |
MemoryCache memoryCache = MemoryCache.Default; | |
return memoryCache.Get(key); | |
} | |
public bool Add(string key, object value, DateTimeOffset absExpiration) | |
{ |
[ | |
{ "keys": ["ctrl+shift+l"], "command": "reveal_in_side_bar"}, | |
// dependent on plugins | |
{ "keys": ["ctrl+k", "ctrl+f"], "command": "xml_prettify" } | |
] |
# Option 1) remove deleted branches on fetch | |
git fetch --prune | |
# Option 2) create an alias. Open your config file... | |
git config -e | |
# ...and add the following section | |
[alias] |
task BackupTestToQaDatabase { | |
try { | |
Invoke-Sqlcmd -InputFile $copySqlDatabase -ServerInstance $sqlserver -Database $databaseToBackUp -Username $databaseUsername -Password $databasePassword -QueryTimeout 240 -ErrorAction 'Stop' | |
} catch { | |
'##teamcity[buildStatus status='FAILURE' text='Build Failed']' | |
} | |
} |
try | |
{ | |
// code which can cause an exception | |
} | |
catch (exception_type e) | |
{ | |
// code for handling the exception | |
} | |
finally | |
{ |