Skip to content

Instantly share code, notes, and snippets.

View tomashejatko's full-sized avatar
🎯
Meow bussines

Tomáš Hejátko tomashejatko

🎯
Meow bussines
View GitHub Profile
@tomashejatko
tomashejatko / acpid
Created March 19, 2012 22:14
acpid handler.sh settings
#!/bin/sh
# Default acpi script that takes an entry for all actions
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
set $*
case "$1" in
@tomashejatko
tomashejatko / gist:2656604
Created May 10, 2012 23:40
.bashrc arteal
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# PS1 COLORS
if [ "$UID" != "0" ]; then
UID_COLOR='\[\e[0;32m\]'
@tomashejatko
tomashejatko / gist:3849889
Created October 7, 2012 23:01
fpm PECL install problem
running: make INSTALL_ROOT="/tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12" install
Installing shared extensions: /tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12/usr/lib/php5/20090626/
running: find "/tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12" | xargs ls -dils
7998891 4 drwxr-xr-x 3 root root 4096 Oct 8 00:57 /tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12
7998947 4 drwxr-xr-x 3 root root 4096 Oct 8 00:57 /tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12/usr
7998948 4 drwxr-xr-x 3 root root 4096 Oct 8 00:57 /tmp/package-pear-staging20121008-23216-1mlozsm/usr/share/pear/temp/pear-build-root1mxXTe/install-mongo-1.2.12/usr/lib
7998949 4 drwxr-xr-x 3 root root 4096 Oct 8 00:57