Skip to content

Instantly share code, notes, and snippets.

View ylluminate's full-sized avatar

ylluminate ylluminate

View GitHub Profile
@ylluminate
ylluminate / resource_sampler.sh
Created August 27, 2024 02:54
Average of resource samplings on macOS over a period of time with a given frequency to check resource usage with different configurations
#!/usr/bin/env zsh
# macOS Resource Sampler
# Version: 1.1
# This script samples system resources over a specified duration and reports averages.
#
# NOTE: Useful for measuring potential differentials in performance with different services disabled / enabled on macOS.
# Default values
DURATION=600 # 10 minutes
@ylluminate
ylluminate / Monterey_Services_Disabler.sh
Created August 27, 2024 00:26
Monterey Services Disabler to debloat or "un-Apple" macOS 12
#!/usr/bin/env zsh
# Monterey_Services_Disabler.sh
# Purpose: Robustly disable potentially unnecessary services on macOS 12 Monterey (especially useful for virtual machine guests)
# Version: 1.6
# CREDITS: Starting point credit to gopsmith: https://gist.github.com/gopsmith/bf4d3a8203cd0792c9f8702cc76c8525
# Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Big Sur revision by b0gdanw https://gist.github.com/b0gdanw/40d000342dd1ba4d892ad0bdf03ae6ea
#
# INSTRUCTIONS:
#!/usr/bin/env ruby
require 'net/http'
def convert_currency(from_curr, to_curr)
doc = Net::HTTP.get('www.google.com', "/finance/converter?a=1&from=#{from_curr}&to=#{to_curr}")
regexp = Regexp.new("(\\d+\\.{0,1}\\d*)\\s+#{to_curr}")
regexp.match doc
$1.to_f
end
@ylluminate
ylluminate / perfectelementary.bash
Created June 17, 2017 00:16
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@ylluminate
ylluminate / # nano - 2016-11-25_01-43-13.txt
Created November 25, 2016 06:46
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-25 01:43:13
@ylluminate
ylluminate / # ncurses - 2016-11-25_01-41-30.txt
Created November 25, 2016 06:42
ncurses (homebrew/dupes/ncurses) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for homebrew/dupes/ncurses on macOS 10.12.1
Build date: 2016-11-25 01:41:30
@ylluminate
ylluminate / # nano - 2016-11-25_00-32-11.txt
Created November 25, 2016 05:35
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-25 00:32:11
@ylluminate
ylluminate / # nano - 2016-11-24_23-24-25.txt
Created November 25, 2016 04:25
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-24 23:24:25
@ylluminate
ylluminate / default.txt
Created June 25, 2016 20:47
Default Password for Telnet to Night Owl FS500 (DVR08-53A)
# For anyone that would like root access via telnet to their old Night Owl device, the login is:
Username: root
Password: 123456
@ylluminate
ylluminate / ! README.txt
Last active March 17, 2024 04:35
Own your DVR (Mfgs: Swann, Lorex, Night Owl, Zmodo, URMET, kguard security, etc.; models: DVR04B, DVR08B, DVR-16CIF, DVR16B, etc.)
See the original post for the source of this code:
http://console-cowboys.blogspot.com/2013/01/swann-song-dvr-insecurity.html