-
- Sempre buscar pela documentação oficial, este documento é um tutorial
que pode não te atender conforme tenha novas atualizações do processo de instalação. - As referências estão no final do documento.
- Sempre buscar pela documentação oficial, este documento é um tutorial
- 04CE 38DA 9A9E 0A3F
In JavaScript projects, I used to use dotenv so that I could put local environment variables in a .env
file for local development. But dotenv requires you to add code to your project.
With direnv, you can put local env vars in a .envrc file and those env vars are loaded automatically in the shell.
For these steps, it is assummed that you have installed Git Bash on Windows. I also use VSCode as my editor.
- Create a folder such as
c:\tools
to put thedirenv.exe
file and add it to the Windows PATH
If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
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
[Match] | |
Name=can* | |
[CAN] | |
BitRate=250000 | |
RestartSec=100ms | |
# Put this file in: "/etc/systemd/network/" and then run "sudo systemctl enable systemd-networkd" to enable systemd-networkd | |
# Now start systemd-networkd: "sudo systemctl start systemd-networkd" | |
# Credit: https://github.com/linux-can/can-utils/issues/68#issuecomment-584505426 |
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
-- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <[email protected]> | |
-- licensed under the terms of the LGPL2 | |
-- character table string | |
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
-- encoding | |
function enc(data) | |
return ((data:gsub('.', function(x) | |
local r,b='',x:byte() |