Skip to content

Instantly share code, notes, and snippets.

View cvergne's full-sized avatar
👨‍💻
Probably developing…

Christophe Vergne cvergne

👨‍💻
Probably developing…
View GitHub Profile
@jonesmac
jonesmac / Memcache-osx.markdown
Last active June 30, 2017 19:49
Setting Up MemCache on OSX with MAMP 2.0
@merk
merk / TwigExceptionListener.php
Created September 13, 2013 03:59
Disable 404 errors
<?php
/**
* This file is part of IBMS
*
* (c) Infinite Networks Pty Ltd <http://www.infinite.net.au>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@cvergne
cvergne / install_intl.sh
Created August 23, 2013 12:02
Install intl extension to MAMP
#!/bin/bash
# get php source code
mkdir /Applications/MAMP/bin/php/php5.4.10/include
cd /Applications/MAMP/bin/php/php5.4.10/include
wget -O php-5.4.10.tar.gz http://us.php.net/get/php-5.4.10.tar.gz/from/this/mirror
tar xzf php-5.4.10.tar.gz
@chrisboulton
chrisboulton / viscosity-to-ios-connect.rb
Last active March 21, 2024 00:59
Quickly convert all of your Viscosity connections into OVPN configuration files for OpenVPN for iOS (bundles certificates and keys in the files too)
config_files = Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf")
config_files.each do |file|
certificate_files = ['ca', 'cert', 'key', 'tls-auth']
config_dir = File.dirname(file)
connection_name = nil
new_config = []
File.read(file).each do |line|
line.strip!
@chrisl8888
chrisl8888 / solrsetup.sh
Last active February 13, 2017 19:56
Amazon EC2 Solr / jetty setup on Ubuntu 12.04 LTS
#/bin/bash
# stolen from http://kingstonlabs.co.uk/blog/how-to-install-solr-36-on-ubuntu-1204/
sudo apt-get update; sudo apt-get upgrade -y;
# Install solr and jetty packages
sudo apt-get install jetty openjdk-7-jdk libjetty-extra unzip -y
cd ~;
wget http://www.eng.lsu.edu/mirrors/apache/lucene/solr/3.6.2/apache-solr-3.6.2.tgz
tar -xvzf *.tgz;
rm *.tgz;
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@hlandry
hlandry / gist:3785269
Created September 26, 2012 00:24
Installing Apache Solr for Drupal on Mac OSX

Installing Apache Solr on Mac OSX Snow Leopard for Drupal

The apachesolr module for Drupal provides a first class search engine with faceted search and more. This module needs a solr server to work.

This post explains how you can install the module and a solr server on Mac OS 10.6.

Snow Leopard has already Java installed so it's pretty easy to install Apache Solr. You can almost follow the readme coming with the module but this give you a fast way ;).

Install apchesolr module

@adrienbrault
adrienbrault / purge.sh
Created September 24, 2012 10:02
Script to reduce VM size before packaging for vagrant
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
@BFTrick
BFTrick / deploy.sh
Created September 22, 2012 18:28
WordPress Plugin Deploy Script
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="______your-plugin-name______"
CURRENTDIR=`pwd`
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin
# git config