Skip to content

Instantly share code, notes, and snippets.

View oliveratgithub's full-sized avatar

Oliver oliveratgithub

View GitHub Profile
@oneup
oneup / q3_autoexec.cfg
Created July 15, 2009 21:15
widescreen quake 3 is nicer , also GL_NEAREST
// Quake 3
// config for iMac 2.4 GHz Core 2 Duo
// custom aspect ratio for 1680x1050 wide-screen
//
seta r_mode "-1"
seta r_fullscreen "1"
seta r_customheight "1050"
seta r_customwidth "1680"
@jakebellacera
jakebellacera / ICS.php
Last active April 19, 2024 09:06
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@jpwright
jpwright / csstwitterbutton.html
Created April 8, 2012 20:52
CSS Twitter Button
<!-- This mimics the official tweet buttons that Twitter provides, without using JavaScript. This is useful for certain web applications, and for emails. See https://twitter.com/about/resources/buttons -->
<style type="text/css">
.tweetbutton {
inherit: none;
height: 16px;
display: inline-block;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
@SimonGivre
SimonGivre / test-country-IP-addresses.txt
Created August 30, 2012 10:21
Test country IP addresses
# IPs
Spain 62.13.255.230 2.20.185.5
Germany 2.16.6.5
Australia 1.2.3.4
USA 65.98.56.219
UAE 80.190.204.129
Italy 87.23.255.254
French 62.129.191.252
UK 91.151.7.6
CZ 62.4.96.5
@Daeinar
Daeinar / gist:4383663
Created December 26, 2012 22:34
Install pip packages with homebrew
Install pip packages with homebrew:
1. Install Homebrew
http://mxcl.github.com/homebrew/
2. Install the brew-pip package
brew install brew-pip
3. Add Homebrew's pip path to your PYTHONPATH environment variable (you probably should add this to some sort of shell initialization file like ~/.bashrc or ~/.zshrc)
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages
3. Now install any pip pacakges with Homebrew!
brew pip Glances
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@kkirsche
kkirsche / Install Composer to use MAMP's PHP.md
Last active January 30, 2024 02:30
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

@fabiofl
fabiofl / gist:5873100
Created June 27, 2013 00:41
Clear Mac OS X's icon cache.
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
@Irvyne
Irvyne / php-mamp-cli-with-alias.md
Last active August 24, 2020 01:47
Use mamp php in cli (using an alias)

Use mamp php in cli (using an alias)

Open a terminal and type php -v to see the current version of php.

Determine the path for the wanted php version of mamp (YOUR VERSION ON YOUR COMPUTER!)

  • example : /Applications/MAMP/bin/php/php5.x.x/bin/php

Type in the terminal cd ~ to change the current directory (in your home)