Advanced Search
Search Results
63 total results found
Blog
SysOps
DevOps
GenOps
DataOps
CodeOps
Tech
Links
Review
Bash
Golang
Python
Snippets
Backend
Frontend
Markdown
MySQL
MongoDB
PostgreSQL
Git
ELK
Chef
Nginx
GitLab
Docker
GitHub
Backup
Develop
GitScript
tar
#!/bin/bash # Settings / Change This To Your Config volumeDir="/opt/gitlab" backupDir="/opt/backup/gitlab" dateFormat=$(date "+%d-%m-%Y-%H%M%S") fileName=$"$dateFormat-GitLab.tar" sleepTime="10m" # Stop Execution If Found Any Error set -e # Tar ...
upload
#!/bin/bash # Settings / Change This To Your Config backupDir="/opt/backup/gitlab" bucketDir="s3://oodles-infra-backups/gitlab-backup/" fileName=`basename $(find $backupDir -iname "*.tar" -mtime 0)` keepDays="+1" # Stop Execution If Found Any Error ...
validate
#!/bin/bash # Settings / Change This To Your Config backupDir="/opt/backup/gitlab" bucketDir="s3://oodles-infra-backups/gitlab-backup/" fileName=`basename $(find $backupDir -iname "*.tar" -mtime 0)` fileVerify=`basename $(/usr/local/bin/aws s3 ls $bucke...
backuptar
#!/bin/bash # Settings / Change This To Your Config volumeDir="/opt/sonarqube/" backupDir="/opt/backup/sonarqube/" bucketDir="s3://oodles-infra-backups/sonarqube-backup/" dateFormat=$(date "+%d-%m-%Y-%H%M%S") fileName=$"$dateFormat-SonarQube.tar.gz" s...
s3copysync
#!/bin/bash # Settings / Change This To Your Config remoteBucket=arshsahzad credProfile="--profile storj" credConfig="$HOME/.aws" remoteDir="s3://$remoteBucket/BakOps/" localDir="$HOME/devops/projects/ScriptBox" remoteEndpoint="--endpoint-url https://...
gitclone
#!/bin/bash # Settings / Change This To Your Config remoteHost=github.com remoteSSH=git@$remoteHost remoteUser=arshsahzad remoteGroup=oodlestechnologies localDir="$HOME/devops/projects/ScriptBox/gitcloning/" # Check RemoteHost Access via SSH echo ...
gitcommit
#!/bin/bash for Y in {2022..2022} do mkdir $Y cd $Y for M in {01..12} do mkdir $M cd $M for D in {01..31} do mkdir $D cd $D for i in $(seq 1 $((0 + RANDOM % 10))) do echo "$i on $M/$D/$Y"...
gitupdate
#!/bin/bash # Enter Commitor/Author Email Address git filter-branch --env-filter ' OLD_EMAIL="[email protected]" CORRECT_NAME="Arsh Sahzad" CORRECT_EMAIL="[email protected]" if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] then export GIT_COMMITTER_NAM...
update-dns
#!/bin/bash ## change to "bin/sh" when necessary auth_email="" # The email used to login 'https://dash.cloudflare.com' auth_method="token" # Set to "global" for Global API Key or "token...
Interview
What is Terraform? Terraform: HashiCorp Terraform is an infrastructure as a code tool that lets you define both cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share. You can then use a consistent workflow ...