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
FROM golang:alpine | |
RUN apk add git | |
RUN apk add make | |
RUN mkdir /src | |
WORKDIR /src | |
VOLUME /src |
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
powershell.exe "Add-DnsServerResourceRecordA -Name " machinename " -ComputerName " 111.11.11.111 " -ZoneName " testcs.company.com " -AllowUpdateAny -IPv4Address " 111.11.10.110 " -TimeToLive " 00:00:10 |
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
fsck -f / |
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
https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use | |
~/.ssh/config | |
host bitbucket.org | |
HostName bitbucket.org | |
IdentityFile ~/.ssh/github_rsa | |
User git | |
https://medium.com/@xiaolishen/use-multiple-ssh-keys-for-different-github-accounts-on-the-same-computer-7d7103ca8693 |
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
https://github.com/techouse/sqlite3-to-mysql |
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
<Configuration> | |
<MappedFolders> | |
<MappedFolder> | |
<HostFolder>C:\SandBoxShare</HostFolder> | |
<ReadOnly>true</ReadOnly> | |
</MappedFolder> | |
</MappedFolders> | |
<LogonCommand> | |
<Command>C:\Users\WDAGUtilityAccount\Desktop\SandBoxShare\init-sandbox.bat</Command> | |
</LogonCommand> |
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
COMPOSE_PROJECT_NAME=template | |
VAR_FROM_FILE=anyvalue | |
VAR_FROM_FILE_WITH_THE_SAME_NAME=any_other_value |
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
# inspired by the https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1 | |
registry="http://${registry_user}:${registry_passwd}@${registry_url}/v2" | |
for repo in `cat repos-todel`; do | |
for tag in $(curl -sSL "${registry}/${repo}/tags/list" | jq -r '.tags[]?'); do | |
tagURL="${registry}/${repo}/manifests/${tag}" | |
sha256=$(curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -sSL -I ${tagURL} | awk '$1 == "Docker-Content-Digest:" { print $2 }' | tr -d $'\r') | |
deleteURL="${registry}/${repo}/manifests/${sha256}" | |
echo $deleteURL | |
# curl -v -sSL -X DELETE $deleteUR | |
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
https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod | |
kubectl patch pod <pod> -p '{"metadata":{"finalizers":null}}' | |
kubectl delete pods <pod> --grace-period=0 --force |