Request URL:https://example.com/user/two_factor
Request Method:POST
Status Code:500
Remote Address:10.129.250.100:8080
Referrer Policy:no-referrer
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
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
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
START_LINE=$(($(grep -n "Table structure for table \`wp_options\`" dump_tmp.sql | cut -d':' -f 1) -1)) | |
END_LINE=$(($(grep -n "ALTER TABLE \`wp_options\` ENABLE KEYS" dump_tmp.sql | cut -d':' -f 1) +1)) | |
sed "${START_LINE},${END_LINE}d" dump_tmp.sql > dump_tmp-no_options.sql | |
mv dump_tmp-no_options.sql dump_tmp.sql |
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
#!/bin/bash | |
# This script generates the Code Sourcery ARM EABI Toolchain on MAC OS X 10.7 | |
# | |
# The main trick here is the possibility to build previous versions, required | |
# when maintaining older projects that no longer build with newer version. | |
# | |
# The new toolchain is installed at | |
# "$HOME/Developer/Cross/arm-cs-tools-$MENTOR_RELEASE-$TODAY" | |
# |
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
echo "Stalling for MySQL.. (${MYSQL_PORT_3306_TCP_ADDR}:${MYSQL_PORT_3306_TCP_PORT})" | |
while true; do | |
nc -q 1 "$MYSQL_PORT_3306_TCP_ADDR" "$MYSQL_PORT_3306_TCP_PORT" 2>/dev/null && break | |
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
#!/bin/bash | |
set -euo pipefail | |
lockfile="/tmp/myscript.lock" | |
if ( set -o noclobber; echo "$$" > "$lockfile") 2> /dev/null; | |
then | |
trap 'rm -f "$lockfile"; exit $?' INT TERM EXIT | |
## COMMAND TO RUN GOES HERE |
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
Verifying that +ericripa is my openname (Bitcoin username). https://onename.com/ericripa |
a basic Kibana dashboard for Collectd + ELK.
Collectd (configured as LogStash doc example) → LogStash (collectd input) → ElasticSearch → Kibana
I hereby claim:
- I am eripa on github.
- I am ericripa (https://keybase.io/ericripa) on keybase.
- I have a public key whose fingerprint is 655F 85E3 F560 43AA 7D2E F492 4B62 8008 4CDA E555
To claim this, I am signing this object:
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
#!/bin/bash | |
set -e | |
SRC_DIRECTORY="$HOME/src" | |
ANSIBLE_DIRECTORY="$SRC_DIRECTORY/ansible" | |
ANSIBLE_CONFIGURATION_DIRECTORY="$HOME/.ansible.d" | |
# Download and install Command Line Tools | |
if [[ ! -x /usr/bin/gcc ]]; then |
NewerOlder