All gists

waja
Last active 3 months ago
0 0 1
1 #!/bin/bash
2 # ------------------------------------------------------------------------------
3 # SOME INFOS : fairly standard (debian) init script.
4 # Note that node doesn't create a PID file (hence --make-pidfile)
5 # has to be run in the background (hence --background)
6 # and NOT as root (hence --chuid)
7 #
8 # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
9 # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
10 # INSTALL/REMOVE http://www.debian-administration.org/articles/28
waja
Last active 3 months ago
0 0 1
1 #!/bin/bash
2 # depends on https://gist.github.com/waja/01ba2641f93f461044f9
3 [ "$(cat /etc/debian_version | awk -F. {'print $1'})" -ne "8" ] && echo exit 1
4 # Install Source Liste for Gitlab-CI runner
5 cat >/etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list <<EOF
6 # this file was generated by packages.gitlab.com for
7 # the repository at https://packages.gitlab.com/runner/gitlab-ci-multi-runner
8
9 deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/debian/ jessie main
10 deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/debian/ jessie main
waja
Last active 3 months ago
0 0 1
1 --- /opt/sbin/munin-node.orig 2013-01-27 15:13:51.869007214 +0100
2 +++ /opt/sbin/munin-node 2013-01-27 16:11:20.536006950 +0100
3 @@ -133,7 +133,7 @@
4 if [ -n "$(which ethtool)" ]; then
5 if [ -x "$(which ethtool)" ]; then
6 if ethtool $1 | grep -q Speed; then
7 - MAX=$(($(ethtool $1 | grep Speed | sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/^ //' -e 's/M.*//' | cut -d\ -f2) * 1000000))
8 + MAX=$(($(ethtool $1 | grep Speed | sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/^ //' -e 's/M.*//' | sed -e 's/Unknown\!/0/' | cut -d\ -f2) * 1000000))
9 echo "up.max $MAX"
10 echo "down.max $MAX"
waja
Last active 3 months ago
0 0 1
1 diff -Nur orig/af-extended-live-archive-options.php af-extended-live-archive-options.php
2 --- orig/af-extended-live-archive-options.php 2006-02-22 19:06:00.000000000 +0100
3 +++ af-extended-live-archive-options.php 2006-05-26 22:47:28.000000000 +0200
4 @@ -7,7 +7,7 @@
5 */
6
7 include_once(ABSPATH . WPINC . '/class-snoopy.php');
8 -$af_ela_cache_root = ABSPATH . 'wp-content/af-extended-live-archive/';
9 +$af_ela_cache_root = ABSPATH . 'wp-content/af-extended-live-archive/' . $_SERVER["SERVER_NAME"] .'/';