Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
Import-Module cd-extras
Import-Module posh-git
Import-Module oh-my-posh
Import-Module PowerTab -ErrorAction SilentlyContinue
Import-Module PSColor
Set-Theme paradox
$global:PSColor.File.Executable.Color = 'Blue'
# setting the default user removes the 'user@machine' designation at the beginning of the prompt
$DefaultUser = 'George'

How to get @DevBlackOps Terminal-Icons module working in PowerShell on Windows

Note: since version 0.1.1 of the module this now works in Windows PowerShell or PowerShell Core.

  1. Download and install this version of Literation Mono Nerd Font which has been specifically fixed to be recognised as monospace on Windows:

https://github.com/haasosaurus/nerd-fonts/blob/regen-mono-font-fix/patched-fonts/LiberationMono/complete/Literation%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf

(see this issue for more info: ryanoasis/nerd-fonts#269)

{
"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"