- a decent DEM
- gdal
- some computer
gdaldem hillshade -compute_edges your_dem_file hillshade.tif
In another bowl, prepare the following shade.ramp file:
class CreatePostgresqlTrgmIndex | |
def self.call(model, column, concurrently: true) | |
table = model.table_name | |
column = column.sub(/.*\./, "") | |
puts sql = "CREATE INDEX #{"CONCURRENTLY" if concurrently} index_#{table}_on_#{column}_trgm ON #{table} USING gin (#{column} gin_trgm_ops)" | |
model.connection.execute sql | |
rescue ActiveRecord::StatementInvalid | |
raise $! unless $!.message =~ /PG::Duplicate/ | |
end | |
end |
# Use a 4096 bit RSA key instead of 2048 | |
rsa-key-size = 4096 | |
# update to register with the specified e-mail address | |
email = [email protected] | |
# use a text interface instead of ncurses | |
text = True | |
non-interactive = True | |
agree-tos = True |
require 'benchmark' | |
require 'logger' | |
iterations = 1000000 | |
logger = Logger.new(STDOUT) |
de: | |
devise: | |
failure: | |
invited: "Du hast bereits eine Einladung erhalten. Nimm die Einladung an um dein Nutzerkonto zu erstellen." | |
invitations: | |
send_instructions: "Eine Einladung wurde an %{email} verschickt." |
I hereby claim:
To claim this, I am signing this object:
/etc/rc.local | |
# reduce swapping to a minimum | |
echo 0 > /proc/sys/vm/swappiness | |
/etc/fstab | |
use "noatime,nodiratime,discard" mount options for SSD | |
use tmpfs for tmp and friends: | |
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 | |
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0 |
sudo dpkg --add-architecture i386 | |
sudo aptitude install libxv1:i386 libxss1:i386 libasound2:i386 libqt4-dbus:i386 libqtwebkit4:i386 libasound2-plugins:i386 libssl1.0.0:i386 | |
sudo dpkg -i skype-debian_4.2.0.11-1_i386.deb |
site :opscode | |
cookbook 'apt' |
require 'rufus/scheduler' | |
class Scheduler | |
# Starts the scheduler unless it is already running | |
def self.start_unless_running(pid_file) | |
with_lockfile(File.join(File.dirname(pid_file), 'scheduler.lock')) do | |
if File.exists?(pid_file) | |
pid = IO.read(pid_file).to_i | |
if pid > 0 && process_running?(pid) | |
puts "not starting scheduler because it already is running with pid #{pid}" |