Skip to content

Instantly share code, notes, and snippets.

cormac brady cob16

View GitHub Profile
@cob16
cob16 / cmd.md
Created Feb 18, 2018
Disable drag lock / click lock linux fedora
View cmd.md

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
cob16 / Fadora HRTF.md
Last active Aug 14, 2017
TF2 Linux Fadora 26 HRTF setup
View Fadora HRTF.md

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 libopenal.so.1$ On fadora 26 I got:

openal-soft               /usr/lib/libopenal.so.1
openal-soft               /usr/lib64/libopenal.so.1
@cob16
cob16 / packetBytesAsInt.py
Created Feb 16, 2017
Python Data structure for storing a packet of bits into a long with mappings
View packetBytesAsInt.py
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):
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
end
@cob16
cob16 / README.md
Last active Aug 27, 2015 — forked from ioangogo/README.md
Countdown. REVISED EDITION!!!!
View README.md

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.

Description

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

You can’t perform that action at this time.