Skip to content

Instantly share code, notes, and snippets.

View nocksock's full-sized avatar

Nils Riedemann nocksock

View GitHub Profile
@nocksock
nocksock / Gruntfile.js
Created October 31, 2013 15:09
Grunt-Template for HTML and CSS-Stuff.
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dev: {
options: {
sassDir: 'sass',
cssDir: '.',
}
@nocksock
nocksock / index.html
Created April 4, 2013 17:59
A CodePen by Nils Riedemann. RayCasting Part2 - Using the basis of my previous RayCasting implementation to create the classic 3D simulation.
<h1>Use the Cursor Keys!</h1>
<p>… after you clicked on the canvas</p>
@nocksock
nocksock / deploy.rb
Created December 7, 2011 16:06
Capistrano Drupal(6) Deployment Recipe
#
# Capistrano recipe for deploying Drupal7 using git and ssh.
#
# Part of the explanations in the comments taken from:
# http://help.github.com/deploy-with-capistrano/
#
set :default_environment, {
# This is the $PATH for the deploymant shell. using uberpsace's recent php
# and added ~/bin for drush.
@nocksock
nocksock / update.sh
Created April 20, 2012 08:55
QND Kirby Update Script
#!/usr/bin/env sh
# very quick and dirrrty updatescript
echo "Update started"
git clone https://github.com/bastianallgeier/kirbycms.git &&
rm -rf kirby &&
mv kirbycms/kirby . &&
rm -rf kirbycms
echo "Update finished"
@nocksock
nocksock / capistrano_database_yml.rb
Created March 26, 2012 13:32 — forked from weppos/capistrano_database_yml.rb
Provides a couple of tasks for creating the database.yml configuration file dynamically when deploy:setup is run.
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <weppos@weppos.net>
# Copyright:: 2007-2010 The Authors
tat() {
tmux attach -t $1;
}
_tat() {
tmux list-sessions | awk 'BEGIN { FS=":" } { print $1 }' | sed 's/[ ]/\\ /'
}
compdef _tat tat
@nocksock
nocksock / readme.mdown
Created January 26, 2012 12:52
Quick and Dirrrty Update-Script for kirby

How To?

Simply put the update.sh into the root of your kirby-project. next to kirby/, content/, site/ and other folders. Make it executable with chmod a+x update.sh and execute it with ./update.sh everytime you want to update your kirbycms to the latest version - from within the command line of course.

Requirements

Though it is obvious: you need git.

# This is an example nethackrc file. You should edit this to suit your needs
# This editor is vi-like. Type ESC a couple times, then ':q!' (without quotes)
# to exit if you get stuck. To save, hit ESC and then ZZ or type ':wq'
# (without quotes.) To insert text, hit 'i' to enter insert mode.
# Here are some examples of reasonable defaults:
OPTIONS=showexp,showscore,time,color,!autopickup
OPTIONS=autodig,fruit:slime mold,boulder:0
@nocksock
nocksock / jQuery Snow
Created December 16, 2010 14:01
Snow in under 190 chars. jQuery required.
setInterval('$("<s>❅</s>").appendTo("html").css({zIndex:999,color:"#ddf",position:"absolute",top:0,left:Math.random()*95+"%"}).animate({top:$("body").height()-20+"px"},4000)',300);

Keybase proof

I hereby claim:

  • I am noxoc on github.
  • I am noxoc (https://keybase.io/noxoc) on keybase.
  • I have a public key whose fingerprint is E2A1 DD94 5C92 594D AB86 80D7 E4DD 9AE7 CB79 0A66

To claim this, I am signing this object: