Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mleyb on github.
* I am mleyb (https://keybase.io/mleyb) on keybase.
* I have a public key whose fingerprint is A157 3A16 BAB0 077E A900 B6AC 4470 8A7B 2148 BCEA
To claim this, I am signing this object:
@mleyb
mleyb / AddUserToKeyVault.ps1
Created October 15, 2016 08:38 — forked from JanneMattila/AddUserToKeyVault.ps1
Add user to Key Vault
$me = Get-AzureRmADUser -SearchString "your name"
Set-AzureRmKeyVaultAccessPolicy `
-VaultName $VaultName `
-ResourceGroupName $ResourceGroupName `
-UserPrincipalName $me.UserPrincipalName `
-PermissionsToKeys all `
-PermissionsToSecrets all
@mleyb
mleyb / install.sh
Created March 28, 2017 12:59 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@mleyb
mleyb / gist:64c7d982ec902e94b862895f0d771ae0
Created June 28, 2017 18:15
Docker Clean-up commands
For docker verison >= 1.13
If you are using docker version 1.13 and above, the following commands will do the trick.
Complete System Cleanup
To clean up, all unused containers, images, network, and volumes, use the following command.
docker system prune
Recommended: Learn Docker Technologies for DevOps and Developers8
@mleyb
mleyb / .travis.yml
Created April 12, 2018 17:45 — forked from BretFisher/.travis.yml
Travis-CI Docker Image Build and Push to AWS ECR
sudo: required #is required to use docker service in travis
language: php #can be any language, just php for example
services:
- docker # required, but travis uses older version of docker :(
install:
- echo "install nothing!" # put your normal pre-testing installs here
@mleyb
mleyb / docker-compose-stack-elasticsearch-fluentd-nginx-kibana.yml
Created June 7, 2018 07:59 — forked from donvito/docker-compose-stack-elasticsearch-fluentd-nginx-kibana.yml
Docker stack compose files I've created. Please feel free to use! Enjoy!
version: "3.3"
services:
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:5.6.1'
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elasticsearchvol:/usr/share/elasticsearch/data
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
@mleyb
mleyb / bookmark.min.js
Created January 20, 2019 18:51 — forked from zaydek-old/bookmark.min.js
A *simple* CSS debugger. To use, bookmark "Debug CSS" at https://zaydek.github.io/debug.css. Learn more here https://medium.freecodecamp.org/88529aa5a6a3 and https://youtu.be/2QdzahteCCs?t=1m25s (starts at 1:25)
/* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();
@mleyb
mleyb / cloudSettings
Last active January 22, 2019 19:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-22T19:47:53.755Z","extensionVersion":"v3.2.4"}

Keybase proof

I hereby claim:

  • I am mleyb on github.
  • I am mleyb (https://keybase.io/mleyb) on keybase.
  • I have a public key ASDC3Wh-nQjqb77Z6mHvhWaf2BhDDtw5xbRmHS3xpTMZgQo

To claim this, I am signing this object: