Skip to content

Instantly share code, notes, and snippets.

@intarstudents
intarstudents / skype.sh
Created September 14, 2012 20:17
Open links from Skype in Google Chrome (Mint 13)
#!/bin/sh
export BROWSER=/usr/bin/google-chrome
skype
@intarstudents
intarstudents / ios_disable_voice_control.md
Created August 28, 2012 13:42
ios disable voice control
oolongtea:/System/Library/LaunchDaemons root# mkdir ~/backup
oolongtea:/System/Library/LaunchDaemons root# mv com.apple.scrod.plist ~/backup/
oolongtea:/System/Library/LaunchDaemons root# mv com.apple.VoiceOverTouch.plist ~/backup/
oolongtea:/System/Library/LaunchDaemons root# mv com.apple.voiced.plist ~/backup/
@intarstudents
intarstudents / os_x_10.8.md
Created July 28, 2012 10:00
OS X 10.8 on GA-H67N-USB3-B3-F9

Install MultiBeast 4.6.1:

+ UserDSDT Install
+ System Utilities
- Drivers & Bootloaders
  - Kexts & Enablers
    - Audio
      - Realtek ALC8xx
 - Unified Device Injector
@intarstudents
intarstudents / PEAR.md
Created July 23, 2012 07:15
Non-static method PEAR::isError() should not be called statically

/usr/local/lib/php/PEAR.php

static function isError($data, $code = null)
    {   
        if (!is_a($data, 'PEAR_Error')) {
            return false;
        }
@intarstudents
intarstudents / sshmount.sh
Created July 7, 2012 12:45
SSHFS mount script
#!/bin/bash
# Default ssh port
PORT=22
# If secound argument is number use it as PORT
if [ "$2" != "" ] && [[ $2 != *[!0-9]* ]] ; then
PORT=$2
fi
@intarstudents
intarstudents / compiling_nginx.md
Last active October 6, 2015 22:07
Compiling Nginx

Dependencies

$ sudo aptitude install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

Install

$ wget http://nginx.org/download/nginx-1.4.2.tar.gz
@intarstudents
intarstudents / compiling_zeromq.md
Last active October 6, 2015 21:58
Compiling ZeroMQ

Dependencies:

$ aptitude install libtool autoconf automake uuid-dev

Installation commands:

$ git clone https://github.com/zeromq/zeromq3-x.git
@intarstudents
intarstudents / screentab.sh
Created November 29, 2011 22:58
screentab
#!/bin/sh
error() { echo "$@" 1>&2; exit 1; }
[ $# -gt 1 ] ||
error "must provide screen session name and command"
session="${1}"
shift;
found=$(screen -ls | awk '-F\t' '$2 ~ m {print $2}' "m=[0-9]+[.]$session$")
@intarstudents
intarstudents / gist:1330140
Created November 1, 2011 08:16
Google Reader (G+ version) in my style (Stylish)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document
url-prefix(http://www.google.com/reader),
url-prefix(https://www.google.com/reader)
{
#current-entry .card {
border-color: #fff !important;
}
@intarstudents
intarstudents / tail-php-log.sh
Created August 20, 2011 09:28
Parse (tail) nginx stderr for FastCGI PHP errors
#!/bin/bash
tail -f $1 | awk -F '"' 'BEGIN {RS = "\"\n" ; } /FastCGI/ {split($1,t,"["); print t[1],$2}'