Skip to content

Instantly share code, notes, and snippets.


Daniel Escoz Darkhogg

Block or report user

Report or block Darkhogg

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
Darkhogg /
Created Jan 19, 2018
Set slow and dim color cycle for G203 Mouse
import usb.core
import usb.util
import binascii
VENDOR = 0x046d
PRODUCT = 0xc084
INDEX = 0x0001
REQUEST = 0x09
VALUE = 0x0210
Darkhogg / !
Last active Oct 1, 2019
"Reboot to {OS}" scripts for rEFInd Next Boot selection
View !

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.

Darkhogg / kakuro-sums.json
Last active Jun 12, 2017
List of Kakuro sums
View kakuro-sums.json
"n1_s1": [
"n2_s1": [
"n3_s1": [

Keybase proof

I hereby claim:

  • I am darkhogg on github.
  • I am darkhogg ( on keybase.
  • I have a public key whose fingerprint is 64E3 1E88 08F4 25B1 400A 33F2 9DC6 A8F0 4AAD D567

To claim this, I am signing this object:

Darkhogg / !
Last active Jan 26, 2018
Factorio Headless Server on Dokku
View !

Factorio Server on Dokku

This document and associated files describe a very simple procedure to push a Dokku application that will launch a Factorio Multiplayer Server. This are the actual files used to launch my Factorio server, so you should trust that it works.

Dokku Setup

Darkhogg /
Last active Mar 5, 2016
Generic Monitor script for Xfce that shows the normalized load average in color
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division
import multiprocessing as mp
import os
import sys
Darkhogg /
Last active Aug 29, 2015
HexChat script for Werebot

Werebot HexChat Helper

This simple Python script will make a few repetitive tasks easy when playing Werebot. What it does is:

  • Sends any Werebot commands directly to the bot, which prevents the disclosure of your role by accidentaly sending a command at the wrong time and makes it easier to use commands at night (i.e., when the channel is fully muted).
  • Automatically joins any of the official Werebot channels when the bot invites you, particularly useful for auto-joining the werewolf channel.

To install it, you will need both HexChat and Python 2.7 installed. Download and install them from When installing HexChat, be sure to select and install the Python 2.7 plugin.

Darkhogg /
Created Jan 23, 2015
A small script to update the factorio-experimental AUR package automatically without any manual intervention
function msg () {
local FMT="$1"
printf "\x1B[1;35m==> \x1B[;1m${FMT}\x1B[m\n" "$@"
function msg2 () {
local FMT="$1"
Darkhogg / raspberry-wifi-disconnect-fix.PKGBUILD
Last active Aug 29, 2015
Small package to fix WiFi disconnection problems on the Raspberry Pi
View raspberry-wifi-disconnect-fix.PKGBUILD
# Maintainer: Daniel Escoz <darkhogg+aur at gmail dot com>
package() {
install -Ddm755 "$pkgdir/etc/modprobe.d/"
echo 'options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1' >"$pkgdir/etc/modprobe.d/8192cu.conf"
You can’t perform that action at this time.