This is a vimdiff cheat sheet as a git mergetool.
]c - go to next difference
| [Unit] | |
| Description=Bitcoin daemon serivce | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=bitcoin | |
| ExecStart=/usr/bin/bitcoind | |
| [Install] |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'gollum/app' | |
| gollum_path = File.expand_path(File.join(File.dirname(__FILE__), 'database.git')) # CHANGE THIS TO POINT TO YOUR OWN WIKI REPO | |
| Precious::App.set(:gollum_path, gollum_path) | |
| Precious::App.set(:default_markup, :markdown) # set your favorite markup language | |
| Precious::App.set(:wiki_options, {:live_preview => false, :universal_toc => false, :user_icons => 'gravatar'}) | |
| module Precious | |
| class App < Sinatra::Base | |
| # Creates a simple authentication layer |
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| out_to_x no | |
| own_window no | |
| out_to_console yes | |
| background no | |
| max_text_width 0 | |
| # Update interval in seconds | |
| update_interval 2.0 | |
| # This is the number of times Conky will update before quitting. |
| 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 |
| # basic makefile for D language - made by darkstalker | |
| DCC = dmd | |
| DFLAGS = -w | |
| LIBS = | |
| SRC = $(wildcard *.d) | |
| OBJ = $(SRC:.d=.o) | |
| OUT = $(shell basename `pwd`) | |
| .PHONY: all debug release profile clean |
| #!/usr/bin/env bash | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02 | |
| # | |
| # _______________| noise : ambient Brown noise generator (cf. white noise). | |
| # | |
| # Usage: noise [minutes=59] [band-pass freq center=1786] [wave] | |
| # ^minutes can be any positive integer. | |
| # Command "noise 1" will display peak-level meter. | |
| # | |
| # Dependencies: play (from sox package) |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # Doesn't work | |
| <p> | |
| <% case @request.author_hosted %> | |
| <% when "yes" %> | |
| The school <b>has</b> hosted an author before. | |
| <% when "no" %> | |
| The school <b>has not</b> hosted an author before. | |
| <% end %> | |
| </p> |