Skip to content

Instantly share code, notes, and snippets.

View webknjaz's full-sized avatar
🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine

🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) webknjaz

🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine
View GitHub Profile
@ereli
ereli / hello.go
Last active February 20, 2025 21:54
How to sign macOS and Windows executables using self-signed certificates on a Mac.
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@arrowtype
arrowtype / minecraft-cubes-and-towers.py
Last active March 5, 2021 15:23
Python experiments for Minecraft API (mcpi) to make ridiculous cubes & towers.
"""
Make cubes and towers in Minecraft, with Python.
Really fun way to introduce a kid to Python (or yourself to Minecraft, as I've learned).
Setup instructions for Minecraft + macOS + Python: https://gist.github.com/noahcoad/fc9d3984a5d4d61648269c0a9477c622
Additional setup:
- Activate correct Java version: `export JAVA_HOME=`/usr/libexec/java_home -v 11.0.5``
- Activate spigot `cd spigot; java -jar spigot.jar`
# /etc/udev/rules.d/80-keychron.rules
SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="/usr/bin/touch /tmp/FOUNDKEYBOARD; /bin/echo 2 | /usr/bin/tee /sys/module/hid_apple/parameters/fnmode"
@sonots
sonots / runs-on: ubuntu-latest.txt
Last active August 26, 2022 09:46
Environment Variables on Github Actions
GOROOT_1_11_X64=/usr/local/go1.11
ANDROID_HOME=/usr/local/lib/android/sdk
JAVA_HOME_11_X64=/usr/lib/jvm/zulu-11-azure-amd64
ImageVersion=20190930.2
LANG=C.UTF-8
INVOCATION_ID=029524e610de4329ac57a8f3e8b21281
JAVA_HOME_12_X64=/usr/lib/jvm/zulu-12-azure-amd64
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
RUNNER_TOOL_CACHE=/opt/hostedtoolcache
JAVA_HOME=/usr/lib/jvm/zulu-11-azure-amd64
@jezdez
jezdez / gist:6222d1ba8b10d734d003492e58041687
Last active November 6, 2019 16:36
How PyPA (Python Packaging Authority) got its name
Date: Mon, 28 Feb 2011 18:01:09 +0100
From: Jannis Leidel <[email protected]>
To: Carl Meyer <[email protected]>,
Brian Rosner <[email protected]>,
Ian Bicking <[email protected]>
Subject: (github) account naming
Hi all,
So we should probably find a name for the new home of pip and virtualenv =
/**
* This code was used as a part of PoC, done for my talk at ReactKyiv meetup:
* https://animationsslides.brutallo.now.sh/#/
*
*
* Emoji animations were inspired by this article:
* https://matthewrayfield.com/articles/animating-urls-with-javascript-and-emojis/
*/
/**
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active April 22, 2025 22:44
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@abadger
abadger / gist:bab2c5c5ed7f169c433e62389803af01
Created June 28, 2019 22:00
When are native literal strings safe?
Why do we have unadorned string literals (native strings) in our codebase?
Doesn't that put us in danger of UnicodeError exceptions?
(1) Your codebase should be using text by default. At the borders, you convert
strings from other APIs into text and then use text throughout, only
converting to bytes (or native strings) when those types are needed for
another, outside API.
(2) On Python2, text can be safely combined with (or compared to) text[1]_. Bytes
can be combined with bytes. And ascii-only bytes can be combined with text.