Skip to content

Instantly share code, notes, and snippets.

View GalaxySH's full-sized avatar
🌺
01100101011101000110010101110010011011100110000101101100

Stefan Hauge GalaxySH

🌺
01100101011101000110010101110010011011100110000101101100
View GitHub Profile
@GalaxySH
GalaxySH / Folder11Icons.rc
Created March 3, 2025 01:08
Resource script for Folder11 icons
// Resource script for Folder11 icons
// Auto-generated
IDI_ICON2 ICON "Folder11-Ico/ico/3d_coat.ico"
IDI_ICON3 ICON "Folder11-Ico/ico/4k_downloader.ico"
IDI_ICON4 ICON "Folder11-Ico/ico/4k_slideshow_maker.ico"
IDI_ICON5 ICON "Folder11-Ico/ico/4k_stogram.ico"
IDI_ICON6 ICON "Folder11-Ico/ico/4k_tokkit.ico"
IDI_ICON7 ICON "Folder11-Ico/ico/4k_video_downloader.ico"
IDI_ICON8 ICON "Folder11-Ico/ico/4k_video_to_mp3.ico"
@GalaxySH
GalaxySH / better_mail_filter.sieve
Created November 27, 2024 03:26
address book to dummy email whitelist sieve script
# this script was written as a workaround to protonmail only permitting a few alternate emails, even on the paid plan
# the idea is to be able to have single use/compartmentalized addresses for various purposes, e.g. social media accounts
# or sketchy sites that would probably result in being added to a mailing list
# this script depends on the catch all feature for proton being turned on, allowing all emails to any address at the domains
# registered to the account to pass through and be filtered
# THIS FILTERES INCOMING MAIL BASED ON THE **TO** ADDRESS ONLY
@GalaxySH
GalaxySH / git_snippets.sh
Last active November 27, 2024 03:34
My git secret sauce
# Use switch instead of branch to checkout a different branch, especially when it is remote
# Avoids creating a new branch that doesn't track origin, for instance
git switch
# Sync everything including remote branches from checked out repo to `neworigin`
git push neworigin --tags "refs/remotes/origin/*:refs/heads/*"
# or (untested)
git clone <repo> --mirror
git push <repo> --mirror
@GalaxySH
GalaxySH / ID.js
Created February 11, 2020 04:42
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
@GalaxySH
GalaxySH / meta-tags.md
Last active May 18, 2019 19:09 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content="your, tags">
<meta name='description' content="150 words">
<meta name='subject' content="your website's subject">
<meta name='copyright' content="company name">