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 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 |
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 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: |
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 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 |
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
#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' |
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
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1 | |
Build date: 2016-11-25 01:43:13 |
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
Homebrew build logs for homebrew/dupes/ncurses on macOS 10.12.1 | |
Build date: 2016-11-25 01:41:30 |
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
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1 | |
Build date: 2016-11-25 00:32:11 |
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
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1 | |
Build date: 2016-11-24 23:24:25 |
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
# For anyone that would like root access via telnet to their old Night Owl device, the login is: | |
Username: root | |
Password: 123456 |
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
See the original post for the source of this code: | |
http://console-cowboys.blogspot.com/2013/01/swann-song-dvr-insecurity.html |
NewerOlder