Skip to content

Instantly share code, notes, and snippets.

View dmgl's full-sized avatar
🎯
Focusing

Galochkin D.D. dmgl

🎯
Focusing
  • Russia, Saint-Petersburg
View GitHub Profile
@dmgl
dmgl / update-resolv-conf.sh
Last active September 8, 2020 16:41 — forked from janvojt/update-resolv-conf.sh
Script for updating DNS configuration after openvpn creates a new virtual network interface for forwarding traffic into VPN (place /etc/openvpn/scripts)
#!/usr/bin/env bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.
@dmgl
dmgl / pc.orig
Last active September 8, 2020 16:40 — forked from jonschoning/pc.laptop
Modify /usr/share/X11/xkb/symbols/pc to swap CTRL to ALT key.
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };