This little script will take in a raw password string, hash it, then search PwnedPasswords.com API using only the first 5 characters of the password hash.
-
- Used as the basis for all remote DEVELOPMENT servers.
- Force pushes are allowed.
-
- The current version of
releaseshould reflect what all PRODUCTION servers should be running (or updating to). - This is the branch from which all version tags are created.
- Force pushes are NEVER ALLOWED. The history is immutable. If something must change, it must be reflected in its history, and not overwritten.
- The current version of
docker run --name=name_of_container -d -it -p 3306:3306 -e "MYSQL_ROOT_PASSWORD=mypass" -e "MYSQL_ROOT_HOST=%" mysql/mysql-server:latestdocker exec -it name_of_container bashmysql --host=localhost --user=root --password=mypass myappdb
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 | |
| alias add_spacer="defaults write com.apple.dock persistent-apps -array-add '{\"tile-type\"=\"spacer-tile\";}'; killall Dock" |
First, zip up your function:
rm lambda.zip; zip -r lambda.zip lambda-function/*Then, update the current working function:
aws lambda update-function-code --zip-file fileb://lambda.zip --function-name LambdaFunctionNameA bootstrap.js script designed to prevent Sails.js from lifting, in the event the database schema does not match the model definitions.
Perfect for preventing AWS ELB from deploying an incompatible version to production (requires using immutable deployments).
This is designed using native queries (MySQL), but likely can be easily adapted for most any adapter.
See https://github.com/neonexus/sails-react-bootstrap-webpack for an example.
git ls-files --exclude-standard -- ':!:**/*.[pjs][npv]g' ':!:**/*.ai' ':!:.idea' ':!:**/*.eslintrc' ':!:package-lock.json' | xargs wc -l':!:**/*.[pjs][npv]g' excludes all png, jpg and svg files.
':!:**/*.ai' excludes .ai files.
':!:.idea' excludes the .idea (WebStorm anyone?) folder.
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
| function fromUTF8Array(data) { // array of bytes | |
| let str = '', | |
| i; | |
| for (i = 0; i < data.length; i++) { | |
| let value = data[i]; | |
| if (value < 0x80) { | |
| str += String.fromCharCode(value); | |
| } else if (value > 0xBF && value < 0xE0) { |
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
| source ~/.git-completion.sh | |
| source ~/.git-prompt.sh | |
| export GIT_PS1_SHOWDIRTYSTATE=1 | |
| export PS1='\[\033[00;00m\] \w\[\033[00;32m\]$(__git_ps1)\[\033[00m\] ⚡ ' | |
| # A quick way to find the answer: `google "cat videos"` (Mac OSX / macOS) | |
| function google() { open /Applications/Google\ Chrome.app/ "http://www.google.com/search?q=$1"; } |
NewerOlder