Skip to content

Instantly share code, notes, and snippets.

View cies's full-sized avatar

Cies Breijs cies

View GitHub Profile
#!/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?
# copied this from the config.ru (cies on kde.nl)
begin
require 'minigems'
rescue LoadError
require 'rubygems'
end
# this takes care of the bundling:
@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
require "nokogiri"
@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 '()
((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")
@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 / belasting_app_op_ubuntu.md
Created June 14, 2018 10:41
Het installeren van de Belastingdienst applicatie(s) op een recente (2018) Ubuntu versie

Deze gist om mijn ervaring/oplossing te delen met het installeren van de Belastingdienst applicatie la2018ux op een recente Ubuntu. Wellicht dat dit ook werkt op Debian, geen idee.

Allereerst: samen on de Belastingdienst dat ze die app(s) alleen in 32-bit leveren, terwijl 64-bit al 10 jaar meer gangbaar is dan 32-bit. Ik raad iedereen aan om hier over te klagen (vraag of ze er een aantekening van maken en het doorgeven), dan gaan ze wellicht ooit voor ons marginaal kleine clubje zorgen! Maar ik verwacht dat ze een web app eerder afhebben, dan een 64-bit build.

Ik heb de .deb gedownload. Er stond iets verkeerd ingesteld waardoor mijn browser de inhoud van de .deb probeerde weer te geven. Ik heb de link gekopieerd en met wget dat ding gedownload.

Toen eerste poging:

sudo dpkg -i la2018_1.10_i386.deb
/* On Linux this file should be in:
~/.mozilla/firefox/$USER_ID.default/chrome/userChrome.css
To be used with the awesome Tree Style Tabs addon.
*/
/* Hide horizontal tabs at the top of the window */
@-moz-document url("chrome://browser/content/browser.xul") {
#TabsToolbar {
visibility: collapse !important;