Skip to content

Instantly share code, notes, and snippets.

View bsingr's full-sized avatar

bsingr

  • @coliquio - former Sophos, Git Tower, Inovex, 1&1
  • Lake Constance, Germany
View GitHub Profile
@bsingr
bsingr / gist:e3ff80534e9e4f7d50ba6b240e932c80
Last active August 25, 2023 16:53 — forked from crittermike/gist:7b654d3d686a4e434eda
Run a single specific Drupal update hook using Drush
drush php-eval "module_load_install('MYMODULE'); MYMODULE_update_NUMBER();"
# or
drush php:cli
require 'core/modules/taxonomy/taxonomy.post_update.php';
taxonomy_post_update_add_unpublished_nodes_to_taxonomy_index($sandbox);
# Guide
# Configure the essential configurations below and do the following:
#
# Repository Creation:
# cap deploy:repository:create
# git add .
# git commit -am "initial commit"
# git push origin master
#
# Initial Deployment:
@bsingr
bsingr / gist:1876762
Created February 21, 2012 14:19 — forked from gcatlin/gist:1830147
Restart audio on OS X
# stolen from: http://snipt.net/nsmith/restart-audio-os-x/
sudo kill -9 `ps ax | grep 'coreaudio[a-z]' | awk '{print $1}'`
@bsingr
bsingr / pearson.go
Created January 16, 2012 14:28 — forked from jameshfisher/pearson.go
Test the Go implementation of Pearson hashing
package main
import (
"fmt"
)
/* Get an initial hash value by passing in the length of the array. */
func Init(length int) (hash byte) { return byte(length % 256) }
/* Given the hash of a string S0..SN and the character SN+1,
@bsingr
bsingr / gist:1125108
Created August 4, 2011 13:06 — forked from jejacks0n/gist:990160
Adding sprockets to evergreen for rails 3.1 and coffeescript (via /config/evergreen.rb)
# For Rails 3.1 asset packaging / sprockets support
# 1. Create a /config/evergreen.rb file and put these contents in it
# 2. Adjust the paths below (the provided ones are generic)
require ::File.expand_path('../application', __FILE__)
module Evergreen
class << self
def application_with_additions(suite)
app = application_without_additions(suite)
@bsingr
bsingr / hearts.html
Created April 24, 2011 09:44 — forked from threez/hearts.html
BouncingHearts in HTML/CSS/JS
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
* {
overflow: hidden;
font-family: "Helvetica Neue";
cursor: pointer;
text-selection: none;
}