Skip to content

Instantly share code, notes, and snippets.

@moladukes
moladukes / holidays.json
Created August 30, 2023 20:24
Google Calendar Country Holiday CalendarId's
{
"Afghanistan": "en.af#[email protected]",
"Albania": "en.al#[email protected]",
"Algeria": "en.dz#[email protected]",
"American Samoa": "en.as#[email protected]",
"Andorra": "en.ad#[email protected]",
"Angola": "en.ao#[email protected]",
"Anguilla": "en.ai#[email protected]",
"Antigua and Barbuda": "en.ag#[email protected]",
"Argentina": "en.ar#[email protected]",
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active March 23, 2025 15:11
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@dreness
dreness / thyme-snippets.md
Last active March 23, 2025 15:09
A bunch of Algodoo script snippets, extracted from public files

... is pretty great. If you somehow arrived here without knowing what Algodoo is, I implore you to go try it right now.

I had a hard time finding good examples of Thyme code on ye interwebs, and this document tries to remedy that. I downloaded a bunch of public compositions by the talented matto and then made a Jupyter notebook to extract interesting Thyme snippets from the project files (which are just zip archives after all). For this purpose, I define "interesting" as:

@creold
creold / textBlock.jsx
Created August 17, 2023 08:25
Converts selected point textFrames into a Block of Text. Adobe Illustrator script
//@target Illustrator
// script.name = textBlockLive.jsx;
// script.description = converts selected point textFrames into a Block of Text;
// script.required = one document with at least two selected Point Text frames;
// script.parent = carlos canto // 12/4/11; Update 03/15/205 added User Defined Units, cosmetics
// script.modification = sergey osokin // 08/12/23; keep text editable, sort texts by Y, cosmetics
// script.elegant = false;
function main() {
@NickSeagull
NickSeagull / ubuntu-bloat-removal.sh
Last active March 23, 2025 15:08
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \
@jeremyd2019
jeremyd2019 / find_fast_cwd_arm.c
Last active March 23, 2025 15:02
prototype code to find fast cwd pointer on arm64
#include <windows.h>
/* hacks on top of hacks ... */
#define _PEB _NOT__PEB
#define PEB _NOT_PEB
#define PPEB _NOT_PPEB
#define _TEB _NOT__TEB
#define TEB _NOT_TEB
#define PTEB _NOT_PTEB
#include <winternl.h>
#undef _PEB
{ÿxosPc0 serial#f050412cc7e4c7e22c7ee7d08699826b subid 0xc4
xenv cs2 ok
Power supply: OK
DRAM0 OK (9)
DRAM1 OK (8)
@nacx
nacx / inverse-cidr.py
Created October 10, 2014 08:12
Compute the inverse list of CIDR blocks
"""Use it like this: main('192.168.1.0/24')"""
IPV4_MIN = 0
IPV4_MAX = 0xFFFFFFFF
def not_network(ipv4_address, ipv4_netmask):
assert IPV4_MIN <= ipv4_address <= IPV4_MAX
assert IPV4_MIN <= ipv4_netmask <= IPV4_MAX
def hostmask_netmask(m):
@eznix86
eznix86 / alpine-remove-desktop.sh
Last active March 23, 2025 14:52
This is the inverse of setup-desktop in Alpine Linux
# copy and paste to /sbin/remove-desktop
#!/bin/sh
PREFIX=
: ${LIBDIR=$PREFIX/lib}
. "$LIBDIR/libalpine.sh"
usage() {
cat <<-__EOF__
@akdetrick
akdetrick / rvm-to-rbenv.md
Last active March 23, 2025 14:51
Guide to switching to rbenv bliss from RVM hell

RVM to rbenv

Why? @sstephenson explains it best here.


1) remove RVM from your system

This should get rid of the rvm dir and any installed rubies:

$ rvm implode