Skip to content

Instantly share code, notes, and snippets.

View nemanjan00's full-sized avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile

rofi-books

#!/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> ")
# 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
insmod part_gpt
insmod part_msdos
insmod lvm
insmod luks
insmod cryptodisk
insmod gcry_rijndael
insmod gcry_sha256
font=(cbfsdisk)/grub/unicode.pf2

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": {
# Last Modified: Fri Sep 7 21:20:10 2018
#include <tunables/global>
/usr/bin/qutebrowser {
#include <abstractions/audio>
#include <abstractions/base>
#include <abstractions/bash>
#include <abstractions/dbus-session-strict>
#include <abstractions/dri-common>
#include <abstractions/dri-enumerate>
{
"type": "webpack",
"entryPoint": 1,
"knownPaths": {
"0": "interface",
"4": "eventHandler",
"3": "controller",
"2": "init",
"6": "crypto",
"7": "hexBinConverter"
{
"type": "webpack",
"entryPoint": 1,
"knownPaths": {
"0": "interface",
"4": "eventHandler",
"3": "controller",
"2": "init"
},
"moduleAst": ["body", 0, "expression", "argument", "arguments", 0]
{
"type": "webpack",
"entryPoint": 1,
"knownPaths": {},
"moduleAst": ["body", 0, "expression", "argument", "arguments", 0]
}
! function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var s = n[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(s.exports, s, s.exports, t), s.l = !0, s.exports
}