-
Install rust
jail-app is name of jail.
$ jexec jail-app $ pkg install curlDownload and install rustup
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
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
| # Assuming you're a regular user that has doas allowances for vmctl | |
| mkdir -p ~/vmm | |
| cd ~/vmm | |
| # Grab the the one of the virt iso's of Alpine Linux | |
| curl https://nl.alpinelinux.org/alpine/v3.6/releases/x86_64/alpine-virt-3.6.0-x86_64.iso -o alpine-virt-3.6.0-x86_64.iso | |
| # Make a new virtual disk image, change the size as needed | |
| vmctl create alpine-virt.img -s 6G |
You have to do 2 things in order to allow your container to access your host's postgresql database
- Make your postgresql listen to an external ip address
- Let this client ip (your docker container) access your postgresql database with a given user
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
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 | |
| if [ -z "$VERSION" ]; then | |
| echo 'Please specify a version. e.g, "VERSION=3.8.5 sh install-python-alpine.sh"' | |
| exit | |
| fi | |
| export PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz | |
| sudo apk update |
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
| log4j.debug=false | |
| # Default level is INFO | |
| log4j.rootLogger=INFO,StdoutErrorFatal,StdoutWarn,StdoutInfo,StdoutDebug,StdoutTrace | |
| # and for com.some.package.* log everything | |
| log4j.logger.com.some.package=TRACE | |
| log4j.appender.StdoutErrorFatal=org.apache.log4j.ConsoleAppender | |
| log4j.appender.StdoutErrorFatal.layout=org.apache.log4j.PatternLayout |
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
| #remember to edit the .template/openbsd.conf to set the correct version. | |
| pkg install vm-bhyve | |
| zfs create pool/vm | |
| echo 'vm_enable="YES"' >> /etc/rc.conf | |
| echo 'vm_dir="zfs:pool/vm"' >> /etc/rc.conf | |
| vm init | |
| cp /usr/local/share/examples/vm-bhyve/* /mountpoint/for/pool/vm/.templates/ | |
| vm switch create public | |
| vm switch add public em0 |
- Great match and replace tester.
- Haven't used this one much but it looks nice.
- This resource has online RegEx testers for many languages
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
| // Shinobi (http://shinobi.video) - FFMPEG H.264 over HTTP Test | |
| // How to Use raw H.264 (Simulated RTSP) | |
| // 1. Start with `node ffmpegToWeb.js` | |
| // 2. Get the IP address of the computer where you did step 1. Example : 127.0.0.1 | |
| // 3. Open VLC and "Open Network Stream". | |
| // 4. Input the following without quotes : `http://127.0.0.1:8001/h264` and start. | |
| var child = require('child_process'); | |
| var io = require('socket.io'); | |
| var events = require('events'); |
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
| const withCSS = require("@zeit/next-css"); | |
| require('dotenv').config() | |
| const path = require('path') | |
| const Dotenv = require('dotenv-webpack') | |
| const withImages = require('next-images') | |
| module.exports = withCSS(withImages({ | |
| inlineImageLimit: 16384, | |
| webpack(config, options) { |
NewerOlder