Skip to content

Instantly share code, notes, and snippets.

View ssinyagin's full-sized avatar

Stanislav Sinyagin ssinyagin

View GitHub Profile
@ssinyagin
ssinyagin / mk_client.sh
Created December 28, 2016 09:49
Create OpenVPN client config with embedded certificates
#!/bin/sh
# FILE: /etc/openvpn/client_configs/mk_client.sh
CLIENT=$1
if [ "$CLIENT" = "" ]; then
echo "missing client name" 1>&2
exit
fi
CL_CRT=/etc/openvpn/easy-rsa/keys/${CLIENT}.crt
@ssinyagin
ssinyagin / wan_bachup_via_lte.sh
Created May 5, 2018 19:15
WAN backup routing via LTE
### WAN backup routing via LTE ###
# A Linux device, such as PC Engines APU, can be equipped with an LTE modem, but
# sometimes it's desirable to use the mobile connection only if the wired
# connection is unavailable.
# The following scenario is for Debian 9 on an APU box, but it's also
# applicable to any other Linux device.
# The DHCP client is tweaked to ignore the DNS server addresses that are
@ssinyagin
ssinyagin / freeswitch-arm.patch
Last active October 2, 2022 02:45
FreeSWITCH patch for ARM architecture
diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh
index 7458934..c525bf7 100755
--- a/debian/bootstrap.sh
+++ b/debian/bootstrap.sh
@@ -298,7 +298,7 @@ Build-Depends:
# bootstrapping
automake (>= 1.9), autoconf, ${libtool_dep},
# core build
- dpkg-dev (>= 1.15.8.12), gcc (>= 4:4.4.5), g++ (>= 4:4.4.5),
+ dpkg-dev (>= 1.15.8.12), gcc-4.7, g++-4.7,