Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The script that was in this Gist is now located here: | |
https://github.com/adambrenecki/Dotfiles/blob/master/bash/csem_local.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \$*" |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
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.