Partial evaluation means to fix some variables in the given code before execution. With a traditional implementation of a compiler or an interpreter, all variables are replaced with its value on each evaluation of that variable. This is because a variable can change at any timing. This is, however, not always true in actual applications. Almost all of large applications has setting variables and data
# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
package main | |
import ( | |
"github.com/opencontainers/runc/libcontainer" | |
"github.com/opencontainers/runc/libcontainer/configs" | |
_ "github.com/opencontainers/runc/libcontainer/nsenter" | |
"os" | |
"runtime" | |
"path/filepath" |
Reduce pdf version in order to use old Acrobat7 for OCR and Image-Size-Reduction | |
(Acrobat 7.0: Menue: "File, reduce-file-size" -> compatibility with 4.0). | |
Acrobat 7.0 was given away for free by adobe, and you may find it in some archives of the internet | |
You can use Acrobat 7.0 perfectly with wine in linux. | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -sOutputFile=out.odf old.pdf | |
Also you can use this to fight some issues with crashing pdf tools. |
# How to Setup Multiple OpenVPN Server to Different VLANs | |
## Server Configs | |
The directories and configuration files that will be used: | |
- /etc/config/firewall | |
- /etc/config/network | |
- /etc/config/openvpn | |
- /etc/openvpn | |
## This is a network topology for this example: |
This shows how to flash OpenWRT
to a GL.iNET GL-AR750 or GL-MT300N_V2 and how to set up eduroam
, openVPN
client, and their hardware switch.
Please read the content for more information.
mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas
>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or
#!/usr/bin/env bash | |
# Bash Helper Script For Kimai Docker | |
# https://www.kimai.org/documentation/docker.html | |
kimai_install() { | |
docker run --name kimai-mysql \ | |
-e MYSQL_DATABASE=kimai \ | |
-e MYSQL_USER=kimai \ | |
-e MYSQL_PASSWORD=kimai \ |