Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
@jerkovicl
jerkovicl / initdb.sql
Created September 7, 2019 20:26
guacamole init sql script
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
#!/bin/bash
# LINUX UPGRADE: sudo RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade
sudo -i
# install dependencies
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common acl
# install docker

DOCKER HOME SERVER SETUP

Initial setup

  • Docker preparations
sudo chmod +x /usr/local/bin/docker-compose

sudo usermod -aG docker ${USER}
#Reference: https://www.smarthomebeginner.com/traefik-reverse-proxy-tutorial-for-docker
#Requirement: nano .env -> Set environmental variables: ${$USERDIR}, ${PUID}, ${PGID}, ${TZ}, ${DOMAINNAME}, ${CLOUDFLARE_EMAIL}, ${CLOUDFLARE_API_KEY}, ${HTTP_USERNAME}, ${HTTP_PASSWORD}, ${PLEX_CLAIM} etc. as explained in the reference.
version: "3.7"
services:
######### FRONTENDS ##########
# Traefik Reverse Proxy
traefik:
@jerkovicl
jerkovicl / profiles.json
Last active August 16, 2019 12:54
Windows Terminal settings
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
  1. go to your my-list page, and scroll to the bottom to make sure it's all loaded: //http://www.netflix.com/browse/my-list

  2. Next, paste this in your developer tools console and hit enter:

    // JSON version
    (function() {
        var list = []
        document.querySelectorAll('.title-card a[aria-label]').forEach(
    

function(item) {

@jerkovicl
jerkovicl / netflix-ratings.js
Created August 5, 2019 12:49 — forked from cliffordp/netflix-ratings.js
Export Netflix's My List, Watch History, and thumbs up/down or ratings. Screenshot of Netflix Ratings vs script's output: https://cl.ly/4e15a4de21a6
// These instructions for exporting Netflix's My List, Watch History, and Ratings worked for each profile on August 4, 2019.
// 1) Go to https://www.netflix.com/browse/my-list and use https://addons.mozilla.org/firefox/addon/netflix-list-exporter/ to copy.
// 2) Go to https://help.netflix.com/en/node/101917 and follow instructions to download CSV of Watch History.
// 3) Use the snippet below in the browser's console at https://www.netflix.com/MoviesYouveSeen, then copy and paste to wherever you wish.
// Code was altered from https://www.coollector.com/netflix_import.html, but I haven't ever used their software.
// 4) Go to https://www.netflix.com/cancelplan and cancel (if that's why you're doing all this):
@echo off
echo -----------------------------------------------------
echo Powerline streamlined instalation script by @lofi1048
echo -----------------------------------------------------
IF EXIST %CMDER_ROOT%\cmder-powerline-prompt GOTO SYM
:CLONE

Cmder config

Create a file named initInExternalTerminal.bat on cmder's root, containing the following:

@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder, 
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"
@jerkovicl
jerkovicl / .hyper.js
Created May 20, 2019 11:11 — forked from robertcoopercode/.hyper.js
Hyper Configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',