Skip to content

Instantly share code, notes, and snippets.

@hiteshjasani
hiteshjasani / cljs.md
Last active March 21, 2018 14:58
Enabling a cljs command line

Creating your own cljs command

Mike Fikes mentioned that he's suggested creating a cljs command for the command line that is similar to the current clj command. It sounds like a good idea that might take some time to get momentum. In the interim, you can create your own.

Option 1

Setup

Advantage is that it doesn't pollute your deps.edn for non-javascript work.

@hiteshjasani
hiteshjasani / systemctl-cheatsheet.md
Created April 4, 2018 17:11
systemctl cheatsheet
Command Desc
systemctl status <service>
systemctl status docker
Get service status
systemctl stop <service>
systemctl stop docker
Stop service
systemctl start <service>
systemctl start docker
Start service
@hiteshjasani
hiteshjasani / backup-config.md
Last active May 27, 2018 15:18
Backup Configuration

Backup Providers

  • Mac and Windows backup applications
  • Linux supported through scripts to Backblaze B2 (Object Storage) service

Caveats

  • Expicitly disallows backing up of /usr/, so anything installed in /usr/local/ via Homebrew will NOT be backed up!
@hiteshjasani
hiteshjasani / parsing_from_json.nim
Last active April 21, 2020 13:45
Nim variants and json
import json
type
Kind = enum
kFoo, kBar
Baz = object
name: string
case kind: Kind
of kFoo: iAge: int