Skip to content

Instantly share code, notes, and snippets.

@0xallie
0xallie / 3rd_party_cookie_wl.md
Last active April 27, 2024 04:51
3rd-party cookie whitelist
@0xallie
0xallie / noscript_surrogates.md
Last active April 27, 2024 04:50
NoScript surrogates for pastebins

These are NoScript surrogates for some pastebins that require JavaScript but offer a raw version. The surrogates allow you to view pastes, but not create new pastes.

dropb.in

noscript.surrogate.dropbin.replacement = location.replace("/t" + location.pathname);
noscript.surrogate.dropbin.sources = !dropb.in
noscript.surrogate.dropbin.exceptions = ^https?://dropb\.in/(?:t/|$)
@0xallie
0xallie / archivebookmarklets.md
Created June 3, 2016 17:32
Bookmarklets to archive a page at the Internet Archive, WebCite and Archive.is

Archive bookmarklets

Internet Archive

javascript:void(open('https://web.archive.org/save/'+encodeURI(document.location)))

WebCite

supybot.plugins.GitHub.format.before.push: cif [ceq [echo $after__short] 0000000] "utilities ignore" "echo \\"[\x0310$repository__name\x03]\\" \x0307$sender__login\x03 [gh.pushinfo] [gh.numcommits] \x0309$ref__branch\x03 [format join \\" \\" [gh.fpushinfo] \\"\x0313$compare__tiny\x03\\"]"
supybot.plugins.GitHub.format.push: echo "[\x0310$repository__name\x03]" [color 07 [gh.commitauthor]] \x0314$__commit__id__short\x03 $__commit__message__firstline
supybot.plugins.GitHub.format.commit_comment: echo "[\x0310$repository__name\x03]" \x0307$comment__user__login\x03 commented on commit \x039$comment__commit_id__short\x03 \x0313$comment__html_url__tiny\x03
supybot.plugins.GitHub.format.issues: echo "[\x0310$repository__name\x03]" \x0307$sender__login\x03 $action issue [concat "\x0309#$issue__number\x03" [cif [ceq [echo $label__name] [echo $$label__name]] "echo :" "echo \\" as \x0308$label__name\x03:\\""]] $issue__title \x0313$issue__html_url__tiny\x03
supybot.plugins.GitHub.format.issue_comment: echo "[\x0310$repos
@0xallie
0xallie / limnoria-github-notifico-formats.txt
Last active April 27, 2024 04:48
Notifico-like formats for Limnoria's GitHub plugin
config plugins.GitHub.format.commit_comment "echo \"[\x0310$repository__name\x03]\" \x0307$comment__user__login\x03 commented on commit \x039$comment__commit_id__short\x03 \x0313$comment__html_url__tiny\x03"
config plugins.GitHub.format.create "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 created $ref_type \x0309$ref\x03"
config plugins.GitHub.format.delete "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 \x0304deleted\x03 $ref_type \x0309$ref\x03"
config plugins.GitHub.format.gollum "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 $__page__action wiki page \x0309$__page__title\x03 \x0313$__page__html_url__tiny\x03"
config plugins.GitHub.format.issue_comment "echo \"[\x0310$repository__name\x03]\" \x0307$sender__login\x03 [cif [ceq [echo $action] created] \"echo commented\" \"echo $action a comment\"] on issue \x0309#$issue__number\x03: $issue__title \x0313$issue__html_url__tiny\x03"
config plugins.GitHub.format.issues "echo \"[\x0310$repository__name\x03]\"
@0xallie
0xallie / titlecap-dark-theme.css
Last active April 27, 2024 04:48
Dark theme for titlecapitalization.com
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("titlecapitalization.com") {
body {
background-color: #222;
color: #fff;
}
#title:nth-child(2):before {
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACLCAYAAABP2c8gAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AwFDhUfmJ1q+gAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAOtUlEQVR42u3dfbAddX3H8fc3CSQEYSAOV5CgPEipAYlFKBAqExoUkQktUqnttECb2qmCCBYiDEXEETVBkIE2HVtAkQ5loNihYNGKFAqh1iBCokEFMUoEvIBEAgkPId/+sZvxctk99zzde8699/2auUPYc86e3+45Zz+7v/09gCRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJ0qiKXr75Njdu3h04qd92yrTgZ+vfN+XLY7D95/fjl2Lj8VMu8KchacRjZY/ff/dpwSf7cL/cCYx6gPTptgMYIJJGNMVdIEkyQCRJBogkyQCRJBkgkiQZIJIkA0SSZIBIkgwQSdLENc1doMkqM7cHzgCOLRd9E7gkIgZ7UJYZFYs3RcQmPykZIFL/hcf/AnOGLD4A+IvMnBsRT4xhWWYCK4aVBWBtZs6JiPV+YjJApP7xNxUHbIAB4GPA4jEsy2ag6kpj64n0G83MHYE3A78F7Aa8Hthy5bUReAJYA/wQ+KlXXwaIVHUg2Qm4A3hhDN5uNnBmRFwzbPmsBq+Zk5lTI+KVmvIHcBH
@ozwaldorf
ozwaldorf / entire_bee_movie_script
Created November 28, 2016 06:02
The entire bee movie script
According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Barry! Breakfast is ready! Ooming! Hang on a second. Hello? - Barry? - Adam? - Oan you believe this is happening? - I can't. I'll pick you up. Looking sharp. Use the stairs. Your father paid good money for those. Sorry. I'm excited. Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Very proud. Ma! I got a thing going here. - You got lint on your fuzz. - Ow! That's me! - Wave to us! We'll be in row 118,000. - Bye! Barry, I told you, stop flying in the house! - Hey, Adam. - Hey, Barry. - Is that fuzz gel? - A little. Special day, graduation. Never thought I'd make it. Three days grade school, three days high school. Those were awkw
@0xallie
0xallie / entire_bee_movie_script
Created May 22, 2020 19:53 — forked from ozwaldorf/entire_bee_movie_script
The entire bee movie script
According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Barry! Breakfast is ready! Ooming! Hang on a second. Hello? - Barry? - Adam? - Oan you believe this is happening? - I can't. I'll pick you up. Looking sharp. Use the stairs. Your father paid good money for those. Sorry. I'm excited. Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Very proud. Ma! I got a thing going here. - You got lint on your fuzz. - Ow! That's me! - Wave to us! We'll be in row 118,000. - Bye! Barry, I told you, stop flying in the house! - Hey, Adam. - Hey, Barry. - Is that fuzz gel? - A little. Special day, graduation. Never thought I'd make it. Three days grade school, three days high school. Those were awkw
@0xallie
0xallie / Namedays.js
Last active April 27, 2024 04:46
iOS 14 Scriptable Namedays widget
async function getCountry() {
let r = new Request('https://ipinfo.io/country')
let s = await r.loadString()
return s.trim()
}
function pad(n) {
return n.toString().padStart(2, '0')
}
@luismts
luismts / GitCommitBestPractices.md
Last active April 27, 2024 04:46
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.