Skip to content

Instantly share code, notes, and snippets.

View CptnGreen's full-sized avatar

Andrei CptnGreen

  • Sber
  • Moscow, Russia
View GitHub Profile
@CptnGreen
CptnGreen / fix_vpn
Created August 12, 2020 20:19
Run this script to add necessary host for vpn-connection to School 21
#!/bin/bash
sudo echo "domain msk.21-school.ru\
nameserver 192.168.50.130" >> /etc/resolv.conf
@CptnGreen
CptnGreen / fake_fullscreen_toggler.ahk
Created August 11, 2020 15:48
Found this on AutoHotKey forum; need it to run GUI Emacs fullscreen under WSL
#SingleInstance force
;;; Known issues:
;;;
;;; - Weird results for windows with custom decorations such as
;;; Chrome, or programs with a Ribbon interface.
;;;
;;; - Emacs will be maximized behind instead of in front of
;;; the taskbar. Workaround: WinHide ahk_class Shell_TrayWnd
@CptnGreen
CptnGreen / config
Created August 11, 2020 15:42
Ubuntu WSL2 .ssh/config
# github
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_gh
# vogsphere (intra)
Host vog
HostName vogsphere.msk.21-school.ru
User git