Skip to content

Instantly share code, notes, and snippets.

View shahiddev's full-sized avatar

Shahid Iqbal shahiddev

View GitHub Profile
@shahiddev
shahiddev / CA_architecture_talk-MK
Last active September 8, 2018 09:09
Links to resources from Ian Coopers Clean Architecture talk at MK.NET 4th Sep 2018
Link to presentation: https://github.com/iancooper/Presentations/blob/master/Clean%20Architecture.pptx
Link to GH repo: https://github.com/iancooper/CA-Tutorial/tree/clean_architecture_start
Order of branches:
clean_architecture_start
clean_architecture_facade
clean_architecture_with_isp
clean_architecture_with_commands
clean_architecture_with_handlers
Ian's TDD talk: https://vimeo.com/68375232
@shahiddev
shahiddev / proxies.json
Created July 29, 2018 20:49
Using Function proxies to proxy to azure storage static pages and add security heads to response
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"index": {
"matchCondition": {
"route": "/",
"methods": [
"GET",
"HEAD"
]
@shahiddev
shahiddev / wsl-go-install.sh
Created May 6, 2018 21:00
Script to install Go 1.9.2 on Linux and WSL (Windows Subsystem for Linux)
#!/bin/bash
set -e
GVERSION="1.9.2"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/projects/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"
UBIQUITI NETWORKS UBI-UAP-AC-PRO 24/5Ghz 450/1300Mbps 122m (newer access point but maybe overkill https://unifi-shd.ubnt.com/)
UBIQUITI Networks UniFi Cloud Key Controller
UBIQUITI Networks Unifi Security Gateway Router
UBIQUITI US-8-60W UniFi 8 Port Switch
@shahiddev
shahiddev / Docker-switcher.ps1
Created August 27, 2017 18:40
PS script to switch between Windows and Linux containers from the command line
param (
[Parameter(Mandatory=$true)][ValidateSet("windows","linux")] [string]$targetDaemon )
$daemon = "*"+$targetDaemon.ToLower()+"*";
$dockerver = Docker version | Select -Last 2
#$dockerver = Docker version
if ($dockerver -like $daemon)
{
@shahiddev
shahiddev / gist:e82fea1c85d5e3faa710
Created March 14, 2016 13:19
JSON Camelcase properties
// Add framework services.
services.AddMvc(options =>
{
var json = options.OutputFormatters
.OfType<JsonOutputFormatter>()
.FirstOrDefault();
if (json != null)
{
json.SerializerSettings.ContractResolver =
new CamelCasePropertyNamesContractResolver();