Skip to content

Instantly share code, notes, and snippets.

View cies's full-sized avatar

Cies Breijs cies

View GitHub Profile
@cies
cies / .spacemacs
Created September 13, 2015 12:44
My .spacemacs when trying to get a full features Haskell setup that is stack-aware
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
@cies
cies / rails-workshop-preps.md
Last active December 28, 2015 05:04
Voorbereidingen voor de MVC web application workshop HRO 2015 @ Hoppinger

In deze tekst vind je hoe je je kunt voorbereiden op de MVC web applicatie workshop die Hoppinger organiseerd op 11 januari 2016.

De alles-in-een Virtual Machine

Voor de cursus hebben we een Virtual Machine (VM) gemaakt, welke alles bevast om gelijk mee aan de slag te kunnen. Download de VM op de volgende link:

https://www.dropbox.com/s/bc2sqy9t3f6ohe4/rails-workshop-vm.ova?dl=0

@cies
cies / SETUP.md
Created December 18, 2015 14:12
VM setup for Rails workshop

Rails Workshop VM

Welcome to this VM! Your username is railsws and your password (in case you need it, like when using sudo) is railsws as well.

Good luck and enjoy!

Pre-installed software (we did this for you)

Here a list of the pre-installed software on this VM.

@cies
cies / hostname.conf
Created February 21, 2013 12:47
Upstart script to set domain and host name in case they are reset on reboots (OpenVZ VPSes sometimes have that problem).
# hostname - set system hostname
#
# This script sets the hostname in case it is not set properly.
# This may be the case with OpenVZ VPSes that the provider is not willing to
# provide you a proper hostname for. Annoying but not unfixabe.
#
# Before using this script make sure that the first stanza in /etc/hosts that
# gives names to the node's primary IP address look as follows:
#
# 123.123.123.123 fully.qualified.name.com shortname
((haskell-mode
. ((haskell-indent-spaces . 2)
(hindent-style . "gibiansky")
(haskell-process-type . stack-ghci)
(haskell-process-path-ghci . "stack")
(haskell-process-args-ghci . ("ghci"))
(haskell-process-args-stack-ghci . ("--ghc-options=-ferror-spans" "--with-ghc=ghci-ng"))))
(haskell-cabal-mode
. ((haskell-process-type . stack-ghci)
(haskell-process-path-ghci . "stack")
# copied this from the config.ru (cies on kde.nl)
begin
require 'minigems'
rescue LoadError
require 'rubygems'
end
# this takes care of the bundling:
#!/usr/bin/env ruby
# author: Cies Breijs (cies on the kde.nl domain), 2009/jan, with ruby-1.8.7
# a simple authentication script to be used with some like mod_authnz_external
# auths a login/password pair against google's pop3 service
# many organizations use google (gmail) apps lately...
# why organize authentication for people if they can just use their
# google account credentials?
require "nokogiri"