Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| namespace :db do | |
| require "sequel" | |
| Sequel.extension :migration | |
| DB = Sequel.connect(ENV['DATABASE_URL']) | |
| desc "Prints current schema version" | |
| task :version do | |
| version = if DB.tables.include?(:schema_info) | |
| DB[:schema_info].first[:version] | |
| end || 0 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # To do: | |
| # - Force install (regardless of installed tarsnap version) via flag | |
| # - Set version via flag | |
| # - Set TMP_DIR via flag | |
| # - Skip software insall via flag | |
| # - Check signature automatically | |
| VERSION=1.0.37 | |
| TMP_DIR=/tmp/tarsnap | |
| REMOVE_DIR=false |
| .gform_wrapper ul { | |
| padding-left: 0; | |
| list-style: none; } | |
| .gform_wrapper li { | |
| margin-bottom: 15px; } | |
| .gform_wrapper form { | |
| margin-bottom: 0; } |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
The purpose of design is to allow you to do design later, and it's primary goal is to reduce the cost of change.
| var INPUT_TYPES = 'color|date|datetime|datetime-local|file|month|number|password|range|search|tel|text|time|url|week'.split('|') | |
| var App = React.createClass({ | |
| getInitialState: function() { | |
| return {} | |
| }, | |
| onChange: handleFormInputChange, | |
| render: function() { |
| # This script work on any system using systemd as the init process. | |
| # It works on Debian/Raspbian Jessie. | |
| # If you have Debian/Rapbian Wheezy and want to use this script with systemd | |
| # follow the information here : https://wiki.debian.org/systemd | |
| # To easily download, install and set at startup: | |
| # wget -O /tmp/download https://gist.github.com/Belphemur/3f6d3bf211b0e8a18d93/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/systemd/system/ && sudo systemctl --reload-daemon && sudo systemctl enable Node-RED | |
| # To consult the log : journalctl -u Node-RED | |
| [Unit] |
| # Don't show errors which contain full path diclosure (FPD) | |
| # Use that line only if PHP is installed as a module and not per CGI | |
| # try using a php.ini in that case. | |
| # Change mod_php5.c to mod_php7.c if you are running PHP7 | |
| <IfModule mod_php5.c> | |
| php_flag display_errors Off | |
| </IfModule> | |
| # Don't list directories | |
| <IfModule mod_autoindex.c> |