Skip to content

Instantly share code, notes, and snippets.

Nemanja Nedeljković nemanjan00

Block or report user

Report or block nemanjan00

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nemanjan00
nemanjan00 / README.md
Last active Oct 31, 2019
Disabling Android Setup wizard
View README.md

Disabling Android Setup wizard

To disable setup wizard:

mv /system/priv-app/SetupWizard/SetupWizard.apk /system/priv-app/SetupWizard/SetupWizard.apk.bkp

To make device think setup is done:

View default.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote
name="aosp"
fetch="https://android.googlesource.com/"
review="https://android-review.googlesource.com/" />
<default
revision="master"
remote="aosp"
sync-j="4" />
View config
[colors]
background = #282a36
background-alt = #282a36
foreground = #dfdfdf
foreground-alt = #555
primary = #50fa7b
secondary = #e60053
alert = #bd2c40
[bar/bottom]
View log.txt
socket(AF_INET6, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 21
setsockopt(21, SOL_SOCKET, SO_OOBINLINE, [1], 4) = 0
connect(21, {sa_family=AF_INET6, sin6_port=htons(40818), inet_pton(AF_INET6, "fe80::f2cb:270c:128f:22d4", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = -1 EINVAL (Invalid argument)
View filter.js
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
normalizer = (pattern) => {
result = {};
pattern.split("").forEach((character) => result[character] = true);
View rofi-books.sh
#!/usr/bin/env bash
LIBRARY="$HOME/Library"
function display() {
books=$(find $LIBRARY | grep '\.epub\|\.pdf')
books=${books//$LIBRARY/"~"}
line=$(echo "$books" | rofi -matcher fuzzy -dmenu -i -p "book> ")
View intercept.sh
# Route recieved IPv4 packages
sudo sysctl -w net.ipv4.ip_forward=1
# Forward packages from AP to mitmproxy
sudo iptables -t nat -A PREROUTING -i ap0 -p tcp --dport 443 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -i ap0 -p tcp --dport 80 -j REDIRECT --to-port 8080
# Forward packages from WiFi to mitmproxy
sudo iptables -t nat -A PREROUTING -i wlp2s0 -p tcp --dport 443 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -i wlp2s0 -p tcp --dport 80 -j REDIRECT --to-port 8080
View grub.cfg
insmod part_gpt
insmod part_msdos
insmod lvm
insmod luks
insmod cryptodisk
insmod gcry_rijndael
insmod gcry_sha256
font=(cbfsdisk)/grub/unicode.pf2
View keybase.md

Keybase proof

I hereby claim:

  • I am nemanjan00 on github.
  • I am nemanjan00 (https://keybase.io/nemanjan00) on keybase.
  • I have a public key ASCc1eVXEUhTnGxAhCSfw2JcwavBiBTM6OA2gx646Tcj4wo To claim this, I am signing this object:
{
  "body": {
    "key": {
You can’t perform that action at this time.