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 |
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
| // 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
| '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
| #!/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
| #!/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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>AES client/server test</title> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"> | |
| <style> | |
| body { font-size: 80%; padding: 1em; } | |
| form { margin-top: 2em; } | |
| label { display: inline-block; width: 6em; } |
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 | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
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
| #!/usr/bin/env bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "centos/7" | |
| config.vm.provider :virtualbox do |v| | |
| v.memory = 4048 | |
| v.cpus = 2 |
OlderNewer