When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| require "json" | |
| struct = { "a" => 1, "b" => 2, "c" => [1, 2, 3], "d" => [{ "e" => 3 }, nil, false, true, [], {}] } | |
| source = JSON.dump(struct) | |
| tokens = [] | |
| index = 0 | |
| until source.empty? | |
| tokens << |
There are 28 static site generators that support AsciiDoc sourcing.
These instructions has been migrated to a proper repository loa/dual-gpg-yubikey-setup.
If you follow this guide you will end up with an offline and online Yubikey. Use your online Yubikey for everyday life, signing/encryption etc. Offline key for signing keys for web-of-trust and replace lost online keys.
| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
| -- SET GLOBAL event_scheduler = ON; | |
| -- create table growth_history(tbl_name varchar(64), row_count bigint, time_stamp datetime); | |
| DELIMITER $$ | |
| CREATE | |
| EVENT `document_growth_history` | |
| ON SCHEDULE EVERY 1 DAY | |
| DO BEGIN |
If tmux fails with the message "open terminal failed: missing or unsuitable terminal: rxvt-unicode-256color".
$ ssh remotemachine mkdir -p .terminfo/r
$ scp /usr/share/terminfo/r/rxvt-unicode* remotemachine:.terminfo/r/
| #!/usr/bin/env bash | |
| # Usage: setup-git-bundler-merge-driver | |
| # Help: Configures git to use a custom merge driver to resolve Gemfile.lock | |
| # merge conflicts. | |
| if [ ! -f Gemfile ]; then | |
| echo 'No `Gemfile` found! Aborting' | |
| exit 1 | |
| fi |
| #-webkit-web-inspector #toolbar { | |
| background: #cdcdcd !important; | |
| height: 36px !important; | |
| } | |
| #-webkit-web-inspector #main { | |
| top: 36px !important; | |
| } | |
| #-webkit-web-inspector .toolbar-item.elements:hover:after { | |
| content: "elements"; | |
| z-index: 9999; |
| # app/controllers/users/password_controller.rb | |
| class Users::PasswordsController < Devise::PasswordsController | |
| def resource_params | |
| params.require(:user).permit(:email, :password, :password_confirmation) | |
| end | |
| private :resource_params | |
| end |