Skip to content

Instantly share code, notes, and snippets.

View nemanjan00's full-sized avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile
#!/bin/bash
WIDTH=1366
HIGHT=768
for filename in ~/Pictures/WallpapersOriginal/*.jpg; do
filename=$(basename $filename)
echo $filename
convert ~/Pictures/WallpapersOriginal/$filename -resize $WIDTH -resize ${WIDTH}x$HIGHT^ -gravity center -background black -extent 1366x768 -quality 90 ~/Pictures/Wallpapers/$filename
done
var xml2js = require('xml2js');
var xml2jsOptions = xml2js.defaults['0.1'];
var util = require('util');
var EventEmitter = require('events').EventEmitter;
try {
// zipfile is an optional dependency:
var ZipFile = require("zipfile").ZipFile;
} catch (err) {
// Mock zipfile using pure-JS adm-zip:
<?php
$dir = "~/projects/dnevnik/".date("Y")."/".date("m");
exec("mkdir -p ".$dir);
echo $dir."/".date("d").".md";
?>
@nemanjan00
nemanjan00 / README.md
Created August 5, 2018 05:58
Remove hostname for NetworkManager + dhcpcd

Just replace nemanjan00-laptop with your hostname, move /usr/bin/dhcpcd to /usr/bin/dhcpcd_old and move dhcpcd to /usr/bin/dhcpcd

a2jmidid 8-3
acpi_call-dkms 1.1.0-140
adwaita-qt5 1.0-1
aircrack-ng 1.2-4
airgeddon-git 20180617.r1218-1
alock-git 2.3.r15.g5a3fe6b-1
alsa-utils 1.1.6-1
android-emulator 27.3.8-2
android-tools 8.1.0_r33-1
arandr 0.1.9-2
@nemanjan00
nemanjan00 / STORY.md
Last active September 25, 2018 14:55
This is my story of installing Anarchy linux with encrypted /boot on my X230 with coreboot and GRUB2 payload
This file has been truncated, but you can view the full file.
[
[{
"country": "AT",
"municipality": "Biberwier",
"lat": 47.38412659999999,
"lng": 10.8939017
}, {
"country": "AT",
"municipality": "Ehenbichl",
"lat": 47.4725694,
source /usr/share/zsh/scripts/zplug/init.zsh
zplug "themes/agnoster", from:oh-my-zsh, as:theme
zplug "changyuheng/fz", defer:1
zplug "rupa/z", use:z.sh
zplug "supercrabtree/k"
zplug "plugins/adb", from:oh-my-zsh
zplug "plugins/bgnotify", from:oh-my-zsh
const synaptic = require("synaptic");
// input:
// hot: 0 - 10
// crazy: 0 - 10
//
// output:
// no-go: 0/1
// danger-zone: 0/1
// fun-zone: 0/1
const synaptic = require("synaptic");
// input:
// hot: 0 - 10
// crazy: 0 - 10
//
// output:
// no-go: 0/1
// danger-zone: 0/1
// fun-zone: 0/1