Skip to content

Instantly share code, notes, and snippets.

@jnovack
jnovack / highsierra_iso.sh
Last active March 24, 2019 09:04 — forked from peterbladen/highsierra_iso.sh
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
# Do not copy the core, recovery CD ONLY
cp /Volumes/highsierra/Packages/EmbeddedOSFirmware.pkg /Volumes/OS\ X\ Base\ System/System/Installation/
cp /Volumes/highsierra/Packages/FirmwareUpdate.pkg /Volumes/OS\ X\ Base\ System/System/Installation/
cp /Volumes/highsierra/Packages/OSInstall.mpkg /Volumes/OS\ X\ Base\ System/System/Installation/
@kmark
kmark / XHookGms.java
Last active January 14, 2024 13:42
Hooking into any class in Google Play Services
package com.versobit.kmark.gist;
import android.app.Application;
import android.content.Context;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
@g-alonso
g-alonso / gist:d42386b95021cc560fb6
Created November 27, 2014 18:51
apt-yum-equivalent.txt
= Some yum usage for people who know "apt" =
If you are familiar with the apt package manager on Debian/Ubuntu this page should help you transfer your knowledge to working with yum on Fedora/RHEL/CentOS/etc.
Note that this page as currently written is by non-apt experts, so there may be some mistakes.
== General points ==
* Speed:
* data/CPU: apt on Debian deals with roughly ~37,000 packages[1] and an extra 6,500 "provides"[2]. yum on Fedora deals with roughly 24,000 packages, 143,000 provides and 3,100,000 file provides.