Skip to content

Instantly share code, notes, and snippets.

Zafar Siddiqi zsiddiqi

  • Canada
Block or report user

Report or block zsiddiqi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View KotlinAuthenticationServiceApplication.kt
// 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 Dec 10, 2017 — forked from joshlong/AuthServiceApplication.java
An OAuth authorization service built using Java
View AuthServiceApplication.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 Dec 6, 2017 — 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
View docker_for_mac_disk_default_size.md

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
View remove_old_mutable_tags.sh
#!/bin/bash
set -x
DATE=`date +%Y%m%d_%H%M%S`
OUTPUT_DIR=${DATE}
mkdir ${OUTPUT_DIR}
ROOT_PATH="/Users/gbougeard/REGISTRY/data"
View remove_outdated_digest.sh
#!/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 Apr 28, 2017
FHIR Learning resources
View FHIR-LearningResources.txt
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 Dec 25, 2016
General notes while installing a new Mac
View Mac-install-general.md

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.
View 1-macOS-10.12-sierra-setup.md

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 Dec 20, 2016 — 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.
View osx-for-hackers.sh
#!/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 Jul 13, 2016 — forked from jabley/oracle2mysql.sed
Help convert Oracle DDL to MySQL
View oracle2mysql.sed
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)/
You can’t perform that action at this time.