This file contains 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
const NodeAbac = require('node-abac'); | |
const myPolicy = { | |
"attributes": { | |
"user": { | |
"org": "Organization" | |
}, | |
"group": { | |
"id": "Group ID" | |
} |
This file contains 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
@echo off | |
docker container inspect --format "{{.NetworkSettings.Networks.bridge.IPAddress }}" %1 |
This file contains 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 -X POST 'http://localhost:8080/auth/realms/mynewrealm/protocol/openid-connect/token' \ | |
-H "Content-Type: application/x-www-form-urlencoded" \ | |
-d "username=user" \ | |
-d 'password=password'\ | |
-d 'grant_type=password'\ | |
-d 'client_id=admin-cli' |
This file contains 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
#sudo code: | |
#See: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html | |
#run this on host with new /dev/sdb EBS volume (100G) added to launch configuration, then | |
#execute these on the host machine (see above post): | |
vgextend docker /dev/sdb | |
vgs | |
lvextend -L+100G /dev/docker/docker-pool | |
docker info |
This file contains 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
# Good for Lenovo P50 as it has numberpad | |
# install auto hot key e.g. | |
# choco install autohotkey | |
# Create shortcut key file 'mediakeys.ahk': | |
^!NumpadLeft::Send {Media_Prev} | |
^!NumpadDown::Send {Media_Play_Pause} | |
^!NumpadRight::Send {Media_Next} |