- a decent DEM
- gdal
- some computer
gdaldem hillshade -compute_edges your_dem_file hillshade.tif
In another bowl, prepare the following shade.ramp file:
| blueprint: | |
| name: Presence Light | |
| description: Turn on a light when presence is detected. | |
| domain: automation | |
| input: | |
| presence_entity: | |
| name: Presence Sensor | |
| description: Presence sensor device | |
| selector: | |
| entity: |
| 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' |