Skip to content

Instantly share code, notes, and snippets.

💭
Travelling 🌴

Peter Mescalchin magnetikonline

💭
Travelling 🌴
Block or report user

Report or block magnetikonline

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@magnetikonline
magnetikonline / gist:3753174
Last active Oct 10, 2015
Building PHP 5.4.3 from source under RHEL 5/6.
View gist:3753174
## 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 Sep 20, 2012
Webalizer IgnoreAgent/SearchEngine rule sets conf - 2012-05
View gist:3753193
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 Oct 11, 2015
Sublime Text 2 - Sass syntax highlight and auto build on save.
View README.md

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 Nov 4, 2012
Webalizer IgnoreAgent/SearchEngine rule sets conf - 2012-11
View gist:4010244
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 Jul 13, 2018
Recursively garbage collect (compress) all child Git repositories from a given base directory.
View gitgarbagecollectall.sh
#!/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 Oct 12, 2015
Gnome 3 desktop setup notes - Ubuntu 12.04LTS.
View README.md

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 Oct 12, 2015
Sublime Text 2 - My user settings and keymap.
View Default (Linux).sublime-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 Dec 5, 2017
Nginx snippets collection.
View README.md
@magnetikonline
magnetikonline / README.md
Last active Dec 11, 2018
SSH/Readline cheatsheet.
View README.md

SSH/Readline cheatsheet

Under Emacs mode, typically the default for most shells.

Basic moves
Move back one character Ctrl + B
You can’t perform that action at this time.