Skip to content

Instantly share code, notes, and snippets.

View sandorkazi's full-sized avatar

Sándor Kazi sandorkazi

  • Budapest
View GitHub Profile
@sandorkazi
sandorkazi / ssh proxy
Created December 29, 2018 00:15
ssh proxy
ssh -D {{proxyport}} -f -C -c aes256-ctr -q $@ sleep 10; firefox -P proxy{{proxyport}} &
#!/bin/bash
exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>log.out 2>&1
# Everything below will go to the file 'log.out':
set -o xtrace
@sandorkazi
sandorkazi / clitools.sh
Created December 14, 2021 00:43
tools I use for hotkeys on a linux desktop
#!/usr/bin/env bash
# rotate keyboard layout
# SHIFT + ALT: rotate_layout
function rotate_layout() {
/usr/bin/xkblayout-state set "-1"
notify-send "Keyboard layout changed"
}
WINEPREFIX=~/_prefix32_wine WINEARCH=win32 WINEDLLOVERRIDES=libglesv2.dll=d wine ShittyElectronApp.exe --disable-gpu --no-sandbox --single-process
@sandorkazi
sandorkazi / winedesktop.sh
Last active April 20, 2024 19:02
desktop startup file creator for wine applications
#!/bin/bash
set -e
if [[ "${NONET}" == "" ]]
then
CMDPREFIX=""
else
CMDPREFIX="firejail --net=none "
fi