M-\
-- Horizontal split
M-|
-- Vertical split
M-=
-- Even out splits horizontally
M-+
-- Even out splits vertically
C-h
-- Move to left split
C-j
-- Move to lower split
C-k
-- Move to upper split
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Tries to open a shell in the main docker container (e.g. it ends in 'app' or 'api') | |
# Given a param, uses that as a pattern to look for at the end of the container name. | |
# | |
# Usage: | |
# | |
# dcsh <container_pattern> | |
set -o errexit # Exit on most errors (see the manual) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<updated>2019-07-01T00:00:00Z</updated> | |
<title>Example Feed</title> | |
<link href="http://example.org/"/> | |
<author> | |
<name>John Doe</name> | |
</author> | |
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<updated>2019-08-01T00:00:00Z</updated> | |
<title>Example Feed</title> | |
<link href="http://example.org/"/> | |
<author> | |
<name>John Doe</name> | |
</author> | |
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rvm --description='Ruby enVironment Manager' | |
# run RVM and capture the resulting environment | |
set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX) | |
bash -c 'source ~/.rvm/scripts/rvm; rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv | |
# apply rvm_* and *PATH variables from the captured environment | |
and eval (grep '^rvm\|^[^=]*PATH\|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//') | |
# needed under fish >= 2.2.0 | |
and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Parses Rabobank's CSV export into a CSV format more readable by GnuCash. | |
# | |
# To import, use the following settings: | |
# | |
# Start import on row: 2 | |
# Separators: Semicolon | |
# Date format: y-m-d | |
# Currency format: Period |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Suspend | |
vsall() { | |
vagrant global-status --prune | grep running | awk '{system("vagrant suspend "$1)}' | |
} | |
# Halt | |
vhall() { | |
vagrant global-status --prune | grep running | awk '{system("vagrant halt "$1)}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'shared/some_partial.html.erb' do | |
before(:all) { layout = self.class.metadata[:description] } | |
# ... | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_SHELL_mpc_playpause</name> | |
<url type="shell"> | |
<![CDATA[ | |
MPC=/usr/local/bin/mpc | |
if $MPC status | grep -q 'playing' | |
then |
NewerOlder