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
# https://gist.githubusercontent.com/pry0cc/dd2e7955d0a0222eb6c09cb283a6d614/raw/3c7bd4c20bb7649a944a36507073d9c9ab4100d8/ports.py
#!/usr/bin/env python
# Author @pry0cc
## $ ports.py nmap.xml
## 8.8.8.8:80
## 8.8.8.8:443
## 8.8.8.8:3305
@sickcodes
sickcodes / exclude.txt
Created March 31, 2022 20:55
ARIN Reserved IPv4 Address CIDR Blocks
0.0.0.0/8
0.0.0.0/32
10.0.0.0/8
100.64.0.0/10
127.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.0.0.0/24
192.0.0.0/29
192.0.0.8/32
@sickcodes
sickcodes / dumpifs-folderized.sh
Last active January 11, 2022 00:01
QNX: dumpifs with folder structures.
#!/bin/bash
# Author: bertelsmann
# Original: https://turbo-quattro.com/showthread.php?15648-How-to-extract-a-IFS-file
# Link: https://turbo-quattro.com/showthread.php?15648-How-to-extract-a-IFS-file&p=367809&viewfull=1#post367809
# Modified by: @sickcodes <https://github.com/sickcodes/>
ELEVATED="${ELEVATED:=false}"
IFSDUMP=dumpifs
TMPDIR="${PWD}"
CURDIR="${PWD}"
@sickcodes
sickcodes / arch_unattended_reinstall_all_packages.sh
Created November 30, 2021 12:27
Unattended Reinstall All Arch Linux Packages and AUR Packages
#!/bin/bash
# Author: sickcodes
# Contact: https://twitter.com/sickcodes
# Copyright: sickcodes (C) 2021
# License: GPLv3+
# reinstall all packages, unattended
# does not include any manual makepkg'ed installations
# said packages, plus any unavailable AUR packages will be listed at ~/yay_reinstall_failed.log
@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 / gist:09918a4baa4169a9bf77a22071893d6a
Created July 24, 2021 21:49
Start local passwordless SonarScanner Docker container localhost
#!/bin/bash
# Author: sickcodes
# Contact: https://twitter.com/sickcodes
# Copyright: sickcodes (C) 2021
# License: GPLv3+
# admin
# mypassword
export PASSWORD=mypassword
@sickcodes
sickcodes / macos.md
Last active May 29, 2024 16:08 — 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