Custom keybinding:
General:
SPC / : ripgrep
SPC TAB : previous buffer
SPC SPC : Open M-x
Thanks to this article by Christoph Berg
Directories and files
~/| #!/bin/bash | |
| mkdir wordpress-site && cd wordpress-site | |
| touch docker-compose.yml | |
| cat > docker-compose.yml <<EOL | |
| version: "2" | |
| services: | |
| my-wpdb: |
| #!/usr/bin/env ruby -rjcode -Ku | |
| # TaskPaper to Markdown converter | |
| # Usage: tp2md.rb filename.taskpaper > output.md | |
| require 'ftools' | |
| infile = ARGV[0] | |
| title = File.basename(infile,'.taskpaper').upcase | |
| output = "# #{title} #\n\n" | |
| prevlevel = 0 | |
| begin |
| <?php | |
| $token_endpoint = 'https://tokens.indieauth.com/token'; | |
| $base_url = 'https://media.aaronpk.com/'; | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Access-Control-Allow-Headers: Authorization'); | |
| if(isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/plain') !== false) { | |
| $format = 'text'; | |
| } else { |
| { | |
| "emojis": [ | |
| {"emoji": "π©βπ©βπ§βπ§", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "π©βπ©βπ§βπ¦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "π©βπ©βπ¦βπ¦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
| {"emoji": "π¨βπ©βπ§βπ§", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "π¨βπ©βπ§βπ¦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "π¨βπ©βπ¦βπ¦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw |
| " My current .vimrc file | |
| " Jack Baty | |
| " [email protected] | |
| " Environment | |
| set nocompatible " We don't want vi compatibility. | |
| filetype off " still needed? | |
| set shell=/bin/bash\ -i |
| <style id="jsbin-css"> | |
| main > .tab:last-of-type { | |
| order: 0; | |
| } | |
| main > article:last-of-type { | |
| display: flex; | |
| } | |
| main > article:target ~ article { | |
| display: none; | |
| } |
| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| $mysite = 'https://adactio.com/'; // Change this to your website. | |
| $token_endpoint = 'https://tokens.indieauth.com/token'; | |
| $_HEADERS = array(); | |
| foreach(getallheaders() as $name => $value) { |
| /usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' |