This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "explorer.openEditors.visible": 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -Ss https://amsd.restv2.westeurope.media.azure.net/api/Channels -H "Authorization: Bearer $BEARER" -H "x-ms-version: 2.19" -H "Accept: application/json" | jq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~ $ openssl pkey -in key.pem -pubout -outform pem | openssl md5 | |
| (stdin)= 5bxxxxxxxxxxxxxxxxxxx5f9 | |
| ~ $ openssl x509 -in public-cert.pem -pubkey -noout -outform pem | openssl md5 | |
| (stdin)= 5bxxxxxxxxxxxxxxxxxxx5f9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # apt-get install | |
| sudo apt-get update | |
| # For ubuntu 14.04 | |
| sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty | |
| # For ubuntu 16.04 | |
| sudo apt-get install -y xserver-xorg-video-dummy-lts-willy | |
| # Copy the xorg.conf to `/etc/X11/xorg.conf`. | |
| wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "1.3", | |
| "license": "Apache", | |
| "architecture": { | |
| "32bit": { | |
| "url": "https://github.com/projectkudu/ARMClient/releases/download/v1.3/ARMClient.zip", | |
| "hash": "029e54777c863b1b27fc9caf201d0279b1b76f3ba3da882c367f6ec730539b8d" | |
| }, | |
| "64bit": { | |
| "url": "https://github.com/projectkudu/ARMClient/releases/download/v1.3/ARMClient.zip", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Call as: | |
| # $ sc google.com | |
| function sc { | |
| openssl s_client -connect $1:443 -servername $1 "${@:2}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DECLARE @Table TABLE( | |
| SPID INT, | |
| Status VARCHAR(MAX), | |
| LOGIN VARCHAR(MAX), | |
| HostName VARCHAR(MAX), | |
| BlkBy VARCHAR(MAX), | |
| DBName VARCHAR(MAX), | |
| Command VARCHAR(MAX), | |
| CPUTime INT, | |
| DiskIO INT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # See https://github.com/kubernetes/kubernetes/issues/33664 | |
| if [[ $# -eq 0 ]]; then | |
| printf 'Pass deployment name as argument.\n\n' | |
| kubectl get deployment | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ui "github.com/gizak/termui" | |
| "github.com/nats-io/go-nats" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import base64 | |
| SUBSCRIPTION_KEY = '' | |
| ISSUE_TOKEN_URL = '' | |
| def get_bearer(SUBSCRIPTION_KEY, ISSUE_TOKEN_URL): | |
| headers = { | |
| 'Ocp-Apim-Subscription-Key': SUBSCRIPTION_KEY, | |
| } |