Skip to content

Instantly share code, notes, and snippets.

Luuk Hendriks DRiKE

Block or report user

Report or block DRiKE

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DRiKE
DRiKE / goldencheetah-3.5.1710.ebuild
Created Dec 24, 2017
GoldenCheetah Gentoo ebuild, v3.5-DEV1710
View goldencheetah-3.5.1710.ebuild
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit qmake-utils
inherit versionator
MY_PN="GoldenCheetah"
MY_PV=$(replace_version_separator 2 '-DEV')
@DRiKE
DRiKE / fastbike_avoid_unpaved_gravel.brf
Last active Jun 5, 2017
brouter fastbike avoiding unpaved/gravel at all cost
View fastbike_avoid_unpaved_gravel.brf
#
# A fastbike could be a racing bike or a speed pedelec.
# But also at night or in rainy whether you might want
# to fallback to this one.
#
# Structure is similar to trekking.brf, see this for documenation.
#
---context:global # following code refers to global config
@DRiKE
DRiKE / simplesix.c
Created Nov 5, 2015
Minimal example of extracting the IPv6 Flow Label from IPv6 packets
View simplesix.c
#include <stdio.h>
#include <pcap.h>
#include <arpa/inet.h>
#include <linux/if_ether.h>
#include <netinet/ip6.h>
#define SNAP_LEN 1500
int main(int argc, char *argv[]) {
@DRiKE
DRiKE / nginx_access_to_as.rb
Last active Oct 29, 2015
Small script to parse nginx access log file, and find out from what organisation (AS) was visiting your website
View nginx_access_to_as.rb
#!/usr/bin/env ruby
require 'teamcymru'
require 'ipaddr'
c = TeamCymru::ASNClient.new
ips = Array.new
ARGF.each do |line|
ip = IPAddr.new(line.split()[0])
@DRiKE
DRiKE / brightd.service
Created Mar 19, 2013
brightd systemd .service file
View brightd.service
[Unit]
Description=Brightd brightness daemon
Wants=display-manager.service
[Service]
Type=forking
ExecStart=/usr/sbin/brightd -d -x -w 6
Restart=on-abort
[Install]
@DRiKE
DRiKE / rails_admin.nl.yml
Created Feb 25, 2012
Dutch translation for RailsAdmin
View rails_admin.nl.yml
# Localization file for Dutch.
# Translated from the English locale by Luuk Hendriks (DRiKE on github), used the date and datetime
# from https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/nl.yml
# credits for those sections to Ariejan de Vroom and Floris Huetink
nl:
admin:
home:
name: Home
pagination:
You can’t perform that action at this time.