- copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
# Add a scheduled sync task at 4:00 am | |
# Some privileges should be granted to `cron` *manually*, so you may test `* * * * *` (run every second) first to grant the needed privileges in advance | |
0 4 * * * osascript /path/to/your/sync-from-chrome-to-safari.scpt |
tell application "Finder" | |
with timeout of 36000 seconds | |
set source_folder to choose folder with prompt "Select source folder." | |
set destination_folder to choose folder with prompt "Select folder to move imported images to" | |
my moveToPhotos(source_folder, destination_folder) | |
end timeout | |
end tell | |
on moveToPhotos(sFolder, dFolder) | |
set albumName to "2020" |
#!/bin/bash | |
# Install apps, packages, etc. | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null | |
brew tap homebrew/cask-versions | |
# brew cask install iterm2 | |
brew install --cask iterm2 |
<?php | |
/** | |
* Adds facet label as a heading before any facets with available options. | |
* | |
* @author Mike Hemberger @JiveDig. | |
* | |
* @param string $output The facet HTML. | |
* @param array $params The shortcode/function parameters. | |
* |
#!/bin/bash | |
# args: browser | |
# example: ./getOpenTabs.sh "Brave Browser" | |
# credits: | |
# https://gist.github.com/samyk/65c12468686707b388ec43710430a421 | |
# TODO: | |
# validate args | |
# don't open app if not already open |
<?php | |
/** | |
* Plugin Name: REST API - Post list randomize | |
* Description: Randomize the content list in REST API passing `orderby=rand` as parameter. | |
* Version: 1.0.0 | |
* Author: Felipe Elia | Codeable | |
* Author URI: https://codeable.io/developers/felipe-elia?ref=qGTOJ | |
*/ | |
/** |
property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format" | |
property QUARANTINE_KEY : "59" | |
property GET_QUARANTINE_COMMAND_START : "ls -l -@ '" | |
property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'" | |
on adding folder items to this_folder after receiving added_items | |
repeat with i from 1 to length of added_items | |
set current_item to item i of added_items | |
set quarantine_type to getQuarantineType(POSIX path of current_item) |
/* | |
* Set background for: | |
* - featured image :before | |
* - featured image :before | |
* - post thumbmail :before | |
* - post thumbmail :before | |
* - Submenu | |
* - Sticky Post | |
* - buttons | |
* - WP Block Button |