Skip to content

Instantly share code, notes, and snippets.

@kconner
kconner / macOS Internals.md
Last active July 7, 2024 19:42
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active July 28, 2024 18:43
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;
}
@ryanwachtl
ryanwachtl / _ss_environment.php
Last active August 31, 2016 02:23
Use server environment variables to setup your SilverStripe environment
<?php
/**
* Configure SilverStripe using apache environment variables
* Usage: Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file.
* Example Apache vhost:
* <VirtualHost *:80>
* ...
* SetEnv SS_ENVIRONMENT_TYPE dev
* SetEnv SS_DEFAULT_ADMIN_USERNAME admin
@mwhite
mwhite / expanded_history.py
Last active April 20, 2020 19:21
Bash history with bash and git aliases expanded
"""
Outputs history with bash and git aliases expanded.
"""
from __future__ import print_function
import re
from subprocess import check_output
BASH_ALIASES = {}
for line in check_output('bash -i -c "alias -p"', shell=True).split('\n'):