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/bash | |
| # Reference guides: | |
| # https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF | |
| # https://pve.proxmox.com/wiki/Pci_passthrough | |
| # https://pve.proxmox.com/wiki/Nested_Virtualization | |
| # Remember to turn on SVM in BIOS and disable CSM | |
| # Update packages |
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/bash | |
| # Script for blocking IPs which have been reported to www.badips.com | |
| # via ipsets. | |
| # | |
| # - THIS SCRIPT DOES NOT BLOCK ANYTHING - | |
| # This script only updates ipsets with applicable data from | |
| # badips.com. Actually blocking the ips in that ipset is left | |
| # up to the user (so that you may do so however you prefer). | |
| # | |
| # Additionally, this script does not persist the ipsets through |
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
| 'use strict'; | |
| module.exports = { | |
| name: 'greeter', | |
| /** | |
| * Service settings | |
| */ | |
| settings: {}, |
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
| // Use this hook to manipulate incoming or outgoing data. | |
| // For more information on hooks see: http://docs.feathersjs.com/api/hooks.html | |
| module.exports = function (options = {}) { // eslint-disable-line no-unused-vars | |
| return async context => { | |
| const { data } = context; | |
| // Throw an error if we didn't get a text | |
| if(!data.text) { | |
| throw new Error('A message must have a text'); |
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
| image: someting/myclientfront | |
| ENV: | |
| ROOT_URL=https://testing.testdomain.com/ | |
| API_LOCAL_URL=http://myclientback/api | |
| API_URL=https://testing.testdomain.com/api/ | |
| PORT=3000 | |
| Labels: | |
| traefik.enable=true |
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
| # On the host | |
| ============= | |
| lxc config set openvpn raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm' | |
| lxc config device add openvpn tun unix-char path=/dev/net/tun | |
| # In the container | |
| ================== | |
| 1. mknod /dev/net/tun c 10 200 |
NewerOlder