Skip to content

Instantly share code, notes, and snippets.

View lupeke's full-sized avatar

Daniel Dias lupeke

View GitHub Profile
@dhh
dhh / linux-setup.sh
Last active July 19, 2024 07:52
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@leite
leite / gist:b4ac06ce014684b8e2ea
Created May 8, 2014 20:54
install sphinx with libstemmer
sudo wget http://sphinxsearch.com/files/sphinx-2.1.8-release.tar.gz
sudo tar zxf sphinx-2.1.8-release.tar.gz
sudo wget http://snowball.tartarus.org/dist/libstemmer_c.tgz
sudo tar zxf libstemmer_c.tgz
sudo cp -fa libstemmer_c/* sphinx-2.1.8-release/libstemmer_c/
cd sphinx-2.1.8-release
sudo ./configure --enable-id64 --with-libstemmer
@jbenet
jbenet / simple-git-branching-model.md
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@kylelemons
kylelemons / gotour-69.go
Created October 7, 2011 01:55
My solution to Go Tour #69 - Web Crawler
package main
import (
"os"
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
import re
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone
from metaphone import dm as double_metaphone
# get the Redis connection
from jellybean.core import redis
import models
# Words which should not be indexed