Skip to content

Instantly share code, notes, and snippets.

View magnetikonline's full-sized avatar
💡
I have an idea!

Peter Mescalchin magnetikonline

💡
I have an idea!
View GitHub Profile
@magnetikonline
magnetikonline / gist:3753174
Last active October 10, 2015 21:28
Building PHP 5.4.3 from source under RHEL 5/6.
## Building PHP 5.4.3 under Red Hat Linux 5/6 for php CLI and php-fpm (FastCGI for Nginx/etc.)
## Adjust your included PHP modules to suit.
$ yum install libxml2-devel libcurl-devel libjpeg-devel libpng-devel libmcrypt-devel
- Note: package 'libcurl-devel' is named 'curl-devel' under RHEL 5
$ mkdir /php/compile/path
$ cd /php/compile/path
$ wget http://au2.php.net/get/php-5.4.3.tar.gz/from/au.php.net/mirror
$ tar xvf php-5.4.3.tar.gz
@magnetikonline
magnetikonline / gist:3753193
Created September 20, 2012 00:20
Webalizer IgnoreAgent/SearchEngine rule sets conf - 2012-05
IgnoreAgent Aboundex/*
IgnoreAgent AdsBot-Google*
IgnoreAgent Aghaven/*
IgnoreAgent Alltop/*
IgnoreAgent AppEngine-Google*
IgnoreAgent Apple-PubSub/*
IgnoreAgent AppleSyndication/*
IgnoreAgent Baiduspider*
IgnoreAgent bitlybot
IgnoreAgent blogged_crawl/*
@magnetikonline
magnetikonline / README.md
Last active October 11, 2015 10:48
Sublime Text 2 - Sass syntax highlight and auto build on save.

Sublime Text 2 Sass enhancements

Steps for Sass file syntax highlighting and auto build of Sass -> CSS on save. Tested under Ubuntu Linux.

Install Sass

  • $ sudo apt-get install rubygems
  • $ sudo gem install sass

Syntax highlighting

  • $ cd ~/.config/sublime-text-2/Packages
  • $ git clone -b SublimeText2 git://github.com/kuroir/SCSS.tmbundle.git SCSS
@magnetikonline
magnetikonline / gist:4010244
Created November 4, 2012 04:31
Webalizer IgnoreAgent/SearchEngine rule sets conf - 2012-11
IgnoreAgent Aboundex/*
IgnoreAgent AdsBot-Google*
IgnoreAgent Aghaven/*
IgnoreAgent Alltop/*
IgnoreAgent AppEngine-Google*
IgnoreAgent Apple-PubSub/*
IgnoreAgent AppleSyndication/*
IgnoreAgent BacklinkCrawler*
IgnoreAgent Baiduspider*
IgnoreAgent bitlybot
@magnetikonline
magnetikonline / gitgarbagecollectall.sh
Last active October 2, 2023 13:38
Recursively garbage collect (compress) all child Git repositories from a given base directory.
#!/bin/bash -e
if [[ ! -d $1 ]]; then
echo "Usage: $(basename "$0") DIR"
exit 1
fi
IFS=$'\n'
for gitRepoDir in $(find "$(readlink -f "$1")" -type d -name ".git"); do
gitRepoDir=${gitRepoDir%/.git}
@magnetikonline
magnetikonline / README.md
Last active October 12, 2015 19:47
Gnome 3 desktop setup notes - Ubuntu 12.04LTS.

Gnome 3 desktop setup notes - Ubuntu 12.04LTS

My current sane desktop settings/setup for Gnome 3 shell. Starting with Ubuntu 12.04LTS desktop as a base.

Install Gnome 3 shell and tweak tool

  • $ sudo add-apt-repository ppa:gnome3-team/gnome3
  • $ sudo apt-get update
  • $ sudo apt-get install gnome-shell
  • $ sudo apt-get install gnome-tweak-tool

Gnome 3 extensions

@magnetikonline
magnetikonline / Default (Linux).sublime-keymap
Last active October 12, 2015 21:48
Sublime Text 2 - My user settings and keymap.
[
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+shift+o"], "command": "todo" }
//{ "keys": ["ctrl+shift+i"], "command": "todo", "args": { "open_files_only": true } }
]
@magnetikonline
magnetikonline / README.md
Last active December 5, 2017 12:35
Nginx snippets collection.
@magnetikonline
magnetikonline / README.md
Last active May 22, 2020 18:55
SSH/Readline cheatsheet.

SSH/Readline cheatsheet

Under Emacs mode, typically the default for most shells.

Ctrl + B
Basic moves
Move back one character