Skip to content

Instantly share code, notes, and snippets.

View alexforsale's full-sized avatar
👀
On the lookouts

Kristian Alexander P alexforsale

👀
On the lookouts
View GitHub Profile
@alexforsale
alexforsale / general-spacemacs.org
Created July 10, 2023 13:52 — forked from progfolio/general-spacemacs.org
Spacemacs-like menus using general.el

Spacemacs-like menus using general.el

Global keybindings

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")
@alexforsale
alexforsale / list_gcp_iprange.sh
Created February 3, 2020 09:17 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/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 :`
@alexforsale
alexforsale / Rakefile
Created December 21, 2017 09:51 — forked from SirRawlins/Rakefile
Using Jekyll plugins on GitHub Pages.
# 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.
#