- system proxy http://127.0.0.1 10809
- http_proxy http://127.0.0.1:10809
- https_proxy http://127.0.0.1:10809
- dns systemd-resolved /etc/systemd/resolved.conf DNS=192.168.42.129 8.8.8.8 8.8.4.4
- systemd-resolved --status
- systemd custom dns https://wiki.archlinux.org/title/Systemd-resolved
- systemd dns fallback /etc/systemd/resolved.conf.d/fallback_dns.conf FallbackDNS=192.168.42.129 8.8.8.8 8.8.4.4
- adding manual dns using GUI
- restart systemd-service and NetworkManager
- .gitconfig -> privatte repo using personal access token
- https://stackoverflow.com/questions/78354196/how-to-use-v2rayn-in-windows-wsl2-ubuntu
- https://stackoverflow.com/questions/35557489/how-to-set-a-system-wide-proxy-on-ubuntu
- Allow external services to access the v2rayN through firewall confirmation.
- https://unix.stackexchange.com/questions/438206/etc-profile-not-sourced-for-users
- https://superuser.com/questions/1679757/accessing-windows-localhost-from-wsl2
- Remove WSL IP from windows proxy exclude list:
- localhost;127.;10.;172.16.;172.17.;172.18.;172.19.;172.20.;172.21.;172.22.;172.23.;172.24.;172.25.;172.27.;172.28.;172.29.;172.30.;172.31.;192.168.
- For example, I removed 172.26.208.
- put in
~/.bashrc
for both root and non root user. Make sure to keep sync.
This file contains 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
https://dev.deluge-torrent.org/wiki/UserGuide/ThinClient | |
https://deluge.readthedocs.io/en/latest/how-to/systemd-service.html | |
https://forum.deluge-torrent.org/viewtopic.php?f=9&t=49679 |
This file contains 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
/* | |
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, | |
and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. | |
You may assume the two numbers do not contain any leading zero, except the number 0 itself. | |
Example 1: | |
Input: l1 = [2,4,3], l2 = [5,6,4] | |
Output: [7,0,8] | |
Explanation: 342 + 465 = 807. |
This file contains 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
/* | |
We have a list of destinations (cells) and a list of agents. We want to find the closest agent-destination pair. If multiple pairs are found, we choose the agent with the lower priority. Then, the agent walks to the destination and the destination is removed from the list of destinations. The agent then becomes free. | |
We want to assign agents to destinations as soon as possible. We can model this problem in Go as follows: | |
*/ | |
package main | |
import ( | |
"fmt" | |
"sort" |
This file contains 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
Golang: | |
- https://github.com/avelino/awesome-go | |
- https://github.com/tmrts/go-patterns | |
- https://github.com/quii/learn-go-with-tests | |
- https://github.com/inancgumus/learngo | |
- https://github.com/Alikhll/golang-developer-roadmap | |
- https://github.com/hoanhan101/ultimate-go | |
- https://github.com/dariubs/GoBooks | |
- https://golang.org/ref/mod | |
- https://github.com/geektutu/7days-golang |
To switch back between Golang and Scala: init.vim
and init.lua
I followd the guide provided by this guy (https://octetz.com/docs/2019/2019-04-24-vim-as-a-go-ide/) and faced some problems:
- The
vim.plug
should be copied inside~/.config/nvim/autoload/
not~/.var/app/io.neovim.nvim/data/nvim/site/autoload/
. - The command
:GoInstallBinaries
installs the binaries likegopls
(in my case) inside$HOME/go/bin
. Therefore,$HOME/go/bin
must be appended to the$PATH
variable.
if [ -d "$HOME/go/bin" ] ; then
PATH="$PATH:$HOME/go/bin"