Skip to content

Instantly share code, notes, and snippets.

View twoixter's full-sized avatar

Jose Miguel Pérez twoixter

View GitHub Profile
@jasonmoo
jasonmoo / PHPFPM.Portfile
Created December 1, 2010 23:31
PHP 5.3.3 MacPorts Portfile with FPM enabled FastCGI variant
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 71588 2010-09-17 05:21:24Z [email protected] $
PortSystem 1.0
name php5
conflicts php5-devel php52
# Update revision of php5-eaccelerator when updating version of php5
epoch 1
version 5.3.3
@dalecaru
dalecaru / innobackupex-restore.sh
Created April 20, 2011 13:42
Scripts to create and restore full and incremental backups (for all databases on server) using innobackupex from Percona.
#!/bin/sh
#
# Script to prepare and restore full and incremental backups created with innobackupex-runner.
#
# This script is provided as-is; no liability can be accepted for use.
#
INNOBACKUPEX=innobackupex-1.5.1
INNOBACKUPEXFULL=/usr/bin/$INNOBACKUPEX
TMPFILE="/tmp/innobackupex-restore.$$.tmp"
@khrona
khrona / main.cpp
Created July 28, 2011 22:23
Captures a web-page to a JPEG (or series of JPEGs if the height is too great). Uses Awesomium 1.6.2 (r159+) and C API.
#include <Awesomium/awesomium_capi.h>
#include <string.h>
#include <stdio.h>
#if defined(__WIN32__) || defined(_WIN32)
#include <windows.h>
#elif defined(__APPLE__)
#include <unistd.h>
#endif
// The URL to render
@authoritylabs
authoritylabs / google-papi-locales.json
Created April 10, 2012 00:05
AuthorityLabs Supported Google Partner API Locales
{
"locales": {
"en-as": {
"tld": "as",
"description": "American Samoa - English"
},
"cr-sc": {
"tld": "sc",
"description": "Seychelles - Seychellois Creole"
},
@authoritylabs
authoritylabs / bing-papi-locales.json
Created April 10, 2012 00:06
AuthorityLabs Supported Bing Partner API Locales
{
"locales": {
"tl-ph": {
"tld": "",
"description": ""
},
"nl-be": {
"tld": "be",
"description": "Belgium - Dutch"
},
@authoritylabs
authoritylabs / yahoo-papi-locales.json
Created April 10, 2012 00:08
AuthorityLabs Supported Yahoo! Partner API Locales
{
"locales": {
"es-us": {
"tld": "espanol.search.yahoo.com",
"description": "United States - Spanish"
},
"en-tw": {
"tld": "tw.search.yahoo.com",
"description": ""
},
@chasers
chasers / yahoo-papi-locales.json
Created April 11, 2012 20:49 — forked from authoritylabs/yahoo-papi-locales.json
AuthorityLabs Supported Yahoo! Partner API Locales
{
"locales": {
"es-us": {
"tld": "espanol.search.yahoo.com",
"description": "United States - Spanish"
},
"en-tw": {
"tld": "tw.search.yahoo.com",
"description": ""
},
@chasers
chasers / bing-papi-locales.json
Created April 11, 2012 20:51 — forked from authoritylabs/bing-papi-locales.json
AuthorityLabs Supported Bing Partner API Locales
{
"locales": {
"ko-kr": {
"tld": "http://bing.com/?setmkt=ko-jr&setlang=match",
"description": "Korea - Korean"
},
"it-it": {
"tld": "http://bing.com/?setmkt=it-it&setlang=match",
"description": "Italy - Italian"
},
@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

@mwhite
mwhite / git-aliases.md
Last active November 18, 2024 15:39
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc