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.
import torch | |
import torch.distributed as dist | |
import torch.multiprocessing as mp | |
from torch.utils.data import IterableDataset, DataLoader | |
class DistributedIterableDataset(IterableDataset): | |
""" | |
Example implementation of an IterableDataset that handles both multiprocessing (num_workers > 0) |
library(tidyverse) | |
library(rvest) | |
page <- read_html("https://en.wikipedia.org/wiki/List_of_most_popular_given_names") | |
page %>% | |
html_nodes("table") %>% | |
map(html_table, fill = TRUE) %>% | |
map2_dfr(rep(c("male", "female"), 5), ~ mutate(.x, gender = .y)) %>% | |
as_tibble() %>% |
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.
// https://github.com/AdguardTeam/AdGuardHome/blob/master/openapi/openapi.yaml | |
old_blist = []; | |
blist = [ | |
"https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts", | |
"https://v.firebog.net/hosts/static/w3kbl.txt", | |
"https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt", | |
"https://someonewhocares.org/hosts/zero/hosts", | |
"https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts", |
#!/bin/bash | |
set -e | |
#apt-get install -y curl | |
cat << "EOF" | |
___ _ _ ____ _____ _ _ _ | |
|_ _| \ | / ___|_ _|/ \ | | | | | |
| || \| \___ \ | | / _ \ | | | | | |
| || |\ |___) || |/ ___ \| |___| |___ | |
|___|_| \_|____/ |_/_/ \_\_____|_____| |
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
opkg update | |
opkg install tar | |
cd / | |
tar -cvpzf /mnt/data/rootfs.tar.gz --exclude=/mnt/data/rootfs.tar.gz --one-file-system / | |
tar -cvpzf /mnt/data/overlay.tar.gz --exclude=/mnt/data/overlay.tar.gz --one-file-system /overlay-boot/ | |
# if not full tar package just busybox tar | |
cat <<EOT >> /tmp/exclude.list | |
sys | |
tmp |
# run this once, then reload, and then skip this | |
!apt install rustc | |
!gdown --id 1PULtTc-2e9z4bswh_SQqL5oy_4JpfV7c | |
!chmod +x evcxr_jupyter | |
!./evcxr_jupyter --install | |
// install dependency | |
:dep cmd_lib | |
use cmd_lib::run_cmd as sh; |
I couldn't wait until the official guide on how to do this is released, so I tried to figure it out and this is how I got it working.
The .env
file for docker-compose
[email protected]
PL_SERVER_PORT=3000
PL_SERVER_URL=https://example.com/api
PL_PWA_PORT=8080
PL_PWA_URL=https://example.com
Presuming you have access to the Sourcegraph Docker container and the container name is sourcegraph
:
docker container exec sourcegraph psql -U postgres sourcegraph -c 'SELECT id, username, passwd FROM users'
$ID
variable: