Skip to content

Instantly share code, notes, and snippets.

View organicaudio's full-sized avatar
💻
Working away on my plastic rectangle... Lappy 486

Scott Eh? organicaudio

💻
Working away on my plastic rectangle... Lappy 486
View GitHub Profile
@organicaudio
organicaudio / mount_remote_timemachine_sparsebundle_dest.scpt
Last active November 28, 2021 15:11
Time Machine - Mount Remote SparseBundle (AppleScript)
-- VAR:
set nameBackup to "YourHostName Backups"
set pathBackup to "/Volumes/nameBackup/"
set pathVolume to "smb://user@REMOTEHOST._smb._tcp.local/time_machine"
set pathSparseBundle to "/Volumes/time_machine/HOSTNAME.sparsebundle"
-- SCRIPT:
tell application "System Events" to set diskNames to name of every disk
if nameBackup is in diskNames then
-- backup destination not mounted; take no action
# Disable Throttling
sudo sysctl debug.lowpri_throttle_enabled=0
# Re-enable Throttling (or automatic upon reboot)
sudo sysctl debug.lowpri_throttle_enabled=1
@organicaudio
organicaudio / Bash Shell - Silence macOS Deprecation Warning
Last active November 13, 2021 09:44
If you invoke the bash shell while macOS Catalina is configured to use a different shell, you'll see a message that the default interactive shell is now zsh. To silence this warning add to /etc/profile for system-wide effect:
# System-wide .profile for sh(1)
export BASH_SILENCE_DEPRECATION_WARNING=1
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
@organicaudio
organicaudio / AppStore Application bundleIDs
Last active August 26, 2021 11:43
PURPOSE: 1Password for iOS/macOS and other password managers can auto-fill passwords using the AppStore bundleID as the domain. (Today), on create results in this information being saved if the username/password were saved thru an app. This is to help retroactively. URL syntax is app://com.agilebits.onepassword-ios
bundleName - bundleID
1Blocker - com.khanov.BlockerX
1Password - com.agilebits.onepassword-ios
2048 - com.ketchapp.2048
a-Shell - AsheKube.app.a-Shell
a-Shell mini - AsheKube.app.a-Shell-mini
A4A Radar - a4a.radarlive
AddyManager - com.khalidwar.anonaddy
AdGuard - com.adguard.AdguardExtension
Adobe Capture - com.adobe.capture.ios
#!/bin/bash
#
# Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
# Dual licensed under the MIT and GPL licenses.
#
# Automatically clone single or multiple repos into a folder,
# great for setting up a git projects folder.
#
# Install: curl https://gist.github.com/raw/902154/github.sh > /usr/local/bin/gh
# chmod +x /usr/local/bin/gh
@organicaudio
organicaudio / Philips Hue Bridge API Setup
Created August 3, 2021 20:27
covers key commands / steps to
## To get started:
https://developers.meethue.com/develop/get-started-2/
Bridge API Debugger:
`https://$HUE_BRIDGE/debug/clip.htm`
### Variables
##################################
@organicaudio
organicaudio / Edit files with EDITOR and SUDO if needed
Last active June 18, 2021 04:18
Edit et al. - system-wide use of Editor (invoking sudo when necessary)
###################################################################
# EDIT FILE WITH EDITOR AND SUDO (IF REQUIRED)
# (for use in ~/.bash_alias)
#
# INSTALL:
# - paste in your ~/.bash_aliases
# - name file 'edit' to maximize usage
# - chmod u+x edit
#
# USAGE: edit <file to edit>
@organicaudio
organicaudio / Create Gist.js
Created May 15, 2021 00:48
Scriptable Script - Create Gist
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: file-code;
// To use this script, you need to configure an OAuth App on GitHub.
// Follow the instructions on the link below to create your OAuth App.
//
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist
//
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
//
@organicaudio
organicaudio / safari-v14-experimental-features-defined.md
Last active March 20, 2023 02:07
Safari 14 Experimental Features - Functions Defined and Explained

Safari 14 Experimental Features - Functions Defined and Explained

COMPLETED CONTENT

############################################################################################

ASTC Texture Support: ASTC stands for Adaptive Scalable Texture Compression, a lossy block-based texture compression algorithm. **Async Frame Scrolling **– Make an iframe scrollable on iOS, or more smoothly.

Accessibility Object Model: The Accessibility Object Model (or called AOM), an experimental JavaScript API that allows developers to modify the browser accessibility tree, has four phases, and supports for phase one recently landed in Chrome Canary behind the flag.

@organicaudio
organicaudio / check_docker_container.sh
Created April 30, 2021 10:14 — forked from pjosalgado/check_docker_container.sh
Bash Script to Check the Status of a Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: paulo@technosoftware.com.br