Skip to content

Instantly share code, notes, and snippets.

View pfrenssen's full-sized avatar

Pieter Frenssen pfrenssen

  • Sofia, Bulgaria
View GitHub Profile
@kronn
kronn / workrave-info
Created August 29, 2018 08:43
A small tool to query workrave via DBus and implement a text-based widget for status-bars
#!/usr/bin/env /home/mviehweger/.rvm/wrappers/ruby-2.4.2/ruby
# frozen_string_literal: true
# http://trac.luon.net/data/ruby-dbus/tutorial/basic_client.html
# for ubuntu, there is d-feet
begin
require 'dbus'
rescue LoadError => e
require 'rbconfig'
@jblang
jblang / a_mind_is_born.asm
Created September 6, 2017 20:14
A Mind is Born by Linus Akesson
; A Mind is Born by Linus Akesson
; https://linusakesson.net/scene/a-mind-is-born/index.php
; transcribed to 64tass and further commented by J.B. Langston
; important locations after program is copied to zero page
vmptr = $cb ; video matrix
clock = $13 ; global clock lsb - indicates position within bar
clock_msb = $20 ; global clock msb - indicates bar of song
script = $21 ; poke table
@HactarCE
HactarCE / - Factorio - 4-lane RHD Modular Rail System.md
Last active July 26, 2024 20:22
Factorio - 4-lane RHD Modular Rail System

Factorio Modular Rail System

All blueprints are RHD (right-hand drive)

Modules are 42x42 (big electric poles overlap on neighboring modules)

Included blueprint books:

  • MRS - 2 Lane - RHD - 20 blueprints
  • MRS - 2 Lane Single - RHD - 34 blueprints
  • MRS - 4 Lane - RHD - 25 blueprints
#!/bin/sh
cat $1 | sed 's/,/@| /g' | column -s '@' -t -n
drush() {
local git_root in_git local_drush
git_root=`git rev-parse --show-cdup 2>/dev/null`
in_git=$?
if [ $in_git = 0 ]; then
local_drush=$git_root"vendor/bin/drush"
if [ -e $local_drush ]; then
command $local_drush "$@"
return "$?"
fi
@typhonius
typhonius / BehatTask.php
Last active August 29, 2015 14:18
Basic BehatTask.php class for Phing.
<?php
/**
* A Phing task to run Behat commands.
*/
require_once 'phing/Task.php';
/**
* A Behat task. Runs behavior-driven development tests against a codebase.
*