Skip to content

Instantly share code, notes, and snippets.

http://monosnap.com/image/6l1P0z7gMa89iVdUEpIXkWVKTthtK5
the_12_month_raw_target
# percona-agent
description "Percona Agent"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
@e1senh0rn
e1senh0rn / gist:fc3bb3a3277bb6b29cc2
Last active August 29, 2015 14:04
cool-old-term compilation
cd konsole-qml-plugin/ && ( test -e Makefile || /usr/local/opt/qt5/bin/qmake /Users/eisenhorn/Projects/tmp/cool-old-term/konsole-qml-plugin/konsole-qml-plugin.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.1/mkspecs/macx-clang -I. -I/usr/local/Cellar/qt5/5.3.1/lib/QtQuick.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtQml.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtWidgets.framework/Versions/5/Headers -I/usr/local/Cellar/q
~/Projects/tmp/cool-old-term git:(osx*) (ruby-2.1.2)» make
cd konsole-qml-plugin/ && ( test -e Makefile || /usr/local/opt/qt5/bin/qmake /Users/eisenhorn/Projects/tmp/cool-old-term/konsole-qml-plugin/konsole-qml-plugin.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.1/mkspecs/macx-clang -I. -I/usr/local/Cellar/qt5/5.3.1/lib/QtQuick.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/QtQml.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.1/lib/Q
### Keybase proof
I hereby claim:
* I am e1senh0rn on github.
* I am eisenhorn (https://keybase.io/eisenhorn) on keybase.
* I have a public key whose fingerprint is EF8E 740A 1E98 00F7 CD86 E9B9 A10C 30B4 6DD6 8058
To claim this, I am signing this object:
#!/bin/bash
## Short introduction ##
# It is supposed that you have MySQL to backup. Done via mk-parallel-dump (maatkit).
# Files (including DB dumps) are keept versioned, so you can revert to any state during last 20 days. Done via rdiff-backup.
# Afterwards, files (with versions metainfo) are transfered to FTP server. Done via duplicity.
# Required software:
# 1. maatkit (mk-parallel-dump)
# 2. rdiff-backup
#!/bin/sh
#ROLE: server, upstream
ROLE="upstream"
CONFIG=/usr/local/etc/scribe/$ROLE.conf
. /etc/rc.subr
name="scribed"
rcvar=`set_rcvar`
public static function localize($user) {
global $_CONF;
//detect from browser
$language = http_negotiate_language(array_keys($_CONF['locales']));
//detect from cookie
if($_COOKIE['language'] && array_key_exists($_COOKIE['language'], $_CONF['locales'])) {
$language = $_COOKIE['language'];
}
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/Users/dm/Projects/pavelzmey"
ServerName pavelzmey.local
# ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
# CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log common"
<Directory /Users/dm/Projects/pavelzmey>
Options Indexes MultiViews
AllowOverride All