keeping secrets out of git
git-secrets I came across this handy piece of software today, called git-secrets. It is made by awslabs and it acts as a git-hook that will stop you form doing stupid things. https://github.com/awslabs/git-secrets
git-secrets I came across this handy piece of software today, called git-secrets. It is made by awslabs and it acts as a git-hook that will stop you form doing stupid things. https://github.com/awslabs/git-secrets
finding an item in a list python can do a lot of smart things, lets use the python way of finding items in a list. #python 3 tags=[ { "Key": "CreationDate", "Value": "201904011158" }, { "Key": "Name", "Value": "mymagicserver" }, { "Key": "aws:autoscaling:groupName", "Value": "my-rad-asg" }, { "Key": "Environment", "Value": "cloudy" }, { "Key": "name", "Value": "john" }, { "Key": "Department", "Value": "sporting goods" }, { "Key": "Auto-Off", "Value": "no" } ] data = list(filter(lambda x: x["Key"] == "aws:autoscaling:groupName" , tags)) print(data[0]["Value"]) ##brute force way: def bruteforce(mylist) for item in mylist: if item["Key"] == "aws:autoscaling:groupName": return item["Value"] print(bruteforce(tags))
qmk notes there is a bunch of qmk stuff out there this is what you need for qmk and the ergodox ez keyboard… https://docs.qmk.fm/ - qmk documentation https://www.pjrc.com/teensy/loader_linux.html ***if you are programming it with the qmk toolbox make sure that your have karabiner elements turned off docker images qmk builder can be done via docker. This means that it is way easier to build than dealing with all the dependencies for building, just use docker....
#QMK animation Having a keyboard with an oled screen means that you can add things to it. This cute little bongo cat animations or other things. This lets you create all sorts of animations https://githubmemory.com/repo/AskMeAboutBirds/qmk-oled-animation-compressor
Roasting log |-+-+-| 3/16 inside costa rican sonora temp:68 start weight: 4.0 oz end weight: 3.45 oz watt/time temp - time preheat: 275 325 - 7:15 650 4min 200 - 0:30 350 - 8:50 800 4min 225 - 1:15 375 - 9:50 250 - 1:45 400 - 11:10 drop 11:10 275 - 3:30 300 - 5:00 |-+-+-|...
sql server I needed to connect to a sql db this morning and I didn’t have a client. Docker to the rescue! docker run -it mysql /bin/bash mysql -u <myuser> -p -h <myhost> <mydatabase> and done. when using the -p flag it will prompt you for the password instead of having it in the terminal. Simple easy and connected.
sudo make me a sandwich, then I’ll pwn your fridge Sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user. wikipedia-sudo Let’s say that we have a folder named /luggage/. The luggage is carrying some incredibly valuable things. Rincewind and twoflower are two users who have been traveling with this luggage for sometime. Because, rincewind doesn’t want twoflower to read the octavo, but is fine if he looks at the camera, both which are located in the in the luggage....
vim scrolling Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode. Selection and copying once in acroll mode spacebar character slect mode once in scroll mode shift+V line select mode once selected y copies to clipboard paste like normal
netcat netcat can work like a portscanner. If it is the only tool that you have you make do. this is going to scan localhost across all of the ports nc -zv 127.0.0.1 1-65535