Skip to content

Instantly share code, notes, and snippets.


Cormac Brady cob16

View GitHub Profile
cob16 /
Last active Aug 27, 2015 — forked from ioangogo/
Countdown. REVISED EDITION!!!!

Countdown. REVISED EDITION!!!!

This is a fork of ruleb's count down that rended one of the else ifs unreachable in his code. Even though he was notified by menny people he never fixed his code so i took it on to... fix 1 line of code. This Fork may expand if i have the time to re-learn coffie and see if any outher code is broken.

The rest of this readme and the html code and scss is still the orginal by ruleb.


Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

View ruby bottles of beer
refrain = ' bottles of beer'
refrain1 = ' on the wall! '
bottles = 99
bottles.downto(1) do |i|
puts i.to_s + refrain + refrain1 + i.to_s + refrain
puts 'you take one down, pass it around'
puts (i-1).to_s + refrain + refrain1
cob16 /
Created Feb 16, 2017
Python Data structure for storing a packet of bits into a long with mappings
from enum import Enum
import bits_mod
would use 'pyserial' and bits_mod (or more useful rewrite)
This allows us to store the packet inside a long. perhaps the most dense data structure for this problem
class EndBit(Enum):
cob16 /
Created Feb 18, 2018
Disable drag lock / click lock linux fedora

Disable drag / click lock on linux

This can somtimes show up when you are playing games that require longclicking of both mouse buttons. (I found this when playing the heavyweapons in tf2)

Use xinput list to find your device id

Then use xinpit list-props <ID> to find the relevent property name to set.

You can then set the property to 0 to disable it ether by using the device and property name like so

cob16 / Fadora
Last active Jan 13, 2020
TF2 Linux Fadora 26 HRTF setup
View Fadora

Install openal

sudo dnf install openal-soft.i686 openal-soft.x86_64

Now we need to point steam to use these more up to date vershions of open al To find where dnf installed our files we can run: rpm -q --filesbypkg openal-soft.i686 openal-soft.x86_64 | grep$ On fadora 26 I got:

openal-soft               /usr/lib/
openal-soft               /usr/lib64/
View guide_setting_up

A guide to setting up cloudwatch agents in AWS if you do not have internet access

1. Adds the needed endpoints:

The folowing endpoints must be created inside you AWS VPC