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
# By chris1111 | |
# | |
# Copyright (c) 2024 chris1111. All Right Reserved. | |
# Credit: Apple | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
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 | |
# Extract AMFIPass.kext | |
# By chris1111 | |
# get AMFIPass path | |
if [ "$2" == "" ]; then | |
echo -n "Please move to terminal window ➤ \ OpenCore-Patcher.app \ | |
Followed by ENTER: " |
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
# macOS-RamDisk By chris1111 | |
# Copyright (c) 2023, chris1111. All Right Reserved. | |
PARENTDIR=$(dirname "$0") | |
cd "$PARENTDIR" | |
printf '\e[8;35;80t' | |
BOLD="\033[1m" | |
RED="\033[1;31m" | |
GREEN="\033[1;32m" | |
Purple='\033[0;35m' | |
Blue='\033[0;34m' |
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
<!DOCTYPE html> | |
<html> | |
</head> | |
<body> | |
<div id="container"> | |
<div align="center"> | |
<h1>Image Upload</h1> | |
<span style='font-size:100px;'>⇩</span> | |
</div> | |
</div> |
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
# Rename volume if exist by chris1111 | |
tell application "Finder" | |
set allVolumes to disks | |
repeat with aVolume in allVolumes | |
if (name of aVolume as text) is equal to "USB-DISK" then | |
set name of aVolume to "USB_DISK" | |
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
# Apple Script by chris1111 | |
# Copyright (c) 2021 chris1111 All rights reserved. | |
set Term to choose from list {"Pro", "Homebrew", "Basic", "Grass", "Man Page", "Novel", "Ocean", "Red Sands", "Silver Aerogel", "Solid Colors"} with title "Setup Terminal Profiles" with prompt "Which profiles do you want to uses?" default items "Pro" OK button name {"Profiles"} cancel button name {"Cancel"} | |
tell application "Terminal" | |
activate | |
end tell | |
do shell script "killall -c Terminal" |
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
# Eject Disk image or External Disk Applescript | |
# Applescript from chris1111 2020. | |
# (I think is the only Applescript that does not crash if the disk that has to unmount does not exist) | |
# Change the name MYDISK to the name you want | |
tell application "Finder" | |
activate | |
if exists disk "MYDISK" then | |
tell application "Finder" to eject disk "MYDISK" | |
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 | |
# Simple script by chris1111 | |
# Vars | |
apptitle="Trim Enabler Catalina" | |
version="1.0" | |
# Set Icon directory and file | |
iconfile="/System/Library/CoreServices/Expansion Slot Utility.app/Contents/Resources/AppIcon.icns" | |
# Select Trim Choice |
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
# Applescript create by chris1111 | |
tell application "Finder" | |
activate | |
# the original disk you want to rename | |
if exists disk "Catalina HD" then | |
# The name you want to give it | |
set theName to "Catalina-HD" | |
# the original disk you want to rename | |
set ORIG to "Catalina HD" | |
tell application "Finder" |
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
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |