This file contains hidden or 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
du -k | sort -nr | |
du -m | sort -nr | |
du -B 1024 | sort -nr | |
du -B 1048576 | sort -nr | |
du -B 1073741824 | sort -nr |
This file contains hidden or 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
sub vcl_recv { | |
# Set backend | |
set req.backend = default; | |
if (req.http.host ~ "gitweb.squeezebox.vm") { | |
return (pass); | |
} | |
# Set a unique cache header with client ip | |
if (req.http.x-forwarded-for) { |
This file contains hidden or 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
<?php | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2011 Nicole Cordes <[email protected]>, CPS-IT GmbH | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is | |
* free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
# Enable current git branch to bash promt | |
# nano /root/.bashrc | |
if [ -f /etc/bash_completion.d/git ]; then | |
. /etc/bash_completion.d/git | |
fi | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")\$ ' |
This file contains hidden or 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
Step 1: Generate a Private Key | |
openssl genrsa -des3 -out server.key 1024 | |
Step 2: Generate a CSR (Certificate Signing Request) | |
openssl req -new -key server.key -out server.csr | |
Step 3: Remove Passphrase from Key | |
cp server.key server.key.old | |
openssl rsa -in server.key.old -out server.key | |
This file contains hidden or 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
1) Ping | |
Name: Ping (public) | |
Protocol: ICMPv4 | |
Specific ICMP types: echo request | |
Scope: IP range | |
2) Apache HTTP Server | |
Switch from deny to allow for both rules (TCP and UDP) | |
Set up IP scope |
This file contains hidden or 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/init.d/bind9 stop | |
mkdir -p /var/chroot/bind9/{etc,dev,var/cache/bind,var/run/bind/run} | |
chown -R bind:bind /var/chroot/bind9/var/* | |
mknod /var/chroot/bind9/dev/null c 1 3 | |
mknod /var/chroot/bind9/dev/random c 1 8 | |
chmod 666 /var/chroot/bind9/dev/{null,random} | |
mv /etc/bind /var/chroot/bind9/etc | |
ln -s /var/chroot/bind9/etc/bind /etc/bind | |
chown -R bind:bind /etc/bind/* | |
nano /etc/default/bind9 |
This file contains hidden or 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
git filter-branch --env-filter 'GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE; export GIT_COMMITTER_DATE' |
This file contains hidden or 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
GIT_AUTHOR_DATE='2013-02-18 17:45' GIT_COMMITTER_DATE='2013-02-18 17:45' git commit -m "" |
This file contains hidden or 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
RTE { | |
## define table classes | |
classes.myCustomTable { | |
name = My custom table layout | |
alternating.rows { | |
# 0 = even, 1 = odd | |
startAt = 0 | |
oddClass = row-odd |