Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

  • Croatia
View GitHub Profile
@jerkovicl
jerkovicl / wikipy.py
Created October 7, 2019 16:33 — forked from powerexploit/wikipy.py
Wikipedia scraping with python
#!/usr/bin/python3
#Scraping wikipedia page according to your command line input
import sys
import requests
import bs4
RED = '\033[31m'
END = '\033[0m'
ascii_art = RED \
+ """
@jerkovicl
jerkovicl / proxmox.md
Last active September 22, 2019 14:28
proxmox stuff

PROXMOX setup

Enable copy paste for Proxmox linux vm from Windows host

  • install virt-viewer Windows installer - can be downloaded from virt-manager download page
  • download spice-guest-tools from here
  • install spice-vdagent on linux vm
    sudo apt install spice-vdagent
  • start spice-vdagent (check if spice-vdagentd sevice started aswell)
    sudo systemctl start spice-vdagent
@jerkovicl
jerkovicl / gist:6fdb17c37d1519a52befdbb4ac180769
Created September 17, 2019 21:15 — forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; systemctl restart pveproxy.service; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit
@jerkovicl
jerkovicl / docker-compose-mysql.yml
Last active September 9, 2019 20:51 — forked from MKagesawa/docker-compose.yml
Docker-compose MySQL Image create multiple databases
# The official MySQL (https://hub.docker.com/_/mysql/) supports only one MYSQL_DATABASE environment variable.
# By modifying the entrypoint and passing shell script, you can create multiple dbs without having to make a mysql image just for this purpose.
version: '3'
services:
# Some other service connecting to mysql
db:
image: mysql:5.6
@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) {