Wednesday, October 14, 2015
Tuesday, October 06, 2015
Thursday, October 01, 2015
Fascist logging (but can be turned off by User)
function log2syslog
{
declare command
command=$(fc -ln -0)
logger -p local1.notice -t bash -i -- $USER : $command
}
trap log2syslog DEBUG
{
declare command
command=$(fc -ln -0)
logger -p local1.notice -t bash -i -- $USER : $command
}
trap log2syslog DEBUG
Practical Shell Aliases ( not only for Germans )
## german version
alias l='ls -ltr'
alias la='ls -ltra'
alias lh='ls -ltrh'
alias lah='ls -ltrah'
alias lmaa='echo du mich auch'
alias l='ls -ltr'
alias la='ls -ltra'
alias lh='ls -ltrh'
alias lah='ls -ltrah'
alias lmaa='echo du mich auch'
Friday, September 18, 2015
"Cronitor"
Now there's a smart idea. Will even work via proxy. Mind you: Any monitoring can do that.
# m h dom mon dow command
0 1 * * * /path/to/mysqlbackup.sh &&
curl https://cronitor.link/d3x0/complete -m 10
# m h dom mon dow command
0 1 * * * /path/to/mysqlbackup.sh &&
curl https://cronitor.link/d3x0/complete -m 10
Thursday, September 17, 2015
Amazon Web Services CLI
pip install awscli
aws ec2 run-instances --instance-ids i-2b2368ea
aws ec2 describe-instance-status --instance-ids i-2b2368ea
aws ec2 run-instances --instance-ids i-2b2368ea
aws ec2 run-instances --instance-ids i-2b2368ea
aws ec2 describe-instance-status --instance-ids i-2b2368ea
aws ec2 run-instances --instance-ids i-2b2368ea
sum up files found
find $DIR $MODIFIER -ls | awk 'BEGIN {i=0} {i += $7} END {print i/1048576000 "GB"}'
Wednesday, September 16, 2015
How to disable data logging in Windows 10
https://www.reddit.com/r/Windows10/comments/3f38ed/guide_how_to_disable_data_logging_in_w10/
Tuesday, September 15, 2015
A list of available Perl Modules
http://search.cpan.org/~rurban/Compress-Bzip2-2.22/lib/Compress/Bzip2.pm
Thursday, September 10, 2015
RedHat RHEL Lifecycle
"Extended" Life-cycle Dates :-D
All future dates mentioned for "End of Production 1" and "End of Production 2" are close approximations, non definitive, and subject to change.
| Version | General Availability | End of Production 1 | End of Production 2 | End of Production 3 (End of Production Phase) | End of Extended Life-cycle Support | End of Extended Life Phase |
|---|---|---|---|---|---|---|
| 3 | October 23, 2003 | July 20, 2006 | June 30, 2007 | October 31, 2010 | January 30, 2014 | January 30, 2014 |
| 4 | February 14, 2005 | March 31, 2009 | February 16, 2011 | February 29, 2012 | March 31, 2017 | Ongoing |
| 5 | March 15, 2007 | January 8, 2013 | January 31, 2014 | March 31, 2017 | November 30, 2020 | Ongoing |
| 6 | November 10, 2010 | Q2 of 2016 | Q2 of 2017 | November 30, 2020 | N/A | Ongoing |
| 7 | June 10, 2014 | Q4 of 2019 | Q4 of 2020 | June 30, 2024 | N/A | Ongoing |
Wednesday, September 09, 2015
Tuesday, August 25, 2015
Friday, August 07, 2015
Monday, August 03, 2015
Dump Database Create Statements
db2: db2look
MySQL: mysqldump -u root --nodata database
Mysql SHOW CREATE TABLE
Friday, July 24, 2015
Wednesday, July 22, 2015
'tis the truth, y'kno
sysop@host:~$ w
09:45:52 up 2731 days, 8:25, 1 user, load average: 0.01, 0.04, 0.00
09:45:52 up 2731 days, 8:25, 1 user, load average: 0.01, 0.04, 0.00
Subscribe to:
Posts (Atom)