Chronological list of the "systemd for Administrators" series published on 0pointer.net/blog:
This file contains 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
set nocompatible " Disable vi compability | |
filetype off " required! | |
" Init Vundle | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! |
This file contains 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
! Forget any previous Caps Lock | |
clear Lock | |
keycode 66 = ISO_Group_Shift ISO_Group_Shift ISO_First_Group NoSymbol | |
keycode 44 = j J braceleft Down dead_belowdot dead_abovedot dead_belowdot | |
keycode 45 = k K braceright Up kra ampersand kra | |
keycode 30 = u U bracketleft U downarrow uparrow downarrow | |
keycode 31 = i I bracketright I rightarrow idotless rightarrow |
This file contains 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
upstream backend { | |
server localhost:8080; | |
#server backup1.example.com:8080 backup; | |
#server backup2.example.com:8080 backup; | |
} | |
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m; | |
# Set cache key to include identifying components |
This file contains 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
mv ~/.WebIde70/config ~/.config/WebIde70 | |
cp /usr/share/phpstorm/bin/idea.properties ~/.config/WebIde70/idea.properties | |
vim ~/.config/WebIde70/idea.properties~/.config/WebIde70/idea.properties | |
- # idea.config.path=${user.home}/.WebIde/config | |
+ idea.config.path=${user.home}/.config/WebIde70 | |
- # idea.system.path=${user.home}/.WebIde/system | |
+ idea.system.path=${user.home}/.cache/WebIde70 |
This file contains 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 php_class_visibility.php | |
private method called. | |
private method called. |
This file contains 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 | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
$example = ['foo' => ['bar' => 'baz']]; | |
var_dump( | |
$example['foo'] ?? [] | |
); |
Install Debian Jessie on DigitalOcean using the Debian 7.0 x64 Image.
First update to Debian 8.0 Jessie:
# Source:
# http://unix.stackexchange.com/questions/90389/how-to-upgrade-debian-stable-wheezy-to-testing-jessie/90391#90391
cp /etc/apt/sources.list{,.bak}
sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list
apt-get update
This file contains 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 | |
// conditions are just semantic value objects containing constraint data | |
// handlers now how to interact with a condition it supports and operates on the given $querybuilder | |
// The LSP Violation happens in the generateCondition() method of the handler where we want to pull additional values from the condition object. | |
$condition = new SearchTermCondition("foobar"); | |
$handler = new SearchTermConditionHandler(); |