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 -x # Debug Script | |
HOST=localhost | |
PASS=pass | |
# Additional options for review --opt --complete-insert --flush-logs --force --quote-names --add-drop-database --lock-tables --insert-ignore --comments | |
# See: http://www.iheavy.com/2012/08/09/5-things-you-overlooked-with-mysql-dumps/ | |
#Structure Only |
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/sh | |
# | |
# Usage: | |
# tail_http.ssh user@host | |
ssh -t $1 "sudo tail -f /var/log/httpd/error_log" |
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/sh | |
# Usage | |
# tail_mysql.sh user@host | |
# | |
# Notes | |
# If you want to trace sql queries as they are run, be sure to enable | |
# the general log, use the following comman | |
# mysql -u user -p --execute "SET GLOBAL general_log = 'ON';" | |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# This is an example of how to print a console | |
# message on the same line | |
from time import sleep | |
import sys | |
def ps(string): |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# This is an example of how to print a console | |
# message on the same line | |
from time import sleep | |
import sys | |
def ps(string): |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# This is an example of how to print a console | |
# message on the same line | |
from time import sleep | |
import sys | |
def ps(string): |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# This is an example of how to print a console | |
# message on the same line | |
from time import sleep | |
import sys | |
def ps(string): |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# This is an example of how to print a console | |
# message on the same line | |
from time import sleep | |
import sys | |
def ps(string): |
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
#!/usr/bin/env bash | |
# Usage | |
# copy_ssh_keys.sh user@host | |
# | |
# Notes | |
# Makes sure to generate your ssh keys before running, if | |
# you havent done so just uncomment the line below | |
# ssh-keygen -t rsa | |
echo -e "\n>>> Creating remote .ssh folder" |
OlderNewer