This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.
| <?php | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Illuminate\Support\Arr; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| // ... |
| Get-Command # Retrieves a list of all the commands available to PowerShell | |
| # (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
| Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
| Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
| Get-Help # Get all help topics | |
| Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
| Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
| Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |
| "-------------------------------------------------------------------------- | |
| " $maintainer: zachary<zachary@ohyeap.com> | |
| " $Last change: 2007 July 27 | |
| " | |
| " $for MS-DOS and Win32: $VIM\_vimrc | |
| " $for UNIX, Linux and BSD: $VIM\.vimrc | |
| " $detail: When started "gvim" or "vim" it will | |
| " already have done these settings. | |
| "-------------------------------------------------------------------------- |
| #!/usr/bin/env bash | |
| #Build and install neovim for Debian | |
| #See: https://neovim.io/ | |
| #See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
| #See: https://gist.github.com/darcyparker/153124662b05c679c417 | |
| #Save current dir | |
| pushd . > /dev/null || exit |
| <?php | |
| // $cron = "* * */4 1-3 * /bin/bash.sh > asbc.log"; | |
| $cron = "@reboot /root/sd/fas.sh"; | |
| preg_match_all( | |
| "/^\\s*($|#|\\w+\\s*=|(\\?|\\*|\*\/[0-9]+|(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?(?:,(?:[0-5]?\\d)(?:(?:-|\\/|\\,)(?:[0-5]?\\d))?)*)\\s+(\\?|\\*|\*\/[0-9]+|(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?(?:,(?:[01]?\\d|2[0-3])(?:(?:-|\\/|\\,)(?:[01]?\\d|2[0-3]))?)*)\\s+(\\?|\\*|\*\/[0-9]+|(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?(?:,(?:0?[1-9]|[12]\\d|3[01])(?:(?:-|\\/|\\,)(?:0?[1-9]|[12]\\d|3[01]))?)*)\\s+(\\?|\\*|\*\/[0-9]+|(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?(?:,(?:[1-9]|1[012])(?:(?:-|\\/|\\,)(?:[1-9]|1[012]))?(?:L|W)?)*|\\?|\\*|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?(?:,(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)*)\\s+(\\?|\\*|\*\/[0-9]+|(?:[0-6])(?:(?:-|\\/|\\,|#)(?:[0-6]))?(?:L)?(?:,(?:[0 |
| <?php | |
| /** | |
| * Insert an attachment from an URL address. | |
| * | |
| * @param String $url | |
| * @param Int $parent_post_id | |
| * @return Int Attachment ID | |
| */ | |
| function crb_insert_attachment_from_url($url, $parent_post_id = null) { |
| Location | Name | Frequency | Duplex | Offset | Tone | rToneFreq | cToneFreq | DtcsCode | DtcsPolarity | Mode | TStep | Skip | Comment | URCALL | RPT1CALL | RPT2CALL | DVCODE | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 462.125000 | 0.000000 | TSQL | 88.5 | 69.3 | 023 | NN | FM | 5.00 | S | ||||||||
| 2 | 462.225000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
| 3 | 462.325000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
| 4 | 462.425000 | 0.000000 | TSQL | 88.5 | 103.5 | 023 | NN | FM | 5.00 | S | ||||||||
| 5 | 462.525000 | 0.000000 | TSQL | 88.5 | 114.8 | 023 | NN | FM | 5.00 | S | ||||||||
| 6 | 462.625000 | 0.000000 | TSQL | 88.5 | 127.3 | 023 | NN | FM | 5.00 | S | ||||||||
| 7 | 462.725000 | 0.000000 | TSQL | 88.5 | 136.5 | 023 | NN | FM | 5.00 | S | ||||||||
| 8 | 462.825000 | 0.000000 | TSQL | 88.5 | 162.2 | 023 | NN | FM | 5.00 | S | ||||||||
| 9 | 462.925000 | 0.000000 | DTCS | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S |
| <?php | |
| //class docs: http://www.orderingdisorder.com/aws/ses/ | |
| require_once('ses.php'); | |
| //get credentials at http://aws.amazon.com My Account / Console > Security Credentials | |
| $ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY', 'eu-west-1', 'email.eu-west-1.amazonaws.com'); | |
| //print_r($ses->listVerifiedEmailAddresses()); |
| # BASIC TKINTER CHEATSHEET | |
| # Build basic GUIs with Python | |
| from tkinter import * | |
| from tkinter import scrolledtext | |
| from tkinter import messagebox | |
| from tkinter.ttk import Progressbar | |
| from tkinter import filedialog | |
| from tkinter import Menu |