Skip to content

Instantly share code, notes, and snippets.

@micrub
micrub / vim-8-plug-init.zsh
Last active November 7, 2022 04:53
vim 8 plugin set inititialization
#!/bin/zsh
# Since Feb 22, VIM 8, has a plugin managment feature.
# :h packages
# https://raw.githubusercontent.com/vim/vim/master/runtime/doc/version8.txt
take .vim/pack/micrub/start
git clone http://github.com/elzr/vim-json
git clone http://github.com/WolfgangMehner/bash-support
git clone http://github.com/farmergreg/vim-lastplace
@micrub
micrub / css-diner.txt
Last active December 25, 2021 16:43 — forked from chrisman/css-diner.txt
solutions for css diner
# https://flukeout.github.io/ #
01. plate
02. bento
03. #fancy
04. plate apple
05. #fancy pickle
06. .small
07. orange.small
08. bento orange.small
1 acorn: A Leiningen template for a ClojureScript setup with Figwheel, Austin, Om.
8 amp: Leiningen template for AMP (Alfresco Module Package) projects.
1 angular-cl2: A Leiningen template for using AngularJS and ChlorineJS
1 angular: Clojure and AngularJS in perfect harmony.
6 angular: Clojure and AngularJS in perfect harmony. $ lein new angular <name>
2 angularjs-app: Leiningen template for web application with http-kit and angularjs
5 angular-simple: Clojure and AngularJS $ lein new angular-simple <name>
1 aperiodic-cljs: My cljs development starting point. Basically ripped from lein-cljsbuild.
1 apijr: clojurescript project template
1 appfgo: 'lein new' template for Funcgo application
@micrub
micrub / all-lein-templates.txt
Created December 15, 2021 10:48 — forked from anonymous/all-lein-templates.txt
for i in {1..28} ; do lein search lein-template $i ; done | grep '^\[' | perl -pe 's,^\[,,; s,/.*?],:,' | sort | uniq -c | tee all-lein-templates.txt
1 acorn: A Leiningen template for a ClojureScript setup with Figwheel, Austin, Om.
8 amp: Leiningen template for AMP (Alfresco Module Package) projects.
1 angular-cl2: A Leiningen template for using AngularJS and ChlorineJS
1 angular: Clojure and AngularJS in perfect harmony.
6 angular: Clojure and AngularJS in perfect harmony. $ lein new angular <name>
2 angularjs-app: Leiningen template for web application with http-kit and angularjs
5 angular-simple: Clojure and AngularJS $ lein new angular-simple <name>
1 aperiodic-cljs: My cljs development starting point. Basically ripped from lein-cljsbuild.
1 apijr: clojurescript project template
1 appfgo: 'lein new' template for Funcgo application
@micrub
micrub / bash-tpl.sh
Created December 4, 2021 13:10
bash safe tempale file
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat << EOF # remove the space between << and EOF, this is due to web plugin issue
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@micrub
micrub / conway-s-game-of-life-javascript.markdown
Created November 2, 2021 22:10
Conway's Game of Life - JavaScript
@micrub
micrub / macos-aliases-listening.md
Last active October 6, 2021 01:34
open ports on macos cli alias

base

stole from how-can-i-list-my-open-network-ports-with-netstat

netstat -Watnlv | grep LISTEN | awk '{"ps -o comm= -p " $9 | getline procname;colred="\033[01;31m";colclr="\033[0m"; print colred "proto: " colclr $1 colred " | addr.port: " colclr $4 colred " | pid: " colclr $9 colred " | name: " colclr procname;  }' | column -t -s "|"

quote wrapped for usage as an alias in zsh

@micrub
micrub / get-non-tagged.sh
Last active April 20, 2020 14:40
docker cmd: get ids list of redundant (probably) images that have been tagged as '<none>
#!/bin/sh
docker image ls | grep 'none' | cut -c 48- | cut -c -12
@micrub
micrub / .vimrc
Created April 17, 2020 19:19
.vimrc
" @version 0.0.1
" Set spell check to US English for now.
"set spell spelllang=en_us
set nospell
hi clear SpellBad
hi SpellBad cterm=underline,bold ctermfg=white ctermbg=red
set autoread