dhcp-script=/etc/detect_new_device.sh
Reference:
| "workbench.colorCustomizations": { | |
| // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
| "contrastActiveBorder": "", | |
| "contrastBorder": "", | |
| // Base Colors | |
| "focusBorder": "", | |
| "foreground": "", | |
| "widget.shadow": "", | |
| "selection.background": "", | |
| "descriptionForeground": "", |
| <?php | |
| /** | |
| * Add height field to ACF WYSIWYG | |
| */ | |
| function wysiwyg_render_field_settings( $field ) { | |
| acf_render_field_setting( $field, array( | |
| 'label' => __('Height of Editor'), | |
| 'instructions' => __('Height of Editor after Init'), | |
| 'name' => 'wysiwyg_height', | |
| 'type' => 'number', |
| ctrlPressed = false | |
| keyPressed = false | |
| layoutWatcher = hs.eventtap.new({hs.eventtap.event.types.flagsChanged, hs.eventtap.event.types.keyUp}, function(e) | |
| local flags = e:getFlags() | |
| local keyCode = e:getKeyCode() | |
| if flags.cmd and keyCode == 0x36 and not (flags.alt or flags.shift or flags.ctrl or flags.fn) then | |
| ctrlPressed = true | |
| keyPressed = false | |
| elseif ctrlPressed and not (flags.cmd or flags.alt or flags.shift or flags.ctrl or flags.fn) and not keyPressed then |
| <?php | |
| function wp_date_localised($format, $timestamp = null) { | |
| // This function behaves a bit like PHP's Date() function, but taking into account the Wordpress site's timezone | |
| // CAUTION: It will throw an exception when it receives invalid input - please catch it accordingly | |
| // From https://mediarealm.com.au/ | |
| $tz_string = get_option('timezone_string'); | |
| $tz_offset = get_option('gmt_offset', 0); | |
| @Component({ | |
| selector: 'app-root', | |
| template: ` | |
| <ng-template> | |
| <button class="tab-button" | |
| (click)="login()">{{loginText}}</button> | |
| <button class="tab-button" | |
| (click)="signUp()">{{signUpText}}</button> | |
| </ng-template> |
dhcp-script=/etc/detect_new_device.sh
Reference:
| <?php // Don't copy this line if you are inserting in a file that has it already. | |
| /** | |
| * ACF Options Page | |
| * | |
| * Instructions: | |
| * Add more languages to the array below: $languages | |
| * | |
| * @author: Zeshan Ahmed <https://zeshanahmed.com/> | |
| */ |
| <?php | |
| /** | |
| * Save Gravity Forms event registration file to media library. | |
| */ | |
| class WDSP_Event_Form { | |
| /** | |
| * Instance of class. | |
| * | |
| * @var class |
| <?php | |
| /* ————————————————————————— */ | |
| /* ACF Inline SVGs | |
| /* ————————————————————————— */ | |
| $repeater = 'repeater_field_name' | |
| if ( have_rows( $repeater ) ): ?> | |
| <section class="content-main"> | |
| <div class="container"> <?php |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020