I hereby claim:
- I am lorello on github.
- I am lorello (https://keybase.io/lorello) on keybase.
- I have a public key whose fingerprint is 3A46 1358 838A 8100 F5AE AC79 1D71 C87F E705 70C9
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Enable an ops team defined in github to connect to a server using ssh keys | |
| # | |
| # Requirements: | |
| # | |
| # - jq | |
| # - httpie | |
| # | |
| # On debian based: |
| Enjoy a local environment of ParsePlatform | |
| www.parseplatform.org |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # This utility is thought to be run on a Mysql Slave and enables you to safely | |
| # purge (delete) binary logs by ensuring that any files which are in use or | |
| # required by the slave in a replication topology are not deleted. | |
| # This is achieved by checking which binary logs have been read on the slave. | |
| # This determines the minimal set of binary log files that can be purged. | |
| # | |
| # Inspired by mysqlbinlogpurge that cannot run on centos 6 | |
| # https://dev.mysql.com/doc/mysql-utilities/1.6/en/mysqlbinlogpurge.html |
| # A two-line colored Bash prompt (PS1) with Git branch and a line decoration | |
| # which adjusts automatically to the width of the terminal. | |
| # Recognizes and shows Git, SVN and Fossil branch/revision. | |
| # Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png | |
| # Michal Kottman, 2012 | |
| RESET="\[\033[0m\]" | |
| RED="\[\033[0;31m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" |
| set -e | |
| [ ! -d .git ] && echo "Not a git repo, fatal error" && exit 1 | |
| [ ! -d log ] && mkdir log && echo "Create log dir" | |
| if [ ! -f log/.keep ]; then | |
| touch log/.keep | |
| echo "Create log/.keep file" | |
| git add log/.keep |
| #!/bin/bash | |
| # | |
| # Create a simple CSV report with relevant info about | |
| # your old SVN repositories, so you can easly decide | |
| # what archive offline and what migrate to GIT :) | |
| # | |
| REPO_ROOT=/var/svn/ | |
| REPOS=$(find $REPO_ROOT -mindepth 1 -maxdepth 1 -type d) | |
| echo "name,size,last commit date,last commit author" |
| #!/bin/bash | |
| # | |
| # Written for an old bind without rate-limiting feature | |
| # | |
| LOG_WINDOW=1000 | |
| SECURITY_LOG=/var/log/named/security.log | |
| IPTABLES_CHAIN=INPUT | |
| DENIED_LIMIT=10 |
| #!/bin/bash | |
| # | |
| # Rebuild indexes on a single table or in a whole database | |
| # | |
| DB=$1 | |
| TABLES=$2 | |
| function syntax() { | |
| echo -e "\nSYNTAX\n\t$0 <dbname> [\"table1 table2 table3 ...\"]\n\n" |