Skip to content

Instantly share code, notes, and snippets.

View kevinrpb's full-sized avatar
💭
🤷🏽‍♂️

Kevin Romero Peces-Barba kevinrpb

💭
🤷🏽‍♂️
View GitHub Profile
@praeclarum
praeclarum / JamesSubsMatrix.ino
Created March 28, 2021 20:17
Arduino code to print James' subscriber count
// ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "secrets.h"
const char* ssid = SECRET_SSID; // SSID of local network
const char* password = SECRET_PASSWORD; // Password on network
const long UPDATE_INTERVAL_MILLIS = 10L * 60L * 1000L;
//const long UPDATE_INTERVAL_MILLIS = 1L * 1000L;
@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active September 23, 2024 14:12
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
@Firsh
Firsh / lwp-cloudflare-dyndns.sh
Last active July 2, 2024 02:55
Cloudflare as Dynamic DNS
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Update these with real values
auth_email="email@example.com"
auth_key="global_api_key_goes_here"
zone_name="example.com"