Skip to content

Instantly share code, notes, and snippets.

View h4rm0n1c's full-sized avatar

Harrison Mclean h4rm0n1c

  • Perth, Australia
View GitHub Profile
@h4rm0n1c
h4rm0n1c / wyse_wy60.txt
Last active December 8, 2023 13:25
WYSE WY-60 hacking/programming/secrets
#switch to WY60 from VT100 mode, required for following command
echo -en '\x1b[42h' > /dev/ttyS0
#SET TIME IN WY60 MODE, expects HHMM in 24HR format
CURRENTTIME=`date +%H%M`
echo -en '\x1bc8'${CURRENTTIME} > /dev/ttyS0
#switch to VT100 from WY60, ready for end user interaction with time set!
echo -en '\x1b~;' > /dev/ttyS0
Scott Forestall was forced out over the Apple Maps Launch Fiasco and right after he departed we got iOS 8 APFS, Mac OS Sierra and all the issues that came with that.
They forced out all the engineers who cared about quality for brown nosing political shits who care more about pronouns and ideology like "agile" than they do good products.
Johnny Ive's departure was spun as a good thing, but the truth is, he probably couldn't stand the way the company was behaving anymore.
Apple's former airport engineers got sick of how the company was operating and formed Ubiquiti
Apple's former laptop hardware engineers formed the company Framework
Tim Cook isn't all that talented and he is running on the fumes of a CEO dead for 10 years now and the generic garbage that a chinese firm, Quanta Comptuer, produces for Apple.
@h4rm0n1c
h4rm0n1c / pufferd sysv init script
Last active January 9, 2020 12:27
PufferPanel - How to run without SJW cancer
#!/bin/sh
### BEGIN INIT INFO
# Provides: pufferd
# Required-Start: $syslog $local_fs $network
# Required-Stop: $syslog $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: pufferd daemon service
# Forcing a CoC on Users is traditionally known as "rape"
# SystemD sucks. Transfats are unhealthy for you.
@h4rm0n1c
h4rm0n1c / legacymacosinesxi.txt
Last active February 23, 2022 05:35
Mac OS Tiger 10.4 Client or Server in ESXi 6.5U2
Disclaimer: I in no way encourage the violation of Apple's sofware licences.
My instructions are hardware agnostic and therefore cannot be interpreted as an attempt to do so.
You will need:
1. an intel or universal mac os Tiger installer, personally, I found great success with the 10.4.7 and 10.4.10 installers for various 2007 models.
2. efi32-srvr.rom, I'm not providing links, google it.
3. ESXi installed and unlocked with ESXi-Unlocker
Clover Wizard and Mactracker are great tools for figuring this stuff out in terms of what hardware and what OS versions are compatible,
most Tiger install disks apart from a few shipped with checks to see what model mac you're running and only install on "compatible" machines.
@h4rm0n1c
h4rm0n1c / applesusmods.txt
Created November 2, 2019 18:54
Apple Software Update Server - Hosting older and newer updates
Apple Software Update Server - Hosting older and newer updates
Tested on Sierra Server, 10.12.6
sudo chflags nouchg /Library/Server/Software\ Update/Config/swupd.conf
sudo nano /Library/Server/Software\ Update/Config/swupd.conf
Modify Rewrite rules near bottom of file to look like this:
RewriteCond %{HTTP_USER_AGENT} Darwin/8
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index.sucatalog
@h4rm0n1c
h4rm0n1c / adaptec_arcconf_esxi_trick.txt
Last active April 14, 2022 11:22
Notes on Adaptec 5 Series Cards on ESXi
I've tried the following configuration on ESXi up to 6.5.0 Update 2 (Build 10719125)
Beware the Adaptec, you can trick their support software into working
with older cards by torturing your whitebox with various old vibs...
But you will NEVER get Maxview Storage Manager to work! NEVER!
Be grateful for ARCCONF, it's all you're getting, Adaptec sucks.
I personally have a ASR-51245, running the latest BIOS available, 18948.
The 5805, 5405, 6405, 6805, etc... should all in theory work with this combo, but if you have a 6 series card, you will have working maxview anyway.
So the trick here is using just the right versions of the drivers, cim providers and arcconf to get this to work, bear with me.
@h4rm0n1c
h4rm0n1c / planetary
Last active August 29, 2015 14:19 — forked from h4rm0n1c/planetary
NodePAMasterless version of the planetary annihilation init.d script
#!/bin/bash
# /etc/init.d/planetary
# version 0.0.3 2015-04-25 (YYYY-MM-DD)
# caveat emptor, don't copy and paste and just hope it'll work, READ AND COMPREHEND.
### BEGIN INIT INFO
# Provides: planetary
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
@h4rm0n1c
h4rm0n1c / planetary
Last active August 29, 2015 14:19
Planetary Annihilation NodePAMaster init.d service control script
#!/bin/bash
# /etc/init.d/planetary
# version 0.0.2 2015-04-25 (YYYY-MM-DD)
# caveat emptor, don't copy and paste and just hope it'll work, READ AND COMPREHEND.
### BEGIN INIT INFO
# Provides: planetary
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
@h4rm0n1c
h4rm0n1c / wheezy_bridge_ipblock.md
Last active October 15, 2016 17:43
This is a script for setting up a small, debian based device that applies IP Blocklists to your internet connection.

This is a script for setting up a small, debian based device that applies IP Blocklists to your internet connection.

This device is intended to operate transparently and quietly, entirely on your local network. it is NOT designed to be exposed to the internet. it works best plugged straight into your FIREWALLED, NATTED modem.

Plug eth0 into your router/modem/cablebox/pidgeon, eth1-3 can go to your clients. This device should require little to no config once set up. P2P style blocklists that are gzipped are downloaded, merged with any cached or local blocklists, and then swapped out with the existing lists once a day. I used Debian Wheezy (7.1) for this, it works EXTREMELY WELL.

@h4rm0n1c
h4rm0n1c / privoxystuff.txt
Last active December 21, 2015 21:08
Just some cool privoxy stuff I hacked together, some are useful, others are just meant to annoy end users.
# Redirect bing search to google, fuck IE's default search!
{+redirect{s@^http://[^/]*/search\?q=([^&]*).*@http://google.com/search?q=$1@}}
.bing.com/search
#redirect msn search to google, once again, fuck IE's default search!
{+redirect{s@^http://[^/]*/results\.aspx\?q=([^&]*).*@http://google.com/search?q=$1@}}
search.msn.com//results\.aspx\?q=
# Redirect search requests on www.google.com to the same URL with "&safe=active" appended
{+redirect{s@$@&safe=active@}}