See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| Legend: 'n' - not used in stock Vim | |
| 'y' - used in stock Vim | |
| 's' - synonym for something in stock Vim | |
| 'c' - key that continues, i.e. waits for another key; if 'showcmd' is | |
| set, these are generally the cases where partial commands appear | |
| on the status bar | |
| The table assumes 'insertmode' and 'allowrevins' are not set. | |
| See also <http://vim.wikia.com/wiki/Unused_keys>. |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
| var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' + | |
| 'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' + | |
| 'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' + | |
| ': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));'; | |
| try { | |
| eval(str); | |
| } catch(e) { | |
| alert('Your browser does not support ES6!') | |
| } |
| --Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free | |
| --Windows Vista/7's Areo Snap on MacOS | |
| --By Jayden Pearse (spartanatreyu) | |
| ------------------------------------------------------------------- | |
| --Options, feel free to edit these: | |
| ------------------------------------------------------------------- | |
| --Set this to true to snap windows by dragging them to the edge of your screen | |
| enable_window_snapping_with_mouse = true |
| set itermRunning to (application "iTerm" is running) | |
| set scriptPath to quoted form of POSIX path of ((path to me as text) & "::" & "start.sh") | |
| set user_shell to do shell script "dscl /Search -read /Users/$USER UserShell | awk '{print $2}'" | |
| tell application "iTerm" | |
| activate | |
| if not (exists window 1) or (itermRunning = false) then | |
| reopen | |
| end if |
| # On slow systems, checking the cached .zcompdump file to see if it must be | |
| # regenerated adds a noticable delay to zsh startup. This little hack restricts | |
| # it to once a day. It should be pasted into your own completion file. | |
| # | |
| # The globbing is a little complicated here: | |
| # - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
| # - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
| # - '.' matches "regular files" | |
| # - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
| autoload -Uz compinit |
| # Docker aliases | |
| alias di='sudo docker images' | |
| alias dps='sudo docker ps -a' | |
| # useful Docker functions | |
| dock-run() { sudo docker run -i -t --privileged $@ ;} | |
| dock-exec() { sudo docker exec -i -t $@ /bin/bash ;} | |
| dock-log() { sudo docker logs --tail=all -f $@ ;} | |
| dock-port() { sudo docker port $@ ;} | |
| dock-vol() { sudo docker inspect --format '{{ .Volumes }}' $@ ;} |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)| in .nvimrc add | |
| " requires vim-fireplace | |
| au TermOpen * let g:last_term_job_id = b:terminal_job_id | |
| function! SendToTerm(lines) | |
| call jobsend(g:last_term_job_id, add(a:lines, '')) | |
| endfunction |