Skip to content

Instantly share code, notes, and snippets.

View christiaan-janssen's full-sized avatar

Christiaan Janssen christiaan-janssen

  • Zoetermeer - Holland
View GitHub Profile
@amirrajan
amirrajan / el.rb
Last active March 10, 2020 05:41
Oh god what have I done. A horrible starting point to an ELisp to DragonRuby Compiler.
class Tokenizer
attr_accessor :blocks, :current_token, :current_word, :root
def initialize
@id = 0
@root = []
@stack = [@root]
@current_word = ""
end
@downthecrop
downthecrop / dtc.openbox.conf
Last active October 23, 2023 17:46
Useful links for openbox/tint2/urxvt
Openbox
Tint2
Urxvt
lxappearance
breeze dark
for system-wide mouse configuration, one can edit /usr/share/icons/default/index.theme
tint2conf is the customizer
sudo xbps-query -Rs rxvt
@techhazard
techhazard / Readme.md
Last active January 26, 2024 16:23
NixOS: PCI Passthrough

PCI Passthrough

Warning: unfinished (but successfull!)

I did PCI passthrough on Archlinux and Debian with the old PCI-stub method (this was pre-4.0 era). And later I did PCI passthrough on the 4.1+ kernels on Arch and Ubuntu (16.10 I think?).

This is my attempt at doing the same on Nixos.

Requirements

@ikbear
ikbear / idle.sh
Last active April 18, 2021 10:00
Docker image entrypoint idle script
#!/bin/bash
echo "This is a idle script (infinite loop) to keep container running."
echo "Please replace this script."
cleanup ()
{
kill -s SIGTERM $!
exit 0
}
@Bonno
Bonno / http-status-check.sh
Created February 5, 2015 14:08
Check list of domains for their http status codes
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo " $LINE"
done < url-list.txt
@Bonno
Bonno / webserver-response-curl
Last active February 5, 2018 10:44
View webserver response headers
curl -sSL -o /dev/null -D - http://domain.com
-S, --show-error Show an error message if it fails
-L/--location If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response
code), this option will make curl redo the request on the new place.
-o, --output FILE Write output to <file> instead of stdout
-D, --dump-header FILE Write the headers to this file
curl -v -o - -D - http://domain.com
@friemen
friemen / profiles.clj
Last active August 21, 2023 07:50
My Leiningen profiles.clj
;; put this into profiles.clj in ~/.lein folder
{:user {:jvm-opts ^:replace ["-Xmx6G" "-XX:-OmitStackTraceInFastThrow"]
:repl-options {:timeout 180000}
:plugins [[cider/cider-nrepl "0.35.1"]
[refactor-nrepl "3.9.0"]
[lein-ancient "1.0.0-RC3"]
[jonase/eastwood "0.3.14"]
[lein-try "0.4.3"]
[lein-cloverage "1.0.13"]
[lein-count "1.0.9"]