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: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 / 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 / randomchars.sh
Last active October 21, 2015 09:48
Generate some random characters in Bash.
#!/bin/bash
cat /dev/urandom | tr -dc A-Za-z0-9- | head -c 512
@magnetikonline
magnetikonline / gist:4386671
Last active December 10, 2015 05:18
Webalizer IgnoreAgent/SearchEngine rule sets conf - 2012-12
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 / magentodenynginx.conf
Last active December 12, 2015 07:18
Magento Nginx default deny ruleset.
# a fairly complete set of deny rules for Magento when running under Nginx webserver
# replicating functionality from the .htaccess files present in a base install.
location ~ "\.htaccess$" {
deny all;
}
location ^~ /app/ {
deny all;
}
@magnetikonline
magnetikonline / filelistandcount.sh
Last active December 12, 2015 09:09
Find and list all file types recursively from the current directory with file counts.
find . -type f | sed 's/.*\.//' | sort | uniq -c
@magnetikonline
magnetikonline / example.scss
Last active December 14, 2015 09:09
Sass media query @mixin example.
$breakSmall: 320px;
$breakLarge: 1024px;
@mixin respondTo($media) {
@if ($media == handhelds) {
@media only screen and (max-width: $breakSmall) { @content; }
}
@else if ($media == medium-screens) {
@media only screen and (min-width: $breakSmall + 1) and (max-width: $breakLarge - 1) { @content; }
}