Skip to content

Instantly share code, notes, and snippets.

View sickcodes's full-sized avatar
Free Software, Code, Contracting, Hacking. DMs Open

sickcodes sickcodes

Free Software, Code, Contracting, Hacking. DMs Open
View GitHub Profile
@sickcodes
sickcodes / tweaked_build.prop
Created August 2, 2021 01:56
Unsecure, Permissive, Tweaked Prop File, HTC/Samsung/*, Capable Of Being Both As default.prop And/Or build.prop (just remove duplicates from the original file, favouring this version)
#unsecure - SELinux enabled.
ro.build.selinux=1
#unsecure - SELinux set permissive (not enforcing), disable re-applying policy and context. You must also edit the boot.img with those props and add 'setenforce 0' according to https://gist.github.com/eladkarako/5694eada31277fdc75cee4043461372e#gistcomment-3475304 -- then repack the boot.img and flash it (init.rc will launch at boot).
ro.boot.selinux=permissive
androidboot.selinux=permissive
persist.android.strictmode=0
persist.selinux.enforcing=0
ro.build.selinux.enforce=0
security.perf_harden=0
@sickcodes
sickcodes / macos.md
Last active June 24, 2024 20:36 — forked from gguerini/macos
MacOS Defaults
# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)

# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>Security &amp; Privacy</string>
<key>PayloadEnabled</key>
@sickcodes
sickcodes / tasks.yml
Created May 26, 2021 09:50 — forked from lrvick/tasks.yml
Mac Ansible management example
---
- name: Check if Previously Run
stat:
path: /var/log/ansible.log
register: ansible_logfile
- name: Enable FileVault2
filevault: enabled=true
become_user: root
@sickcodes
sickcodes / Readme.md
Last active May 3, 2021 08:15 — forked from cunneen/Readme.md
Install Open GApps In Android Emulator

Introduction

This works to install Open GApps into the Android Emulator, working around the issue where the system partition is too small.

With it, I can get Google Play installing into the emulator. Tested on KitKat (API 19), Lollipop (API 21) and Oreo (API 27).

It's tested on MacOS.

Instructions

@sickcodes
sickcodes / gist:2c62b829fdb2d9f98f547e27dd1c85f5
Last active March 24, 2021 10:18 — forked from rockorequin/gist:f61fcb0217194997a2a3e8c4da260e4c
Patch for evdi branch rockorequin-sickcodes-microhobby-patch-1.7.x for kernel 5.12
diff --git a/module/evdi_drv.c b/module/evdi_drv.c
index d364efa..3428158 100644
--- a/module/evdi_drv.c
+++ b/module/evdi_drv.c
@@ -84,6 +84,18 @@ static void evdi_disable_vblank(__always_unused struct drm_device *dev,
}
#endif
+#if KERNEL_VERSION(5, 12, 0) >= LINUX_VERSION_CODE
+// This has become an internal function in 5.12, so copy it here