Skip to content

Instantly share code, notes, and snippets.

View tkjaergaard's full-sized avatar

Thomas Kjærgaard tkjaergaard

View GitHub Profile
@tkjaergaard
tkjaergaard / stupid.sh
Created December 18, 2013 13:46
CLI script to create sprites for the Stupid Studio jQuery-Sprite-Anim plugin.
#!/bin/bash
montage -tile 2x5 -mode concatenate -background transparent "images/*.*" sprite%05d.png
optipng -o5 *.png
@tkjaergaard
tkjaergaard / README.md
Last active December 31, 2015 17:49
stupid

Stupid Sprite Generator CLI

Installation

  • create a file in /usr/local/bin called "stupid" and add the content for "stupid" in this gist to the file. Alternatively you could do a wget.

  • Set the file to executable by chmod +x stupid

Now, the stupid command shoud be available anywhere.

@tkjaergaard
tkjaergaard / default
Last active March 16, 2020 05:59
default-nginx-config
server {
server_name _ {{domain}};
location / {
proxy_pass http://localhost:{{port}};
}
listen 80 default_server;
listen [::]:80 default_server;
}