Skip to content

Instantly share code, notes, and snippets.

Avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile
View duckduckgo-deepdark.user.js
// ==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 = "";
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 config.json
{
"type": "webpack",
"entryPoint": 1,
"knownPaths": {},
"moduleAst": ["body", 0, "expression", "argument", "arguments", 0]
}
View posta.sh
paket () {
curl "https://www.posta.rs/cir/alati/pracenje-posiljke.aspx?broj=$1" -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-User: ?1' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'Sec-Fetch-Site: same-origin' -H 'Accept-Language: en-US,en;q=0.9' -H 'DNT: 1' -H 'Accept-Encoding: gzip, deflate, br' --compressed 2>/dev/null | grep " <td>" | tr -d '\t' | tr -s " " | head -n1 | sed 's$</td><td>$ $g' | sed 's$<td>$$g' | sed 's$ &nbsp;</td>$$g'
}
View A03.smali
.class public final LX/A03;
.super Ljava/lang/Object;
.source ""
# direct methods
.method public static parseFromJson(LX/0j7;)LX/A1N;
.locals 4
.line 0
@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);
You can’t perform that action at this time.