If you've added a new remote, you might want to push all your branches to it:
git push new-remote --all
Maybe you want to cherry-pick from a different branch and you need to know the commit hash:
docker system prune -f | |
FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i | |
FOR /f "tokens=*" %i IN ('docker images -q -f "dangling=true"') DO docker rmi %i |
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.15.0/docker-compose-$(uname -s)-$(uname -m)" |
function exponentialBackoff(toTry, max, delay, callback) { | |
new Promise(function(resolve, reject) { | |
// do a thing then… | |
var ret = toTry.toString(); | |
ret = ret.substr('function '.length); | |
ret = ret.substr(0, ret.indexOf('(')); | |
console.log('EB '+ret+' max',max,'next delay',delay); | |
var result = toTry(); | |
if (result) { |
git config --global core.autocrlf false | |
#* text=auto | |
* text=auto eol=lf | |
*.js text eol=lf | |
{ | |
"files.eol": "\n", | |
"editor.tabSize": 2, |
// let tries = 0; | |
// function connectSql() { | |
// sql.globalConnection.connect(config.get('db.connectionstring')) | |
// .then( (pool) => { | |
// winston.warn('connected....'); | |
// }) | |
// .catch((err) => { | |
// tries++; | |
// winston.error(`Error creating connection pool: at ${tries} tries`); |
# Login-AzureRmAccount -ErrorAction Stop | |
$storageAccounts = Get-AzureRmStorageAccount -ErrorAction Stop | |
$selectedStorageAccount = $storageAccounts | where-object{$_.StorageAccountName -eq $StorageAccountName} | |
If($selectedStorageAccount) | |
{ | |
$key = (Get-AzureRmStorageAccountKey -ResourceGroupName $selectedStorageAccount.ResourceGroupName -name $selectedStorageAccount.StorageAccountName -ErrorAction Stop)[0].value | |
$storageContext = New-AzureStorageContext -StorageAccountName $selectedStorageAccount.StorageAccountName -StorageAccountKey $key -ErrorAction Stop | |
$storageContainer = Get-AzureStorageContainer -Context $storageContext -Name $ContainerName -ErrorAction Stop | |
$blob = Get-AzureStorageBlob -Context $storageContext -Container $ContainerName -Blob $BlobName -ErrorAction Stop |
#!/bin/bash | |
usage="Input piped docker-compose logs -t, or a file created from this command, to show logs lines sorted by time.\n\n Usage:\n\n $(basename "$0") [-h|--help] - this message\n $(basename "$0") - runs default docker-compose logs -t and sorts'em\n docker-compose logs -t|$(basename "$0") - pipe logs to this command\n $(basename "$0") my-compose.log - or choose file with logs to display\n\n" | |
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-" | |
case "$1" in | |
-h|--help) printf "$usage" | |
exit | |
;; | |
esac | |
if [ -t 0 ]; then | |
docker-compose logs -t|sort -t "|" -k +2d |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
#---- TEMPORARY --- |
(originally from my proposal on moby/moby#17142 (comment) but generic)
The profile would generate artificats of an apparmor profile and seccomp filters.
Obviously doesn't have to be toml since that's super hipster :p
Assumptions
aa-genprof
it is never