Skip to content

Instantly share code, notes, and snippets.

View pooladkhay's full-sized avatar

MJ Pooladkhay pooladkhay

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pooladkhay on github.
  • I am poulad (https://keybase.io/poulad) on keybase.
  • I have a public key ASAI-uXORUhrk9iwuFwmXZABoaLh_6D447e0JgBsi-mYzgo

To claim this, I am signing this object:

@pooladkhay
pooladkhay / ascii.go
Created June 14, 2021 05:59
Golang - Detect ASCII on keypress
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
@pooladkhay
pooladkhay / pptp.md
Created June 2, 2021 07:27
PPTP VPN Setup on Manjaro Sway
  1. Install pptp client $ sudo pacman -S pptpclient

  2. Add new vpn connection: $ pptpsetup --create my_tunnel --server vpn.example.com --username alice --password foo --encrypt

  3. Route All Traffic by /etc/ppp/ip-up.d: Create a file called 01-routes.sh under /etc/ppp/ip-up.d

  4. Append this lines to the newly created file:

@pooladkhay
pooladkhay / wayland-blurry-fix.md
Last active September 29, 2024 18:19
VSCode blurry text under Wayland

Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland

Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.

In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland, for example you'll be launching VSCode like

$ code --enable-features=UseOzonePlatform --ozone-platform=wayland

This fix can be made permanent by creating a .desktop file or by directly editing /usr/share/applications/visual-studio-code.desktop

@pooladkhay
pooladkhay / sway.config
Created May 31, 2021 20:48
SwayWM bindings for keyboard backlight
# https://github.com/haikarainen/light
#
# Bindings for keyboard backlight
bindsym XF86KbdBrightnessUp exec light -As "sysfs/leds/smc::kbd_backlight" 10
bindsym XF86KbdBrightnessDown exec light -Us "sysfs/leds/smc::kbd_backlight" 10