Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
{
"name": "vscode-workflow",
"version": "1.0.0",
"description": "Fullstack app to demonstrate end to end workflow of Angular and ASP Net Core app inside VS Code.",
"main": "index.js",
"keywords": [
"vscode",
"angular",
"aspnetcore",
".net",
@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 / 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
  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',
@jerkovicl
jerkovicl / startup-tasks.txt
Created November 7, 2018 08:47 — forked from TomKearney/startup-tasks.txt
CMDER initialise with four windows
* -cur_console:d:c:\dev\projects\plutus -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50H -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s2T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"