Skip to content

Instantly share code, notes, and snippets.

brew cask install font-inconsolata-g-for-powerline
brew cask install font-open-sans
brew cask install font-fira-code
brew cask install font-fira-mono
brew cask install font-hack
brew cask install font-open-sans
brew cask install font-anonymous-pro
brew cask install font-ubuntu
brew cask install font-roboto
brew cask install font-montserrat
#!/bin/bash
#Do we have wget?
if test ! $(which wget); then
echo "Must have git installed for this to work!"
exit 0
fi
#Download the repo and cd to fonts folder
wget https://www.typewolf.com/assets/fonts/typewolf_google_fonts.zip
@mikejakobsen
mikejakobsen / hosts
Last active December 5, 2016 14:17
My AdBlock host file
# ===============================================================
# Hostfile
# ===============================================================
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
diff --git a/vim/vim.symlink/plugin/mappings/normal.vim b/vim/vim.symlink/plugin/mappings/normal.vim
index e740a84..04dd50f 100755
--- a/vim/vim.symlink/plugin/mappings/normal.vim
+++ b/vim/vim.symlink/plugin/mappings/normal.vim
@@ -121,9 +121,6 @@ map <LocalLeader>li 0i<a href="<Esc>$a"></a><Esc>hhhi
map <LocalLeader><LocalLeader> :e#<CR>
-" Pasting in normal mode should append to the right of cursor
-nmap <C-V> a<C-V><ESC>
" Usage:
"
" :rename[!] {newname}
command! -nargs=* -complete=customlist,SiblingFiles -bang Rename :call Rename("<args>", "<bang>")
cabbrev rename <c-r>=getcmdpos() == 1 && getcmdtype() == ":" ? "Rename" : "rename"<CR>
function! SiblingFiles(A, L, P)
return map(split(globpath(expand("%:h") . "/", a:A . "*"), "\n"), 'fnamemodify(v:val, ":t")')
endfunction
#!/usr/bin/env bash
# Kills the process listening on specified port, for instance if you closed a
# terminal but the webserver is still running.
# If you're running all kind of Mean Stacks things, this is great.
#
# Example use: portkill 5000
if lsof -t -i:$1 > /dev/null; then
kill -9 $(lsof -t -i:$1)
function! s:makeTable(bang, line1, line2, ...)
let ncols = 0
let rows = map(map(range(a:line1, a:line2), 'getline(v:val)'), 'split(v:val, ",")')
if len(rows) <= 1 && len(rows[0]) == 1 && rows[0][0] == ''
return
endif
let w = []
for row in rows
let ncol = len(row)
if ncol > ncols
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "DB navn: "
read -e dbname
echo "Titel:"
read -e site
echo "Sikker (y/n)"
<template>
<section class="stage stage--today" v-el:today>
<div class="stage__inner">
<div class="container">
<div class="content">
<h2 class="boxed">Today I Learned</h2>
</div>
</div>
<template>
<section class="stage stage--github" v-el:github>
<div class="stage__inner">
<div class="container">
<div class="content">
<div class="github__repos">
<h2 class="boxed">Github</h2>
<div v-for="repo in repos">
<a href="{{ repo.html_url }}">