Skip to content

Instantly share code, notes, and snippets.

@al3d
al3d / 55-bytes-of-css.md
Created October 12, 2022 04:16 — forked from JoeyBurzynski/55-bytes-of-css.md
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;
}
@al3d
al3d / bitcasa.md
Last active September 8, 2015 14:27
How to download all your Bitcasa Drive files using rsync

After over a year trying to download many GBs of files from my Bitcasa drive I was losing my mind. It rarely worked, and it broke when trying to download a corrupt file (which Bitcasa had corrupted. There were many corrupt files)

Following several support requests that didn't help, I received one that helped. I'm publishing this to help others

The following is part of an email from their technical support in September 2015

To automate your download, you can use RSYNC in Terminal. Please confirm Drive has finished loading your data before starting RSYNC. It will say "All items are up to date" in the Bitcasa menu.

Here's a tutorial: http://www.dedoimedo.com/computers/rsync-guide.html

cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
sudo dpkg -i elasticsearch-0.90.0.deb
@al3d
al3d / appify
Created May 23, 2012 23:04 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@al3d
al3d / gist:2313511
Created April 5, 2012 19:42 — forked from anonymous/gist:2309745
Track Client-Side Errors with Google Analytics
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_setDomainName', 'yoursite.com']);
_gaq.push(['_addIgnoredRef', 'yoursite.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;