Checked on RPi 1 Model B
which cloudflared
ls -l $(which cloudflared) #(keep result)| Command | Description | Example |
|---|---|---|
parallel echo ::: A B C |
🔤 Process items in parallel | Output: A, B, C (in any order) |
parallel echo {} ::: *.txt |
🔍 Use {} as placeholder | Echoes names of all .txt files |
cat file.txt | parallel echo |
📥 Read input from stdin | Processes each line of file.txt |
parallel -j4 command ::: item1 item2 item3 |
🔢 Limit to 4 jobs at a time | Runs 'command' on items, max 4 parallel |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
| Description | Syntax |
|---|---|
| Get the length of a string | ${#VARNAME} |
| Get a single character | ${VARNAME[index]} |
| # | |
| # Quicksilver configuration file | |
| # | |
| # Requirements: | |
| # - Terminus Quicksilver plugin: https://github.com/pantheon-systems/terminus-quicksilver-plugin) | |
| # | |
| # Copy to $HOME/.quicksilver/quicksilver.yml | |
| # | |
| # To create your own repository with installable examples: | |
| # |
| <?php | |
| add_filter( 'comments_open', '__return_false' ); | |
| add_action( 'admin_menu', function(){ | |
| global $menu; | |
| // Remove Comments | |
| if ( isset( $menu[25] ) ) { | |
| unset( $menu[25] ); | |
| } |
| <?php | |
| add_action( 'admin_bar_menu', function( $wp_admin_bar ) { | |
| $screen = get_current_screen(); | |
| if ( is_a( $screen, 'WP_Screen' ) ) { | |
| $wp_admin_bar->add_node( [ | |
| 'id' => 'screen_id', | |
| 'title' => sprintf( __( 'Screen ID: <kbd style="font-family: monospace; font-weight: 900;">%s</kbd>' ), esc_html( $screen->id ) ), | |
| ] ); |
| <?php | |
| namespace DeliciousBrains\Admin; | |
| use DeliciousBrains\DBI; | |
| class ACF { | |
| public function init() { | |
| add_filter( 'acf/settings/save_json', array( $this, 'get_local_json_path' ) ); |
| #!/usr/bin/env bash | |
| PRIMARY_LOCATION=~/Development | |
| SECONDARY_LOCATION=/Volumes/Macintosh\ HD/Development | |
| BROWSER= | |
| CLOPS= | |
| VERBOSE=true | |
| SHOWHELP=false | |
| SCHEME=http: |
| <?php | |
| /** | |
| * Update a specific site from 'http://' to 'https://'. | |
| * | |
| * Only touches the 'home' and 'siteurl' options. | |
| * Depending on plugins, etc., you may need to update other options too. | |
| * | |
| * Run on WordPress multisite with: | |
| * | |
| * wp site list --field=url | xargs -I % wp eval-file http-to-https.php --url=% |