Skip to content

Instantly share code, notes, and snippets.

@zsiddiqi
zsiddiqi / KotlinAuthenticationServiceApplication.kt
Created December 10, 2017 00:54 — forked from joshlong/KotlinAuthenticationServiceApplication.kt
An OAuth authorization service built using Kotlin
// org.springframework.cloud:spring-cloud-starter-oauth2
// org.springframework.boot:spring-boot-starter-data-jpa
// com.h2database:h2
// redefine: spring-security.version == 4.1.0.RELEASE
package com.example
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.SpringApplication
@zsiddiqi
zsiddiqi / AuthServiceApplication.java
Created December 10, 2017 00:54 — forked from joshlong/AuthServiceApplication.java
An OAuth authorization service built using Java
// org.springframework.cloud:spring-cloud-starter-oauth2
// org.springframework.boot:spring-boot-starter-data-jpa
// com.h2database:h2
// redefine: spring-security.version == 4.1.0.RELEASE
package com.example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@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
#!/bin/bash
set -x
DATE=`date +%Y%m%d_%H%M%S`
OUTPUT_DIR=${DATE}
mkdir ${OUTPUT_DIR}
ROOT_PATH="/Users/gbougeard/REGISTRY/data"
#!/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
@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)
@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.

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 / 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
@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)/