Skip to content

Instantly share code, notes, and snippets.

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active February 24, 2026 14:08
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@terrabruder
terrabruder / gender-identity.md
Last active January 22, 2021 18:16
A note about gender identity

Hey.

If you are reading this, you probably have some strong feelings about your gender identity. You may have questions, or you may have a strong sense of identity and just wonder what's next. You may not even know the basics about gender. All of that is okay. The process is always the same.

The end goal is also always the same: a healthy, safe, authentic life. You deserve to thrive, and nothing you have done will change that.

First things first, remember that this new experience is the real you. Your brain will struggle with that for a while. Imposter syndrome is common, dysphoria (or euphoria) may come and go, and only you can decide what your gender identity actually means to you. If you should come to desire some degree of social or medical transition, remember that transition is personal. Transition (or degree of transition) does not validate or invalidate your identity.

You may feel a great deal of conflict about the dissonance between your body and the body you desire. Be compassionate in

@idleberg
idleberg / atom-macos-context-menu.md
Last active April 27, 2022 00:37
“Open in Atom” in macOS context-menu

Open in Atom

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /usr/local/bin/atom -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Atom
@geoah
geoah / bullshit.js
Last active August 29, 2015 14:16
Bullshit-ify bookmarklet
javascript:(function(){var cssCode = document.createElement('style');cssCode.innerHTML='@font-face{font-family:SansBullshitSans;src:url(https://dl.dropboxusercontent.com/u/200262/SansBullshitSans.ttf);font-weight:normal}*{font-family:SansBullshitSans !important;font-variant-ligatures:common-ligatures;-webkit-font-feature-settings:"liga" 1, "dlig" 1;-moz-font-feature-settings:"liga" 1, "dlig" 1;-ms-font-feature-settings:"liga" 1, "dlig" 1;font-feature-settings:"liga" 1, "dlig" 1;}';document.body.appendChild(cssCode);}());
@mathisonian
mathisonian / index.md
Last active August 10, 2024 20:59
requiring npm modules in the browser console

demo gif

The final result: require() any module on npm in your browser console with browserify

This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.

Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5

inspiration

@ddz
ddz / ios_lockdown_diag_services.md
Last active May 12, 2023 15:14
iOS Lockdown Diagnostic Services

TL;DR

  • Pairing an iOS device to a host (computer running iTunes) gives that host significant access to data on the iOS device and requires connecting the unlocked iOS device to a host over USB
  • Once paired, that host (or another host that has stolen its pairing record) can access significant amounts of user personal data from the iOS device over USB and Wi-Fi through the com.apple.mobile.file_relay and com.apple.mobile.house_arrest lockdown services
  • These services will not return user data files that are encrypted and locked by iOS Data Protection but the files returned by file_relay are not protected by iOS Data Protection and do include significant amounts of personal user data that would otherwise be encrypted in iTunes encrypted backups ("Encrypt Backup" is enabled)
  • The com.apple.mobile.file_relay service is not used or referenced by any public Apple software so its intended client software is unknown outside of Apple
  • Apple released a [Knowledge Base article](https://support.apple.co
@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing
@oprypin
oprypin / lyne_cracked.py
Last active August 29, 2015 13:57
Run this to see LYNE's hidden message
# Perhaps read this first: http://steamcommunity.com/app/266010/discussions/0/558750717604246010/
from __future__ import print_function # Python 2 compatibility
from itertools import cycle
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen # Python 2 compatibility
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@philfreo
philfreo / gist:7257723
Created October 31, 2013 21:44
Facebook Perl source code from 2005. When browsing around thefacebook.com in 2005 the server spit out some server-side source code rather than running it. I believe this was for their old graph feature that let you visualize the graph between all your friends. The filename is `mygraph.svgz` and contains some gems such as a commented out "zuck" d…
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";