This file contains hidden or 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
# Wireguard Configuration for NetworkManager | |
# | |
# sudo vim /etc/NetworkManager/system-connections/wg0.nmconnection | |
# sudo chmod 0600 /etc/NetworkManager/system-connections/wg0.nmconnection | |
# sudo nmcli connection reload | |
# | |
[connection] | |
id=home.rew1red.com | |
type=wireguard |
This file contains hidden or 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
#### Make sure install-pkgs is present in /config/scripts/pre-config.d/install-pkgs | |
#### Pre-Upgrade | |
mkdir -p /config/data/firstboot/install-packages/ | |
cd /config/data/firstboot/install-packages/ | |
curl -OL <https://github.com/WireGuard/wireguard-vyatta-ubnt/releases> | |
#### Upgrade | |
add system image <https://www.ui.com/download/edgemax/edgerouter-4> | |
sudo reboot |
This file contains hidden or 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
import os | |
from django.core.exceptions import ImproperlyConfigured | |
from distutils.util import strtobool | |
def get_env(var_name, default=None, is_bool=False, is_int=False, is_float=False, is_list=False, is_required=False): | |
""" Loads a value from the environment variable <var_name> and returns | |
that value, optionally explicitly cast as a type. | |
If the environment variable is not set, return <default>. |
This file contains hidden or 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 | |
# Check for required project dependencies and install | |
# git hooks bundled with this project | |
echo "" | |
echo "Checking dependencies..." | |
if [ -z "$(command -v git-secret)" ]; then | |
cat <<\EOF |
This file contains hidden or 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 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x7 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x7 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x10 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x10 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x10 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x400 0xe20 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x500 0x10 | |
/usr/bin/hda-verb /dev/snd/hwC1D0 0x20 0x400 0xe20 |
OlderNewer