This file contains 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
// List all fonts on iPhone | |
for (NSString* family in [UIFont familyNames]) { | |
NSLog(@"Family name: %@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) { | |
NSLog(@" Font name: %@", name); | |
} | |
} |
This file contains 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 | |
source .bashrc | |
loadavg=$(cat /proc/loadavg | awk '{print $2}' | sed 's/[^0-9]*//g') | |
cpucount=$(sed -n '/ cores/ s/[^0-9]//gp' /proc/cpuinfo | sed '1,1d') | |
cpu=$(($loadavg/$cpucount)) | |
memtotal=$(sed -n '/^MemTotal:/ s/[^0-9]//gp' /proc/meminfo) | |
memavail=$(sed -n '/^MemAvailable:/ s/[^0-9]//gp' /proc/meminfo) | |
mem=$(((($memtotal-$memavail))/($memtotal/100))) |
This file contains 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/zsh | |
# ipsw2dmg.sh by github.com/atnbueno - v2.0.0 (2022-07-31) - License: MIT | |
# Check if input file exists (with or without an .ipsw extension) | |
if [ -f "$1" ]; then | |
INPUT=$(realpath "$1") | |
else | |
if [ -f "$1.ipsw" ]; then | |
INPUT=$(realpath "$1.ipsw") | |
else |
This file contains 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
// ==UserScript== | |
// @name Remove Facebook Sponsored Elements | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Remove Facebook Sponsored Elements | |
// @author You | |
// @match https://www.facebook.com/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// @run-at document-idle |
This file contains 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
# Tested with PyXA 0.1.0 | |
import PyXA | |
app = PyXA.Application("Shortcuts") | |
folders = app.folders() | |
# Method 1 - Standard iteration | |
summary = [] | |
for folder in folders: | |
folder_name = folder.name | |
num_shortcuts = len(folder.shortcuts()) |
This file contains 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
// Use tab keys to quickly go to OK button | |
let dateFormat = '%fillpopup:name=dateFormat:default=YYYY-MM-DD:MMM DD, YYYY:DD/MM/YY:MM/DD/YY:none%'; | |
let timeFormat = '%fillpopup:name=timeFormat:HH MM:HH MM SS:default=HH MM ZONE:HH MM SS ZONE:none%'; | |
let hour24 = '%fillpart:name=24 hour format:default=yes%hour24%fillpartend%'; | |
let includeYear = '%fillpart:name=Include year:default=yes%includeYear%fillpartend%'; | |
// keeping these at the top because TextExpander has to show the | |
// full function code every time. | |
// This is very long code. Use tab keys to quickly go to ok button. | |
// Time options have spaces instead of colons because I couldn't |
This file contains 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
############################################################# | |
# Title: Find all URL Links on Webage then open link based on a Search value | |
############################################################# | |
#Iain Dunn | |
#https://www.logic2design.com | |
#https://twitter.com/Logic2Design | |
#logic2design@icloud.com | |
############################################# | |
# Script | |
############################################# |
This file contains 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
/* <![CDATA[ */ | |
//============================================================ | |
// ZALGO text script by tchouky | |
//============================================================ | |
// data set of leet unicode chars | |
//--------------------------------------------------- | |
//those go UP | |
var zalgo_up = [ |
This file contains 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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
# Sample Keyboard Maestro macros at | |
# <https://sixcolors.com/wp-content/uploads/2022/01/Podcast-Noter-Macros.kmmacros.zip> | |
on run argv | |
try | |
set theNote to (item 1 of argv) | |
on error |
This file contains 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 | |
# Recursivelly removes all apps from your Xcode archives from the LaunchServices database, preventing them from being used for widgets, launch at login, etc. | |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -R -f -u $HOME/Library/Developer/Xcode/Archives |