Skip to content

Instantly share code, notes, and snippets.

View nemanjan00's full-sized avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile
@nemanjan00
nemanjan00 / README.md
Last active January 19, 2024 11:19
Disabling Android Setup wizard

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:

@nemanjan00
nemanjan00 / log.txt
Created September 20, 2023 13:10
Sigrok log
sr: [00:00.000000] log: libsigrok loglevel set to 5.
sr: [00:00.000023] backend: libsigrok 0.6.0-git-a06fdd0/4:0:0.
sr: [00:00.000050] backend: Libs: glib 2.76.5 (rt: 2.76.5/7605:5), zlib 1.3, libzip 1.10.1, minilzo 2.10, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0 1.0.26.11724 API 0x01000109, hidapi 0.14.0, bluez 5.69, libftdi 1.5.
sr: [00:00.000058] backend: Host: x86_64-pc-linux-gnu, little-endian.
sr: [00:00.000065] backend: SCPI backends: TCP, RPC, serial, USBTMC.
sr: [00:00.000069] backend: Firmware search paths:
sr: [00:00.000083] backend: - /home/nemanjan00/.local/share/sigrok-firmware
sr: [00:00.000087] backend: - /usr/local/share/sigrok-firmware
sr: [00:00.000091] backend: - /usr/local/share/sigrok-firmware
sr: [00:00.000095] backend: - /usr/share/sigrok-firmware
##############################################
# #
# dnscrypt-proxy configuration #
# #
##############################################
## This is an example configuration file.
## You should adjust it to your needs, and save it as "dnscrypt-proxy.toml"
##
// ==UserScript==
// @name AntiPatriota
// @author nemanjan00
// @include *
// @version 1
// ==/UserScript==
var map = {
"а": "a",
"б": "b",
import matplotlib.pylab as plt
import chipwhisperer as cw
import time
tries = 0
scope = cw.scope()
target_type = cw.targets.SimpleSerial
target = cw.target(scope, target_type)
@nemanjan00
nemanjan00 / midi2fmf.py
Last active July 23, 2022 14:08
MIDI to FMF (flipper music file)
from mido import MidiFile
import math
NOTES = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
OCTAVES = list(range(11))
NOTES_IN_OCTAVE = len(NOTES)
def number_to_note(number: int) -> tuple:
octave = number // NOTES_IN_OCTAVE
note = NOTES[number % NOTES_IN_OCTAVE]
#!/bin/bash
xrandr --output VGA1 --auto --left-of LVDS1
# default monitor is LVDS1
MONITOR=LVDS1
# functions to switch from LVDS1 to VGA and vice versa
function ActivateVGA {
echo "Switching to VGA1"
@nemanjan00
nemanjan00 / HOWTO.md
Last active May 1, 2021 12:36
Fixing ./Stremio+4.0.10.appimage: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

You will thank me later.

./Stremio+4.0.10.appimage --appimage-extract
cd squashfs-root
mv ./lib/libfreetype.so.6 ./lib/libfreetype.so.6.bak
./stremio
// ==UserScript==
// @name DuckDuckGo DeepDark
// @namespace http://userstyles.org
// @description <p>
// @author RaitaroH
// @homepage https://userstyles.org/styles/135954
// @run-at document-start
// @version 0.20180103060610
// ==/UserScript==
(function() {var css = "";
#!/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> ")