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
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 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 gist:928c9cedb95885ece8a1129d0c739f03
https://onboarding.flocksocial.io/174d25fe-ad73-495b-877d-49cb7668d7f2
View index.js
const routes = [
{
route: new routeParser("/api/v1/users/:username/usernameinfo/"),
name: "Username info"
},
{
route: new routeParser("/api/v1/feed/user/:userId/"),
name: "User feed"
},
{
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 monitor.sh
#!/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 Nov 15, 2018
Fixing ./Stremio+4.0.10.appimage: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
View HOWTO.md

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
You can’t perform that action at this time.