Skip to content

Instantly share code, notes, and snippets.

View shanduur's full-sized avatar
🏠
Working from home

Mateusz Urbanek shanduur

🏠
Working from home
View GitHub Profile

Look at the two files below. One works on Windows, second on MacOS and Linux.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Terminal here"
"Icon"="%USERPROFILE%\\OneDrive\\Pictures\\icons\\terminal.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\mateu\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."
@shanduur
shanduur / windows.ps1
Last active August 10, 2020 12:38
Extensions used while working with Pro*C and JCL (z/OS and HP-UX).
code --install-extension bitlang.cobol
code --install-extension dunstontc.dark-plus-syntax
code --install-extension ms-vscode.cpptools
code --install-extension PKief.material-icon-theme
code --install-extension shanduur.c-embedded-sql
code --install-extension bitbelt.converttoasciiart
code --install-extension cseitel.open-in-npp
@shanduur
shanduur / conf.sh
Last active September 10, 2020 16:25
config='https://github.com/Shanduur/simple-linux-configuration.git'
if [ -e ~/tmp ]; then
rm -rf ~/tmp
fi
pkg install -y openssh rsync git make neovim clang golang htop neofetch man tsu
if [ -e ~/.config ]; then
echo "[WARNING] Directory .config exists."
@shanduur
shanduur / 101.conf
Created September 23, 2020 11:49
Configuration file for MacOS (Catalina 10.15.6) on Proxmox 6.2 with NVMe SSD pass-thorugh.
args: -set device.hostpci0.x-msix-relocation=bar2 -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -cpu host,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc
balloon: 0
bios: ovmf
bootdisk: ide2
cores: 4
cpu: Penryn
efidisk0: storage-1:vm-101-disk-1,size=1M
hostpci0: 02:00,pcie=1
ide0: data:iso/Catalina-Installer.iso,cache=unsafe,size=2086412K
ide2: data:iso/OpenCore.iso,cache=unsafe,size=150M
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File", // requires ms-python.python extension
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
@shanduur
shanduur / config.env
Last active August 26, 2021 10:01
VM on Raspberry Pi 3
export CLANG_VERSION="CLANG38"
export UBUNTU_RELEASE="focal"
@shanduur
shanduur / vagrant.log
Created September 10, 2021 12:07
Vagrant debug output (issue)
This file has been truncated, but you can view the full file.
vagrant : INFO global: Vagrant version: 2.2.14
At line:1 char:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.14:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.14\\gems\\vagrant-2.2.14\\bin\\vagrant"
#!/usr/bin/env bash
# default username / password combination is:
# ubuntu:ubuntu
export DEFAULT_USER="ubuntu"
echo "default user: ${DEFAULT_USER}"
export CURRENT_USER=$(whoami)
echo "current user: ${CURRENT_USER}"
# Configuration
#!/usr/bin/env bash
OS=$(uname -s)
ARCH=$(uname -m)
URL="https://github.com/docker/compose/releases/latest/download/docker-compose-${OS}-${ARCH}"
if [ -z ${OVERRIDE_PATH} ];
then
INSTALL_PATH="/usr/local/lib/docker/cli-plugins/docker-compose"
else