- Create a place to hold crashes
mkdir crashreports
cd crashreports
- Build stackwalker
work=# select geoJSONToEsri('{ "type": "Polygon", | |
"coordinates": [ | |
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ] | |
] | |
}', '{ "wkid": 4326 }'); | |
geojsontoesri | |
-------------------------------------------------------------------------------- | |
-------- | |
{"rings":[[[100,0],[101,0],[101,1],[100,1],[100,0]]],"spatialReference":{"wkid" |
```ruby | |
require 'fileutils' | |
require 'securerandom' | |
2_000_000.times do |site| | |
site_name = SecureRandom.hex[0...20] | |
puts site_name | |
Dir.mkdir File.join('./', 'sites', site_name) | |
#!/usr/local/bin/python3 | |
# save to: ~/Library/Application\ Scripts/com.codeux.irc.textual/gif.py | |
# use as '/gif searchterm' | |
# prints a link to the first GIF to match the term to the current window | |
import sys | |
import random | |
search_term = sys.argv[2] |
I once saw some really opaque code; | |
while thinking this is just a big load; | |
ought to write it again; | |
to do less is a sin; | |
"choose writing over reading", I crowed | |
Heroku differs from traditional build & deploy by having the concept of "buildpacks", which are a generic method to identify, compile and package builds. The traditional method here would be to have hardcoded build commands, in a Makefile for instance. Buildpacks generally make custom build+deploy steps uneccessary, although one can specify custom buildpacks if necessary.
When notifying Heroku that a deploy is needed (usually by a Github webook), Heroku will run through all supported buildpacks until one can identify your app, which is then compiled and packaged by the buildpack. The output of this process is referred to as a "slug", which contains your app and all dependencies. For instance, a Python app would have the virtualenv packaged inside it. Heroku automatically deploys slugs that are built successfully.
This document describes a way to use LXC and existing third-party tools to reproduce this setup.
You need to have a server running that accepts webhooks and can take act