One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # Basic Git Aliases | |
| git config --global alias.co checkout | |
| git config --global alias.br branch | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.lg "log --oneline --decorate --all --graph" |
| path() { | |
| local filename="$1" | |
| local search_dir="$2" | |
| if [ -z "$filename" ]; then | |
| echo "Error: Filename argument is missing." | |
| return 1 | |
| fi | |
| if [ -z "$search_dir" ]; then |
| set number | |
| syntax on | |
| colorscheme industry | |
| set tabstop=4 | |
| set autoindent | |
| set expandtab | |
| set softtabstop=4 | |
| set cursorline |
| brew install --cask 1password | |
| brew install --cask termius | |
| brew install --cask dropbox | |
| brew install --cask docker | |
| brew install --cask numi | |
| # utils | |
| brew install --cask alfred | |
| brew install --cask cleanshot | |
| brew install --cask rectangle-pro |
| #/bin/bash | |
| set -e | |
| # | |
| # Downloads latest releases (not pre-release) runner | |
| # Configures as a service | |
| # | |
| # Original: https://raw.githubusercontent.com/actions/runner/automate/scripts/create-latest-svc.sh | |
| # |
| version: "3.7" | |
| services: | |
| # todo run as non root user | |
| nginx: | |
| # using alpine for better image size | |
| # using exact version for backward compatibility | |
| # https://hub.docker.com/_/nginx | |
| image: "nginx:1.17.9-alpine" | |
| volumes: | |
| - ./docker/nginx/server.conf:/etc/nginx/conf.d/default.conf |
TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl extension and a different #! call.
The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect we use the following:
#!/usr/bin/expect
| <?php | |
| function do($msg, callable $cb, array $params = []) { | |
| $executionStartTime = microtime(true); | |
| $result = call_user_func_array($cb, $params); | |
| $executionEndTime = microtime(true); | |
| $seconds = $executionEndTime - $executionStartTime; |
| <?php | |
| namespace App\Exceptions; | |
| use Throwable; | |
| class GroupOfExceptions extends \RuntimeException | |
| { |