Skip to content

Instantly share code, notes, and snippets.

@zsiddiqi
zsiddiqi / spacemacs.md
Created June 16, 2016 18:21 — forked from paultopia/spacemacs.md
everything I've managed to learn so far about spacemacs (gist can't handle pandoc tables, view in raw)

so it turns out pandoc markdown + github + lots of symbols = sadness and chaos. Here's a slightly less ugly version, though still pretty uggo:* http://paul-gowder.com/emacs.html

Actually getting Spacemacs to do stuff

(Notes, mostly to self, and based on my own needs. Shared in case others need too.)

Absolute basics

Emacs but with vim keybindings.

@zsiddiqi
zsiddiqi / atom_clojure_setup.md
Created June 16, 2016 22:28 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@zsiddiqi
zsiddiqi / oracle2mysql.sed
Created July 13, 2016 20:16 — forked from jabley/oracle2mysql.sed
Help convert Oracle DDL to MySQL
s/NUMBER(22,0)/BIGINT/
s/NUMBER(9,0)/INT/
s/NUMBER(8,0)/INT/
s/NUMBER(6,0)/MEDIUMINT/
s/NUMBER(5,0)/SMALLINT/
s/NUMBER(3,0)/TINYINT/
s/NUMBER(2,0)/TINYINT/
s/NUMBER(1,0)/BIT/
s/NUMBER(16,2)/DECIMAL(16,2)/
s/NUMBER(11,2)/DECIMAL(11,2)/
@zsiddiqi
zsiddiqi / osx-for-hackers.sh
Created December 20, 2016 23:27 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@zsiddiqi
zsiddiqi / Mac-install-general.md
Created December 25, 2016 06:47
General notes while installing a new Mac

Installing Mac

What and Why

This is a step by step guide which was written by me for myself mostly, with the intent to use and update it whenever I install a new mac.

Note: Those instructions were last applied on a fresh Mountain Lion MacBook Pro.
@zsiddiqi
zsiddiqi / FHIR-LearningResources.txt
Last active April 28, 2017 18:36
FHIR Learning resources
http://hl7.org/fhir (officially released version of FHIR)
http://www.hl7.org/implement/standards/fhir/http.html (RESTful API)
http://fhirtest.uhn.ca (The public FHIR server UHN/HAPI Server)
https://github.com/davidhay25/FHIRSampleCreator (Generates samples for a FHIR server)
http://hapifhir.io/ (This is the homepage for the HAPI-FHIR library, James Agnew)
https://github.com/jamesagnew/hapi-fhir/ (HAPI FHIR - Java API for HL7 FHIR Clients and Servers)
http://www.fhir.org (FHIR Foundation)
#!/bin/bash
set -x
S3_ROOT=/Users/gbougeard/REGISTRY/data
DIR_REPOSITORIES=docker/registry/v2/repositories
DIR_TAGS=_manifests/tags
DIR_REVISIONS=_manifests/revisions
DIR_BLOBS=docker/registry/v2/blobs
#!/bin/bash
set -x
DATE=`date +%Y%m%d_%H%M%S`
OUTPUT_DIR=${DATE}
mkdir ${OUTPUT_DIR}
ROOT_PATH="/Users/gbougeard/REGISTRY/data"
@zsiddiqi
zsiddiqi / docker_for_mac_disk_default_size.md
Created December 6, 2017 05:45 — forked from stefanfoulis/docker_for_mac_disk_default_size.md
How to resize Docker for Mac Disk image and set the default size for new images

Set the default size for new Docker for Mac disk images

If you are getting the error: No space left on device

Configuring the qcow2 size cap is possible in the current versions:

# my disk is currently 64GiB
$ /Applications/Docker.app/Contents/MacOS/qemu-img info ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
image: /Users/djs/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2