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
SELECT | |
table_schema "Data Base Name", | |
sum(data_length + index_length) / 1024 / 1024 "Data Base Size in MB", | |
sum(data_free) / 1024 / 1024 "Free Space in MB" | |
FROM information_schema.TABLES | |
GROUP BY table_schema; |
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
# Each distribution default Bash prompts | |
# Gentoo (/etc/bash/bashrc) | |
if [[ ${EUID} == 0 ]] ; then | |
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' | |
else | |
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' | |
fi |
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
# Redmine sub URI configuration | |
# | |
# CentOS: /etc/httpd/conf.d/redmine.conf | |
# Debian: /etc/apache2/conf.d/redmine.conf | |
# Gentoo: /etc/apache2/vhosts.d/(?)redmine_vhost.conf | |
Alias /redmine /var/www/redmine/public | |
<Location /redmine> | |
SetEnv RAILS_RELATIVE_URL_ROOT "/redmine" |
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
# ~/.ssh/config | |
# git clone server01:repo_name | |
Host server01 | |
User git | |
Hostname 192.168.0.1 | |
Port 2222 | |
PreferredAuthentications publickey | |
IdentityFile /media/flash8gb/ssh/id_rsa |
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
#. . . | |
<Directory /docroot> | |
php_admin_value open_basedir /docroot | |
</Directory> | |
#. . . |
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
;. . . | |
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source | |
;. . . |
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
# /etc/crypttab | |
home1 /dev/sdX none luks,tries=3 | |
home2 /dev/mapper/vg_main-lv_home none luks,tries=3 |
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
[logging] | |
default = FILE:/var/log/krb5libs.log | |
kdc = FILE:/var/log/krb5kdc.log | |
admin_server = FILE:/var/log/kadmind.log | |
[libdefaults] | |
default_realm = SKARLLOT.COM | |
dns_lookup_realm = true | |
dns_lookup_kdc = true | |
ticket_lifetime = 24h |
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 | |
# | |
# list-gentoo-packages.sh v0.2 | |
# Copyright 2007-2009, Nikita Melnichenko [http://nikita.melnichenko.name] | |
# License: GPL-2 (http://opensource.org/licenses/gpl-license.php) | |
# | |
# List all installed Gentoo packages with USE flags. | |
# generate use flags for package $1 (official, but very slow) | |
function portage_gen_use_flags_by_equery () |
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 | |
# | |
# Copyright (C) 2007 kace | |
# http://bsdpants.blogspot.de/2007/02/option-ize-your-shell-scripts.html | |
readonly USAGE='usage: '`basename $0`' [-13ds] [-o out-file] filename' | |
snmpver=2c | |
sync=0 | |
debug=0 |