First, we define a global prefix key:
(general-create-definer global-definer
:keymaps 'override
:states '(insert emacs normal hybrid motion visual operator)
:prefix "SPC"
:non-normal-prefix "S-SPC")
# Rquire jekyll to compile the site. | |
require "jekyll" | |
# Github pages publishing. | |
namespace :blog do | |
# | |
# Because we are using 3rd party plugins for jekyll to manage the asset pipeline | |
# and suchlike we are unable to just branch the code, we have to process the site | |
# localy before pushing it to the branch to publish. | |
# |
#!/bin/bash | |
# https://cloud.google.com/compute/docs/faq#find_ip_range | |
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
myarray=() | |
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
do | |
myarray+=($LINE) | |
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |