As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
| #!/usr/bin/env bash | |
| NC='\033[0m' # No Color | |
| YELLOW='\033[0;33m' | |
| CYAN='\033[0;36m' | |
| GREEN='\033[0;32m' | |
| RED='\033[0;31m' | |
| MAGENTA='\033[0;35m' | |
| notify_about_actions_required() { | |
| changed_files="$(git diff-tree -r --name-status --no-commit-id $1 $2)" |
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Remove Laravel Comments | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Just made a new Laravel project, but don't want all those big | |
| | comment blocks? Put this in the root of your project and run | |
| | "php remove_laravel_comments.php" | |
| | |
| function git { | |
| for arg | |
| do | |
| if [[ $arg == -m* || $arg == -[^-]*m* ]] | |
| then | |
| annoy_me | |
| return 1 | |
| fi | |
| done | |
| command git "$@" |
| <?php | |
| use Guzzle\Http\Client; | |
| require __DIR__ . '/vendor/autoload.php'; | |
| $tmpFile = tempnam(sys_get_temp_dir(), 'guzzle-download'); | |
| $handle = fopen($tmpFile, 'w'); | |
| $client = new Client('', array( | |
| Client::CURL_OPTIONS => array( |
| @interface NSFileManager (DoNotBackup) | |
| - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL; | |
| @end |