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
import objc | |
from Foundation import NSBundle | |
IOKit_bundle = NSBundle.bundleWithIdentifier_('com.apple.framework.IOKit') | |
functions = [("IOServiceGetMatchingService", b"II@"), | |
("IOServiceMatching", b"@*"), | |
("IORegistryEntryCreateCFProperty", b"@I@@I"), | |
] |
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
rm -r ~/Library/Caches/storeinappd | |
rm -r ~/Library/Caches/storedownloadd | |
rm -r ~/Library/Caches/storeassetd | |
rm -r ~/Library/Caches/storeaccountd | |
rm -r $TMPDIR../C/com.apple.appstore | |
rm -r /private/var/folders/*/*/*/com.apple.appstore | |
rm -r ~/Library/Caches/com.apple.appstore | |
rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState | |
rm ~/Library/Preferences/com.apple.appstore.plist |
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
[+] Entered shellcode | |
[+] UID: 0, GID: 0 | |
[DIR]: . | |
[DIR]: .. | |
[DIR]: adm | |
[DIR]: app_tmp | |
[DIR]: data | |
[DIR]: dev | |
[DIR]: eap_user | |
[DIR]: eap_vsh |
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/sh -x ## or just ` curl -Ls http://git.io/vRozn | sh `. | |
## Downloads the Mac OS X 10.10 Recovery Partition update, | |
## Copy's over the 10.10 version of Disk Utility.app, then | |
## use git to apply a binary patch so it will run on 10.11+. | |
cd /tmp | |
rm -rf DU1010 | |
mkdir DU1010 |
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
Fetching: gobject-introspection-3.0.7.gem (100%) | |
Building native extensions. This could take a while... | |
ERROR: Error installing rabbit: | |
ERROR: Failed to build gem native extension. | |
/usr/local/opt/ruby/bin/ruby -r ./siteconf20151121-1191-56d1zb.rb extconf.rb | |
checking for --enable-debug-build option... no | |
checking for -Wall option to compiler... yes | |
checking for -Waggregate-return option to compiler... yes | |
checking for -Wcast-align option to compiler... yes |
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
-- comments will show python's equivalent | |
-- range(1, 11) | |
a = [1..10] | |
-- itertools.count() | |
b = [1..] | |
-- range(1, 9, 2) | |
c = [1, 3..7] |
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
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
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 python | |
import random | |
import struct | |
import sys | |
# Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833 | |
def ppNum(num): | |
return "%s (%s)" % (hex(num), num) |
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 Service Diagnostic Disks 25 GB [Original] | |
Applications : Mac : English | |
ASD Dual Boot 2.1.5 (2003) | |
PowerBook G4 (12-inch), PowerBook G4 (17-inch), iMac (17-inch 1GHz), Power Mac G4 (FW 800), Xserve (slot load), eMac (ATI Graphics), and Power Mac G4 (Mirrored Drive Doors 2003), iMac (USB 2.0), PowerBook G4 (15-inch FW800), PowerBook G4 (17-inch 1.33GHz) and PowerBook G4 (12-inch DVD) | |
ASD 2.5.7 |