Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
@jerkovicl
jerkovicl / instructions.md
Created February 19, 2020 09:03 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@jerkovicl
jerkovicl / downloadTerminalTheme.ps1
Created February 18, 2020 15:25
script to download iTerm2 Color Scheme for Windows Terminal
# List of themes here: https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/windowsterminal
$Theme = "ayu"
$path = "$Env:LocalAppData/packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json"
$Conf = gc $path | ConvertFrom-Json
$Conf.schemes += irm https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/windowsterminal/$Theme.json
$Conf | ConvertTo-json -Depth 10 | Set-Content $path
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 / 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