This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#INPUT_FILE=/Users/abrahma/tmp/missing.properties | |
#OUTPUT_FILE=/Users/abrahma/tmp/output1.properties | |
#EXISTING_FILE=/Users/abrahma/tmp/existing.properties | |
EXISTING_FILE=/Users/abrahma/tmp/spaces.properties | |
OUTPUT_FILE=/Users/abrahma/tmp/output.properties | |
KEY="^\s*rest.extension.classes" | |
NEWVAL="io.confluent.connect.replicator.monitoring.ReplicatorMonitoringExtension" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias e="emacsclient --no-wait --socket-name=/Users/abrahma/.emacs.d/server/server" | |
# Previous errors about `-error Unknown&_command:` were fixed after upgrading emacsclient to match the Emacs version | |
# `brew cask install emacsclient` and `brew cask install emacs' worked for me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: this was on Ubuntu 18.04 | |
## We don't need no gui on the terminal | |
$ sudo apt-get install emacs25-nox | |
## All spacemacs requires is your `.emacs` preferences ... | |
$ git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d | |
## Run emacs, select the defaults, you're good to go! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to the end of ~/.zshrc: | |
source $(nix-env --query fzf --out-path | sed 's/.*bin=\(.*\);.*/\1/g' | awk '{print $1"/share/fzf/key-bindings.zsh"}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nix-haskell() { | |
pkgs=$@ | |
echo "Starting haskell shell, pkgs = $pkgs" | |
nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [$pkgs])" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn get-vars | |
[n] | |
(map #(ns-resolve n %1) (clojure.repl/dir-fn n))) | |
(defn show-doc | |
[v] | |
(vector (:name (meta v)) | |
(:doc (meta v)))) | |
(defn get-docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn info | |
"Show `type` and `class` of an object" | |
[x] | |
(println x ": type(" (type x) "), class(" (class x) ")")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Dummy where | |
-- Initial definition | |
data N : Set where | |
zero : N | |
suc : N -> N | |
-- Allow us to use shorthand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Dummy where | |
-- Initial definition | |
data N : Set where | |
zero : N | |
suc : N -> N | |
-- Allow us to use shorthand |