start new:
tmux
start new with session name:
tmux new -s myname
<?php | |
$collection = new RouteCollection; | |
$collection->add('chatRoom', new Route('/demo', array( | |
'_controller' => new ChatRoom | |
, 'allowedOrigins' => 'socketo.me' | |
))); | |
$collection->add('echo', new Route('/echo', array( |
#!/bin/sh | |
# Dump gsettings | |
for s in $(gsettings list-schemas); do | |
for k in $(gsettings list-keys $s); do | |
echo -n "$s.$k = "; gsettings get $s $k; | |
done; | |
done |
# Install quemu, docker, etc | |
yaourt -S qemu qemu-user-static binfmt-support | |
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository. | |
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b") | |
# Enable ARM emulation | |
update-binfmts --enable qemu-arm |
#!/bin/bash | |
pacman -Qmq | while read package; do | |
cur_version=$(pacman -Qi $package | egrep 'Version *:' | sed 's/Version *: *//'); # fast | |
aur_version=$(yaourt -Si $package | egrep 'Version *:' | sed 's/Version *: *//'); # slow | |
if [ "$cur_version" = "$aur_version" ]; then | |
echo -e "\e[0;32mUp to date: \e[0m$package"; | |
else | |
echo -e "\e[1;33mNeeds update: \e[0m$package \e[0;33m(installed: $cur_version, aur: $aur_version)\e[0m"; | |
fi |