- Used on macOS for managing agents and daemons and can be used to run scripts at specified intervals
- macOS's competitor to
cron, along with other things
- macOS's competitor to
- Runs Daemons and Agents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #### | |
| # Upload one file to configured S3 bucket | |
| # | |
| # 20240418 gbh | |
| # | |
| # Accepts the path to the file to upload as its only command-line argument. Uploads | |
| # to the S3 bucket configured in the 'Configuration' block below. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Edit and rename this file and then place it in /etc/wyzecam-to-rtmp | |
| WYZE_EMAIL="joeblow@example.com" | |
| WYZE_PASSWORD="wyzepasshere" | |
| WYZE_CAMERA_NAME="Doorbell" | |
| RTMP_URL="rtmp://127.0.0.1/live/doorbell" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*-coding:utf8;-*- | |
| import androidhelper | |
| droid = androidhelper.Android() | |
| apps = droid.getLaunchableApplications().result | |
| print(apps) | |
| running_packages = droid.getRunningPackages().result | |
| print(running_packages) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remap prefix from 'C-b' to 'C-a'. | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # Reload config file. | |
| bind-key r source-file ~/.tmux.conf\; display ' Reloaded tmux config.' | |
| # Split panes using | and -. | |
| bind-key | split-window -h -c '#{pane_current_path}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| extension UIView { | |
| var allSubviews: [UIView] { | |
| subviews + subviews.flatMap { $0.allSubviews } | |
| } | |
| func firstSubview<T: UIView>(of type: T.Type) -> T? { | |
| allSubviews.first { $0 is T } as? T |
Install Dafang Hacks on the Wyze Cam.
Once running and all is functional, continue. Set video bitrate to 1500, VBR, 30fps.
NewerOlder