Skip to content

Instantly share code, notes, and snippets.

View bikerduweb's full-sized avatar

Olivier bikerduweb

  • France
View GitHub Profile
@bikerduweb
bikerduweb / readme.txt
Last active October 1, 2021 21:10
Sphinx 2.1.9 brew formula. Install via "brew install RAW_URL"
* Install sphinx 2.1.9 (latest 2.1 stable version) with brew:
brew install https://gist.githubusercontent.com/veilleperso/dc13a6a4186a4ec32a57/raw/sphinx.rb
* To prevent automatic upgrade:
brew pin sphinx
* To upgrade again:
brew unpin sphinx
@caffeineflo
caffeineflo / Readme.md
Last active August 29, 2015 14:03
Autoboot Boot2Docker on System Startup

I came across this when I found several solutions that didn't work for me. They all had there very own problems, they either had a debug option in it (which I found guilty of not starting my job after several hours of debugging) or other unnecessary keys.

To make this plist work, you should may create the corresponding log files before and give them the necessary permissions (770 worked for me, though it's maybe too much).

  1. Create the plist under ~/Library/LaunchAgents/com.user.boot2docker.plist
  2. run launchctl load ~/Library/LaunchAgents/com.user.boot2docker.plist
@iamatypeofwalrus
iamatypeofwalrus / add_milliseconds_to_mysql_and_activerecord_timestamps.md
Last active February 2, 2024 15:38
ActiveRecord: Store Milliseconds (or Microseconds) in Timestamps/Datetimes with Rails / MySQL

ActiveRecord: Store Milliseconds (or Microseconds) in Timestamps with Rails / MySQL

Milliseconds in your Timestamps.

We got 'em, you want 'em.

Why

Shit needs to be PRECISE

LICENSE

MIT

@wbroek
wbroek / genymotionwithplay.txt
Last active February 12, 2024 03:22
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@bhaberer
bhaberer / submodule_strategy.rb
Last active January 29, 2019 20:13 — forked from stevenscg/submodule_strategy.rb
Capistrano 3.1.x Strategy to deploy git projects with submodules.
# Usage:
# 1. Drop this file into lib/capistrano/submodule_strategy.rb
# 2. Add the following to your Capfile:
# require 'capistrano/git'
# require './lib/capistrano/submodule_strategy'
# 3. Add the following to your config/deploy.rb
# set :git_strategy, SubmoduleStrategy
module SubmoduleStrategy
# do all the things a normal capistrano git session would do
@rpheath
rpheath / authlogic-to-devise.md
Last active July 18, 2024 18:17
Steps and troubleshooting tips when moving Authlogic to Devise.

How To: Authlogic to Devise

Step 1: Migration

  1. bin/rails g migration AuthlogicToDevise
  2. (see the file below for the actual migration, authlogic_to_devise.rb)
  3. bin/rake db:migrate

Step 2: Update Gemfile

  1. gem "devise", "~> 2.2.0"
  2. bundle install
@deepak
deepak / Dockerfile
Last active March 6, 2020 06:01
Dockerfile for installing ruby using rbenv
# DOCKER-VERSION 0.4.8
# am facing issue
# https://github.com/dotcloud/docker/issues/1123
FROM ubuntu:12.04
MAINTAINER Deepak Kannan "deepak@codemancers.com"
RUN apt-get -y install python-software-properties
@EtienneDepaulis
EtienneDepaulis / facturation_proxy.rb
Last active December 14, 2015 18:59
Proxy pour télécharger les factures de Facturation.pro
# /lib/facturation_proxy.rb
# Exemple : /factures?api_id=67863
require 'net/http'
class FacturationProxy
def self.call(env)
request = Rack::Request.new(env)
@dgilperez
dgilperez / gist:1960607
Last active November 6, 2018 16:58
Compiling and Installing Sphinx 2.0 with libstemmer
# to execute from home folder
wget http://snowball.tartarus.org/dist/libstemmer_c.tgz
wget http://sphinxsearch.com/files/sphinx-2.1.2-release.tar.gz
tar -xvzf sphinx-2.1.2-release.tar.gz
tar -xvzf libstemmer_c.tgz
cp -R libstemmer_c/* sphinx-2.1.2-release/libstemmer_c/
cd sphinx-2.1.2-release/
./configure --with-libstemmer
make
@sj26
sj26 / README.md
Created January 19, 2012 07:41
Run MailCatcher in the background, always, on OS X

Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist.

If you use pow, echo 1080 > ~/.pow/mailcatcher and go to http://mailcatcher.dev, otherwise use http://localhost:1080.

Currently pow doesn't seem to pass websockets through correctly. Looking into this.