Beneficial because it's keeping tasks DRY and config.json can be used by another task runner, like grunt.
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
| def password_strength(password): | |
| """ | |
| Verify the strength of 'password' | |
| Returns a dict indicating the wrong criteria | |
| A password is considered strong if: | |
| 8 characters length or more | |
| 1 digit or more | |
| 1 symbol or more | |
| 1 uppercase letter or more | |
| 1 lowercase letter or more |
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 java.io.*; | |
| class Main { | |
| public static void main(String[] args) { | |
| String command = "ls"; | |
| try { | |
| Process process = Runtime.getRuntime().exec(command); | |
| BufferedReader reader = new BufferedReader( | |
| new InputStreamReader(process.getInputStream())); | |
| String line; | |
| while ((line = reader.readLine()) != null) { |
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
| conf = { | |
| "sqs-access-key": "", | |
| "sqs-secret-key": "", | |
| "sqs-queue-name": "", | |
| "sqs-region": "us-east-1", | |
| "sqs-path": "sqssend" | |
| } | |
| import boto.sqs | |
| conn = boto.sqs.connect_to_region( |
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 | |
| sudo mrt uninstall | |
| sudo mrt uninstall --system | |
| rm -rf ~/.meteorite | |
| sudo rm /usr/local/bin/meteor | |
| rm -rf ~/.meteor | |
| sudo chown -R $(whoami) ~/.npm |