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
# this specific example configures a docker storage plugin automatically when a node joins the swarm | |
docker service create --mode global --restart-condition none \ | |
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ | |
--name enable-cloudstor-azure-plugin \ | |
docker:latest \ | |
sh -c "echo Set up and enable cloudstor:azure plugin. Be patient... && sleep 120 && docker plugin set cloudstor:azure AZURE_STORAGE_ACCOUNT_KEY=PUT-YOUR-AZURE-STORAGE-KEY-HERE && docker plugin enable cloudstor:azure && docker plugin ls && echo Done." |
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
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace Ram.Series5.Data.Settings | |
{ | |
public class DbSetting | |
{ | |
public DbSetting() | |
{ | |
Scope = string.Empty; |
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
[alias] | |
ec = config --global -e | |
co = checkout | |
cob = checkout -b | |
pushit = "!f() { git rev-parse --abbrev-ref HEAD ; }; git push --set-upstream origin `f`" | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
startb = "!f() { git cob $1 && git pushit; }; f" | |
syncb = !git fetch origin ${1-master} && git rebase origin/${1-master} | |
cleanb = !git rebase -i origin/${1-master} | |
finishb = "!f() { git rev-parse --abbrev-ref HEAD | xargs -i_branch sh -c 'git checkout ${1-master} -f && git pull origin && git merge _branch --ff-only && git push origin ${1-master}'; }; f" |