This file contains hidden or 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
| git fetch --all --tags --prune | |
| git checkout tags/<tag_name> -b <branch_name> |
This file contains hidden or 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
| docker rm -f $(docker ps -aq) || true | |
| docker rmi -f $(docker images -aq) || true | |
| docker volume rm $(docker volume list -q) || true |
This file contains hidden or 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 [ $# -eq 0 ] | |
| then | |
| echo "No file supplied." | |
| echo "Example: ./checksum.sh wget_1.0.1_amd64.deb" | |
| exit -1 | |
| fi | |
| declare -a checksum=("md5sum" "sha256sum" "sha1sum") |
This file contains hidden or 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
| ADUSER='<YOUR AD domain username>' | |
| ADPASSWORD='<YOUR AD password>' | |
| ADDOMAIN='<YOUR AD domain>' | |
| AD='<AD PATH>' | |
| sudo mount -t cifs -o user="${ADUSER}",password="${ADPASSWORD}",domain="${ADDOMAIN}" "${AD}" /mnt | |
| # sudo umount /mnt |
This file contains hidden or 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 | |
| set -x | |
| image="test.img" | |
| label="test" | |
| mntdir=`mktemp -d` | |
| sudo dd status=progress if=/dev/zero of=$image bs=6M count=1000 && sync | |
| echo 'type=7' | sudo sfdisk $image |
This file contains hidden or 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 | |
| URL="http://localhost:8080" | |
| repo="test-repo" | |
| TO=`date -d "1 months ago" +%s000` | |
| FROM=`date -d "3 months ago" +%s000` | |
| curl -u${API_USER}:${API_PASSWORD} -o output.json "${URL}/artifactory/api/search/creation?from=${FROM}&to=${TO}&repos=${repo}" |
This file contains hidden or 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 | |
| set -x | |
| echo "Rebooting after 5 sec.." | |
| ( sleep 5 ; reboot ) & | |
| exit 0 |
This file contains hidden or 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
| C:\Users\kumbasar>net group "test_adgroup" /domain | |
| The request will be processed at a domain controller for domain test.net. | |
| Group name test_adgroup | |
| Comment test_adgroup_comment | |
| Members | |
| ------------------------------------------------------------------------------- | |
| kumbasar yildiz volkan |
This file contains hidden or 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
| git remote prune origin | |
| git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d |
This file contains hidden or 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 | |
| title Restart Print Spooler | |
| echo Stopping Spooler service | |
| net stop Spooler | |
| echo Starting Spooler service | |
| net start Spooler | |
| pause |