Skip to content

Instantly share code, notes, and snippets.

View jakenology's full-sized avatar
🏠
Working from home

Jakenology jakenology

🏠
Working from home
  • Midwest, USA
View GitHub Profile
@gregneagle
gregneagle / prefs_observer.py
Created August 1, 2017 18:20
Getting notified when a preference changes (using PyObjC)
from Foundation import NSObject, NSUserDefaults, NSKeyValueObservingOptionNew
from Foundation import NSRunLoop, NSDate
class PrefsObserver(NSObject):
def observe(self, domain, key):
self.domain = domain
self.key = key
if self:
self.defaults = NSUserDefaults.alloc().initWithSuiteName_(
@grahampugh
grahampugh / Remove Application.sh
Last active March 23, 2026 02:25
A Jamf Pro script to remove applications in the Applications folder.
#!/bin/bash
#######################################################################
#
# Remove Application Script for Jamf Pro
#
# This script can delete apps that are sandboxed and live in /Applications
#
# The first parameter is used to kill the app. It should be the app name or path
# as required by the pkill command.
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 31, 2026 07:50
crack activate Office on mac with license file
@igorvoltaic
igorvoltaic / useradd.sh
Last active July 25, 2024 10:23
Create new user using command line in Mac OS X. Do not forget to set correct permissions for the file.
#!/bin/sh
if [[ `id -u` != 0 ]]; then
echo "Must be root to run script"
exit
fi
read -p "Enter user name and press [ENTER]: " UserName
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active August 2, 2026 10:41
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@pcgeek86
pcgeek86 / install_go_pi.sh
Last active March 17, 2025 21:35 — forked from random-robbie/install_go_pi.sh
Install Go Lang on Raspberry Pi
cd $HOME
FileName='go1.13.4.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@camckin10
camckin10 / warmup1.py
Last active January 8, 2019 17:06
WarmUp Exercises from CodingBat Python(Python3)
#EXERCISE #1
#diff21--Given an int n, return the absolute difference between n and 21, except return double the absolute difference if
#n is over 21.
#first solution try--only got 1 out of 12 correct
def diff21(n):
if n < 21:
return n *2
else:
return n - 21