(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
:
[merge] | |
tool = vimdiff | |
[mergetool] | |
prompt = true | |
[mergetool "vimdiff"] | |
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' | |
[difftool] | |
prompt = false | |
[diff] | |
tool = vimdiff |
As configured in my dotfiles.
start new:
tmux
start new with session name:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
function (user, context, callback) { | |
// | |
// this rule can be used if you have chosen to use Username as the way to identify a user in Salesforce. Notice that we are mapping the email to the nameidentifier. | |
// | |
if (context.clientName === 'Salesforce') { | |
context.samlConfiguration.mappings = { | |
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier': 'email', | |
'User.Username': 'email', | |
'User.Email': 'email', | |
'User.FirstName': 'given_name', |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
var async = require('async'); | |
var request = require("request"); | |
var _ = require("underscore"); | |
module.exports = function(ctx, cb) { | |
const api_url = 'https://TENANT.auth0.com/api/v2/device-credentials'; | |
var access_token; | |
var user_id = ctx.body.user_id; | |
via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)
zf#j
creates a fold from the cursor down # lines.zf/string
creates a fold from the cursor to string .zj
moves the cursor to the next fold.zk
moves the cursor to the previous fold.zo
opens a fold at the cursor.zO
opens all folds at the cursor.zm
increases the foldlevel by one.zM
closes all open folds.