Skip to content

Instantly share code, notes, and snippets.

View daisylb's full-sized avatar
🏝️
on my day off

Daisy Leigh Brenecki daisylb

🏝️
on my day off
View GitHub Profile
@daisylb
daisylb / rework-transcript.md
Created April 28, 2021 01:08
A transcript of today's Rework podcast, in full.

Original audio here.

SHAUN HILDNER: Welcome to Rework, a… podcast by Basecamp about the b— I can’t say this. [sighs]

WAILIN WONG: Well, it’s about… a way to work… and run your business—

SHAUN HILDNER: It’s about a way to work. And run your business. Um…

SHAUN HILDNER: This is going to be just a short update. We will not have an episode this week, and… not sure about episodes going forward.

@daisylb
daisylb / discord_inviter.py
Created November 18, 2020 00:05
Discord backstage invite webapp for PyConline AU 2020
from flask import Flask, redirect
import requests
from hmac import compare_digest as constant_time_compare
from walter.config import Config
import waitress
app = Flask(__name__)
with Config("PyCon AU", "Discord inviter") as config:
@daisylb
daisylb / install-nix.sh
Created February 19, 2020 06:13
Installing Nix on macOS Catalina
echo nix | sudo tee -a /etc/synthetic.conf
# Restart the machine (no, there doesn't appear to be a way around this)
sudo diskutil apfs addVolume disk1 APFSX Nix -mountpoint /nix
sudo diskutil enableOwnership /nix
curl https://nixos.org/nix/install | sh
VALID_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
def cipher_string(token, pad, decipher=False):
result = []
for token_char, pad_char in zip(token, pad):
token_index = VALID_CHARS.index(token_char)
pad_index = VALID_CHARS.index(pad_char)
if decipher:
result_index = (token_index - pad_index) % len(VALID_CHARS)
else:
'.vim-mode.visual-mode:not(.mini)':
't': 'vim-mode:move-down'
'n': 'vim-mode:move-up'
's': 'vim-mode:select-right'
'.vim-mode.command-mode:not(.mini)':
't': 'vim-mode:move-down'
'n': 'vim-mode:move-up'
's': 'vim-mode:move-right'
', f': 'fuzzy-finder:toggle-file-finder'

Keybase proof

I hereby claim:

  • I am adambrenecki on github.
  • I am adambrenecki (https://keybase.io/adambrenecki) on keybase.
  • I have a public key whose fingerprint is E04E 2B7F 31CE 2EE8 8B2B BA51 4338 7D9A 2724 C7AB

To claim this, I am signing this object:

Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓

@daisylb
daisylb / install-eclipse.sh
Created July 8, 2011 03:03
Installing the Latest Eclipse in Ubuntu
#!/bin/bash
# If you're reading this on the GitHub gist, scroll down for instructions.
# If not, go to https://gist.github.com/1071034
icon_url="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/05/maceclipse4.zip"
eclipse_bin="#!/bin/sh
export ECLIPSE_HOME='/opt/eclipse'
\$ECLIPSE_HOME/eclipse \$*"
@daisylb
daisylb / .bash_profile
Created March 16, 2011 10:40
Flinders CSEM .bash_profile: Add these lines to your .bash_profile or .bashrc to make connecting to CSEM SSH or (up/down)loading files quicker.
The script that was in this Gist is now located here:
https://github.com/adambrenecki/Dotfiles/blob/master/bash/csem_local.sh