Skip to content

Instantly share code, notes, and snippets.

View twome's full-sized avatar
💼
Looking for a job

Tom Kenny twome

💼
Looking for a job
View GitHub Profile
@twome
twome / userChrome.css
Last active April 23, 2023 11:08
Simplified UI stylesheet for Firefox. Mozilla's made some absolutely unfathomable decisions recently.
/*
This CSS file customises Firefox' user interface look (colloquially, the "chrome" - no relation to Google Chrome)
It needs to be named exactle 'userChrome.css' and placed in:
- Mac: ~/Library/Application Support/Firefox/Profiles/<RANDOM CHARACTERS>.default/chrome/userChrome.css
You might need to create the `chrome` directory yourself.
To debug these styles, run Firefox's "Browser Toolbox" (the devtools for the browser itself) with `Shift+Opt+Cmd+I` by default.
*/
@twome
twome / yeahnah.js
Last active August 4, 2019 14:32
Nah, yeah, yeah, nah, nah, nah, yeah, nah, nah, yeah, yeah, nah, yeah, nah, nah, yeah, nah, yeah, yeah, nah, yeah, yeah, yeah, nah, nah, yeah, yeah, nah, nah, yeah, yeah, yeah, nah, yeah, yeah, nah, nah, nah, yeah, nah, nah, yeah, yeah, nah, yeah, yeah, yeah, yeah, nah, yeah, yeah, nah, yeah, yeah, yeah, nah, nah, yeah, yeah, nah, nah, yeah, yea…
#!/usr/bin/env node
const uintToBitString = int => {
if (!(int >= 0 && int <= 127)) throw Error('ASCII only, hun.')
let bitString = ''
function f(num){
if (num == 0) return
let rem = num % 2
let div = Math.floor(num / 2)
f(div)
@twome
twome / How to remove Windows paths from WSL path.md
Last active June 27, 2022 02:32 — forked from ilbunilcho/How to remove Windows paths from WSL path.md
How to remove Windows paths from WSL `path` environment variable

[Requires WSL Build 17093 or above]

You can override WSL's settings by editing /etc/wsl.conf in the WSL filesystem. (Normally, this file doesn't exist at first.)

$ sudo vi /etc/wsl.conf

[interop]
appendWindowsPath = false
@twome
twome / Cepha's Note
Last active December 13, 2022 09:23
A Fool's Riddle - STALCRAFT
.rlv dkfhzxoq pf bkl lk viircbmlE
.bobeq rlv qbbJ
.pkxfccrO prlixjlkX cl bpxY
beq lq dkfld j'F
.klfqpxY abkfro beq jloc
oxc qlk bdxppxm akrlodobakr
qbozbp beq
kf akrlc by kxz
aoltppxm beQ
.dkfaxbo obqcx korY