Skip to content

Instantly share code, notes, and snippets.

@GuyHarwood
GuyHarwood / sql-server-cdc.md
Created December 8, 2021 14:35 — forked from NISH1001/sql-server-cdc.md
CDC (change data capture) for Microsoft SQL server

MSSQL CLI

github...

UI

https://dbeaver.io/

sqlcmd -S <ip> -d <dbname> -U <username> -P <password> -I
@GuyHarwood
GuyHarwood / linux_fun.md
Created October 10, 2017 08:22 — forked from marianposaceanu/linux_fun.md
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!
@GuyHarwood
GuyHarwood / function.json
Created September 29, 2017 15:50 — forked from tmakin/ExportPdf.cs
Create PDF Rendering service in Azure Functions
{
"bindings": [
{
"authLevel": "function",
"name": "req",
"type": "httpTrigger",
"direction": "in"
},
{
"name": "$return",
@GuyHarwood
GuyHarwood / SetStorageCorsOptions.sh
Last active February 22, 2017 16:03 — forked from stuartleeks/SetStorageCorsOptions
Command to set CORS policy for a storage account using Azure xplat CLI.
azure storage cors set -a <storageAccount> -k <accountKey> --blob --cors '[{"AllowedMethods":["GET","OPTIONS"],"AllowedOrigins":["*"],"AllowedHeaders":["Accept","Accept-Encoding","Accept-Language","Access-Control-Request-Headers","Access-Control-Request-Method","Cache-Control","Connection","Content-Type","DNT","Host","Origin","Pragma","Referer","User-Agent","x-ms-blob-content-type","x-ms-blob-type"],"ExposedHeaders":[],"MaxAgeInSeconds":60}]'
@GuyHarwood
GuyHarwood / Bash Prompt with Git and Emoji
Created February 9, 2017 10:30 — forked from jstuckey/Bash Prompt with Git and Emoji
Bash Prompt with Git and Emoji - Add to ~/.bash_profile
git_branch='`git rev-parse --abbrev-ref HEAD 2> /dev/null | sed s/^/\ \|\ /`'
emojis=(🐶 🐺 🐱 🐭 🐹 🐰 🐸 🐯 🐨 🐻 🐷 🐮 🐵 🐼 🐧 🐍 🐢 🐙 🐠 🐳 🐬 🐥)
emoji='`echo ${emojis[$RANDOM % 22]}`'
PS1="\[\033[0;36m\]\T | \W$git_branch | $emoji > \[\e[0m\]"
@GuyHarwood
GuyHarwood / 00.howto_install_phantomjs.md
Created February 8, 2017 17:24 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@GuyHarwood
GuyHarwood / IIS_Parallels_OSX.md
Last active August 25, 2016 15:06 — forked from justingarrick/IIS_Parallels_Win8_Mac.md
Expose IIS or IISExpress running in a Parallels Windows VM to your OS X host

###Expose IIS or IISExpress running in a Parallels Windows VM to your OS X host

####Rename your virtual machine In your Windows VM, go to Control Panel > System > Advanced system settings > Computer Name and click Change. Name this whatever you like, e.g. devserver. Restart your VM.

####Add an ACL rule Open CMD or Powershell as administrator. Add a URL ACL entry for your new name on the port of your choice, e.g.
netsh http add urlacl url=http://devserver:8080/ user=everyone

####Add a firewall rule

@GuyHarwood
GuyHarwood / typescript_angular.adoc
Created January 8, 2016 10:56 — forked from esfand/typescript_angular.adoc
AngularJS with TypeScript