Skip to content

Instantly share code, notes, and snippets.

View jaredumbehr's full-sized avatar

Jared Umbehr jaredumbehr

  • Kiln, MS
  • 20:03 (UTC -05:00)
View GitHub Profile
Code Desc Details
10001 Account is not active https://www.twilio.com/docs/api/errors/10001
10002 Trial account does not support this feature https://www.twilio.com/docs/api/errors/10002
10003 Incoming call rejected due to inactive account https://www.twilio.com/docs/api/errors/10003
11100 Invalid URL format https://www.twilio.com/docs/api/errors/11100
11200 HTTP retrieval failure https://www.twilio.com/docs/api/errors/11200
11205 HTTP connection failure https://www.twilio.com/docs/api/errors/11205
11206 HTTP protocol violation https://www.twilio.com/docs/api/errors/11206
11210 HTTP bad host name https://www.twilio.com/docs/api/errors/11210
11215 HTTP too many redirects https://www.twilio.com/docs/api/errors/11215
@jaredumbehr
jaredumbehr / macOS_SytemPrefs.md
Created November 29, 2023 13:31 — forked from rmcdongit/macOS_SytemPrefs.md
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
@jaredumbehr
jaredumbehr / iOS_16_Launch_Constraints.txt
Created October 11, 2023 19:04 — forked from LinusHenze/iOS_16_Launch_Constraints.txt
Description of the Launch Constraints introduced in iOS 16
iOS 16 introduced launch constraints, which can be used to constraint the launch of an application.
There are three types of constraints:
Self Constraints, which the launched application itself must meet
Parent Constraints, which the parent process must meet
Responsible Constraints, which the "responsible process" must meet (I assume that the responsible process is the process that asked launchd to launch a service)
Additionally, the TrustCache format was updated (see below) to support assigning each binary a "Constraint Category", which forces Self and Parent Constraints.
Note that Self, Parent and Responsible Constraints can also be set by the process performing the launch and they can be included in the code signature, in the new blob type 0xFADE8181. In both cases, the constraints are DER encoded (just like the DER entitlements).
Constraint Categories (from TrustCache, new in version 2):
@jaredumbehr
jaredumbehr / osx_cli_tools_installer.sh
Created October 10, 2022 21:28 — forked from jjtroberts/osx_cli_tools_installer.sh
Tests MacOS for xcode and installs devops tools.
#!/usr/bin/env bash
# Install all the things (except Microsoft Remote Desktop)
function install {
xcode-select --install
if ! type "brew" > /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
@jaredumbehr
jaredumbehr / generate-fairplay.sh
Created October 7, 2022 06:14 — forked from jordicenzano/generate-fairplay.sh
Bash script that generates an HLS chunklist with Fairplay DRM from MP4. Also providing a test chunklist bypassing DRM
#Generate fairplay file with random generated Key, IV.
#And generate also a trobleshooting chunklist bypassing fairplay server and providing the plain key for testing
#Source data
SOURCE="/Users/jcenzano/Movies/test10m_baseline_30_320x240_a25fpsB.mp4"
#Dest data
DEST="/Users/jcenzano/Movies/hls-encrypted/result-fairplay"
KEYS_DIR="keys"
KEY_IV_FILENAME="key-iv.bin"
@jaredumbehr
jaredumbehr / Ensemble.plist
Created January 30, 2022 16:02 — forked from zhuowei/Ensemble.plist
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
@jaredumbehr
jaredumbehr / prefixes.md
Created October 8, 2021 23:54 — forked from nikolay-n/prefixes.md
macOS Namespacing
Prefix Framework
AB AddressBook / AddressBookUI
AC Accounts
AD iAd
AK AuthKit
AL AssetsLibrary
AM Automator
AU AudioUnit
AV AVFoundation
@jaredumbehr
jaredumbehr / scroll-refresh.sh
Created September 28, 2021 02:18 — forked from ozzbetto/scroll-refresh.sh
Mouse scroll does no work in linux after suspend
Run commands automatically after suspend:
1) Create script with commands (open Terminal and type)
sudo touch yourscriptname.sh
This will create the file in your home folder.
2) Edit script
sudo nano yourscriptname.sh
@jaredumbehr
jaredumbehr / createadminuser.sh
Created September 28, 2021 01:53 — forked from jhbush/createadminuser.sh
Create User Script
#!/bin/bash
# This script creates a user account under Mac OS X
# === Typically, this is all you need to edit ===
USERNAME=
FULLNAME=
PASSWORD=
# A list of (secondary) groups the user should belong to
@jaredumbehr
jaredumbehr / README.md
Created September 28, 2021 01:43
Don't send referrer header!

No Referrer Header

Don't send referrer header

How it works?

This userscript append the <meta> element to <head> for every websites.