Skip to content

Instantly share code, notes, and snippets.

View asymmetric's full-sized avatar
👾
:

asymmetric asymmetric

👾
:
View GitHub Profile
#!/bin/bash -e
# Your user web directory, typically "${HOME}/public_html" or "${HOME}/Sites"
PUBLIC_HTML="${HOME}/Sites"
# Subfolder of $PUBLIC_HTML where to put your shared repositories
PUBLIC_GIT="git"
# Save the shared repository with this remote name
REMOTE="public"
# The branch that will be pushed to your shared repository
BRANCH="master"
From f60eabef4dc07c04804bd841f9b350fb9960aeca Mon Sep 17 00:00:00 2001
From: asymmetric <asymmetric@autistici.org>
Date: Sat, 22 May 2010 14:48:10 +0200
Subject: [PATCH 2/2] Enable LLVM if --enable-llvm is used after --disable-llvm
The last parameter used between --disable-llvm and --enable-llvm decides
whether to enable LLVM support.
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
@asymmetric
asymmetric / https_password_field_highlighter.user.js
Created July 16, 2010 08:13
GreaseMonkey script to highlight password fields in https forms
// ==UserScript==
// @name HTTPS password field highlighter
// @namespace http://userscripts.org/scripts/show/81401
// @description Highlights https password fields in forms
// @include http://*
// @author asymmetric
// ==/UserScript==
// Based on http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Web_Forms#Identify_Password_Fields
(function() {
#!/bin/sh
# Put this in your .git/hooks/post-checkout and smoke it.
function current_branch_name {
git symbolic-ref HEAD | cut -d '/' -f 3
}
if [ $(current_branch_name) == 'master' ]; then
lines[0]="Master, Master, where's the dreams that I've been after?"
@asymmetric
asymmetric / post-commit.sh
Created September 13, 2011 10:16
Git post commit hook to change RVM gemset
#!/usr/bin/env bash
source "$HOME/.rvm/scripts/rvm"
git_rev() {
ref=$(git symbolic-ref HEAD 2>/dev/null) || return
echo ${ref#refs/heads/}
}
ref=$(git_rev)
@asymmetric
asymmetric / gist:1401472
Created November 28, 2011 18:43
speex formula fails
asymmetric :: ~ » brew install -v speex
==> Downloading http://downloads.us.xiph.org/releases/speex/speex-1.2rc1.tar.gz
File already downloaded in /Users/lrnz/Library/Caches/Homebrew
/usr/bin/tar xf /Users/lrnz/Library/Caches/Homebrew/speex-1.2rc1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/speex/1.2rc1 --disable-debug --disable-dependency-tracking
./configure --prefix=/usr/local/Cellar/speex/1.2rc1 --disable-debug --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
@asymmetric
asymmetric / gist:1401475
Created November 28, 2011 18:43
brew list --unbrewed | egrep '^(lib|include)'
include/fuse/fuse.h
include/fuse/fuse_common.h
include/fuse/fuse_common_compat.h
include/fuse/fuse_compat.h
include/fuse/fuse_darwin.h
include/fuse/fuse_lowlevel.h
include/fuse/fuse_lowlevel_compat.h
include/fuse/fuse_opt.h
include/fuse.h
include/io/386-ucontext.h
@asymmetric
asymmetric / brew-config.log
Created July 28, 2012 19:46
Error installing pkg-config with osx-gcc-installer
asymmetric :: ~ » brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: ce48b621775aa7e4a0c4d2fd890891f0c1c41322
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit core2
OS X: 10.6.8-i386
Xcode: 4.0 (guessed)
GCC-4.0: N/A
GCC-4.2: build 5666
@asymmetric
asymmetric / kaminari-issue-291
Created September 27, 2012 13:23
be gem list
actionmailer (3.2.6)
actionpack (3.2.6)
activeadmin (0.4.4)
activemodel (3.2.6)
activerecord (3.2.6)
activeresource (3.2.6)
activesupport (3.2.6)
addressable (2.3.2)
arel (3.0.2)
bcrypt-ruby (3.0.1)
@asymmetric
asymmetric / workshop.md
Created April 1, 2015 07:59
BDD Workshop

BDD Workshop

Steps

  • install ruby 1.9.3-p551
  • update rubygems with gem update --system
  • install gems bundle install --without staging:production

Activities