This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OVPNCFG=/etc/openvpn | |
RSADIR=/etc/openvpn/easy-rsa | |
IPV6PFX=fda5:e1a5:a801 | |
if [ $# -ne 4 ]; then | |
echo "Usage: $0 VPNID FQDN NETNUM PORT" 1>&2 | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Git::Raw; | |
use IO::File; | |
use Data::Dumper; | |
use File::Path qw(make_path remove_tree); | |
my $dir = '/tmp/gittest'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Git::Raw; | |
use IO::File; | |
use Data::Dumper; | |
my $dir = '/opt/t3/t/repo'; | |
my $repo = Git::Raw::Repository->init($dir, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@scw01:~# dmesg | |
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Linux version 4.5.7-std-4 ([email protected]) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP Tue Jul 12 11:00:06 UTC 2016 | |
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d | |
[ 0.000000] CPU: div instructions available: patching division code | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache | |
[ 0.000000] Machine model: Scaleway - C1 Computing | |
[ 0.000000] bootconsole [earlycon0] enabled | |
[ 0.000000] Memory policy: Data cache writealloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Russian | |
Ukrainian | |
Belarussian | |
German | |
Swiss German | |
French | |
Italian | |
Dutch | |
English | |
Hungarian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@atom02:~# top | |
top - 05:51:44 up 17:21, 1 user, load average: 0.05, 0.07, 0.05 | |
Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie | |
%Cpu(s): 0.4 us, 0.2 sy, 0.0 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st | |
KiB Mem: 2062460 total, 305540 used, 1756920 free, 57668 buffers | |
KiB Swap: 4167676 total, 0 used, 4167676 free, 197616 cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
2285 freeswit -2 -10 44764 17m 5396 S 28.8 0.9 24:02.54 freeswitch | |
4005 root 20 0 4524 1396 1024 R 0.7 0.1 0:00.03 top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<extension name="playdigits_and_echo"> | |
<condition field="destination_number" expression="^test01$"> | |
<action application="answer"/> | |
<action application="sleep" data="500"/> | |
<action application="say" data="en name_spelled iterated 123456789"/> | |
<action application="playback" data="ivr/ivr-hello.wav"/> | |
<action application="say" data="en name_spelled iterated 123456789"/> | |
<action application="delay_echo" data="1000"/> | |
</condition> | |
</extension> |
NewerOlder