waja / gist:09b74c337787477ab289e39eaf4709d7
0 mi piace
0 forks
2 files
Ultima volta attivo 1 week ago
waja / gist:97562847e8fd4cb58a261b3887028a0b
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
waja / gist:da20541bae154d6480c49918b541ac89
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | LOG_DIR="/var/log/apache2/vhosts/access_logs/" |
| 4 | VHOST_BASE="/var/www/" |
| 5 | STATS_OUT_DIR="/stats/" |
| 6 | BOOTSTRAP=0 |
| 7 | |
| 8 | for DIR in $(find /var/www/ -maxdepth 2 -name 'public_html' -type d); do |
| 9 | VHOST=$(basename $(echo $DIR | sed "s/\/public_html.*//")) |
waja / gist:31120786cf8f4b2f9b23f7755efbbc18
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | #!/bin/bash |
| 2 | # |
| 3 | # PHP 5.4 Deprecated function checker |
| 4 | # |
| 5 | # Version: 0.0.3 |
| 6 | # |
| 7 | # Original Author: Michiel Roos <michiel@donationbasedhosting.org> |
| 8 | # |
| 9 | # http://www.php.net/manual/de/migration54.incompatible.php |
| 10 | # http://www.php.net/manual/en/migration54.deprecated.php |
waja / gist:f5565a764f1c4ba59adb87364d3ce9c0
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | # Load setenv module (as there is no template in |
| 2 | # /etc/lighttpd/conf-available and it's not loaded by default) |
| 3 | server.modules += ( "mod_setenv" ) |
| 4 | |
| 5 | # Aliases for needed directories |
| 6 | alias.url += ( |
| 7 | "/cgi-bin/icinga" => "/usr/lib/cgi-bin/icinga", |
| 8 | "/icinga/stylesheets" => "/etc/icinga/stylesheets", |
| 9 | "/icinga" => "/usr/share/icinga/htdocs", |
| 10 | ) |
waja / gist:95b08b55ebdc40998de71dac8919ee1d
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | if [ "$TERM" != "dumb" ]; then |
| 2 | if [[ "$OSTYPE" == "darwin"* ]]; then |
| 3 | # For ls colors in Solarized theme |
| 4 | # https://github.com/seebi/dircolors-solarized/issues/10 |
| 5 | export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD |
| 6 | # source git completion |
| 7 | if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then |
| 8 | . /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash |
| 9 | fi |
| 10 | source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh |
waja / gist:edc8828bdd1046aab2f4057b79fa74be
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | --- /usr/bin/mk-sbuild 2013-10-14 22:02:00.000000000 +0200 |
| 2 | +++ /tmp/mk-sbuild 2013-11-24 22:56:49.000000000 +0100 |
| 3 | @@ -618,7 +618,11 @@ |
| 4 | sudo mkdir -p -m 0700 "$MNT"/root/.gnupg |
| 5 | |
| 6 | # debootstrap the chroot |
| 7 | -sudo ${proxy:+"http_proxy=${proxy}"} "$DEBOOTSTRAP_COMMAND" --arch="$CHROOT_ARCH" $variant_opt $debootstrap_opts "$RELEASE" "$MNT" "${DEBOOTSTRAP_MIRROR:-http://archive.ubuntu.com/ubuntu}" |
| 8 | +if [ "$CHROOT_ARCH" = "armhf" ]; then |
| 9 | + sudo ${proxy:+"http_proxy=${proxy}"} "$DEBOOTSTRAP_COMMAND" --arch="$CHROOT_ARCH" $variant_opt $debootstrap_opts "$RELEASE" "$MNT" "${DEBOOTSTRAP_MIRROR:-http://archive.ubuntu.com/ubuntu}" "${DEBOOTSTRAP_KEYRING}" |
| 10 | +else |
waja / gist:b70a2ea5d7544cec8f3a2ee4176b7c60
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | # see http://wiki.debian.org/DebianInstaller/NetbootFirmware#Wheezy_Example_.232_:_add_debs_from_firmware.tar.gz |
| 2 | #!/bin/sh |
| 3 | FWTMP=/tmp/d-i_firmware |
| 4 | DSTDIR=/srv/tftp/boot/debian-installer/ |
| 5 | rm -rf $FWTMP |
| 6 | mkdir -p $FWTMP/firmware |
| 7 | cd $FWTMP |
| 8 | |
| 9 | wget http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/wheezy/current/firmware.tar.gz |
waja / gist:7af118d1e10d4a1b830bbb0a07da59ee
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | location /phpmyadmin { |
| 2 | root /usr/share/; |
| 3 | location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| 4 | root /usr/share/; |
| 5 | } |
| 6 | location ~ /(libraries|setup/frames|setup/libs) { |
| 7 | deny all; |
| 8 | } |
| 9 | location ~ ^/phpmyadmin/setup/(.+\.php)$ { |
| 10 | auth_basic "phpMyAdmin Setup"; |
waja / gist:46061d5935e946468c42ab22908d42d9
0 mi piace
0 forks
1 files
Ultima volta attivo 1 week ago
| 1 | #!/bin/sh |
| 2 | wget -q http://www.startssl.com/certs/sub.class1.server.ca.pem -O /tmp/sub.class1.server.ca.pem; \ |
| 3 | openssl ocsp -CAfile /tmp/sub.class1.server.ca.pem -issuer /tmp/sub.class1.server.ca.pem \ |
| 4 | -url http://ocsp.startssl.com/sub/class1/server/ca -noverify -no_nonce \ |
| 5 | -header "HOST" "ocsp.startssl.com" -cert ${1} |