(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` | |
# or... | |
sudo killall coreaudiod |
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
[ | |
{ "keys": ["h"], "command": "enter_insert_mode", | |
"context": | |
[ | |
{"key": "setting.command_mode"}, | |
{"key": "selection_empty"} | |
] | |
}, | |
{ "keys": ["H"], "command": "enter_insert_mode", "args": | |
{"insert_command": "vi_move_to_first_non_white_space_character"}, |
"draw_indent_guides": true |
We have been going over a lot of naming conventions for our database. I would like to start recording the ideas and why they work/don't.
This applies to having an archived
state of an item. We attempted to draw a line at when a column is an action (e.g. archive
) rather than a property (e.g. is_red
). This idea means that we convert these "action" states to timestamp fields over booleans (e.g. archived_at: timestamp
).
In order to keep data consistent, we must introduce the timestamp from a single service. This means that we must introduce an alternative endpoint to performing this action (e.g. PUT /item/:id/archive
). This is fine but can lead to complications with pedantic REST frameworks.
There are a lot of options for column naming:
Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.
cherry-pick
does support a range of commits, but if you have merge commits in that range, it gets really complicated
git checkout branch-B
git cherry-pick X
git cherry-pick Y
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |