Check Email Format in Golang and JavaScript.
使用 Golang 和 JavaScript 检查 Email 格式的合法性。
Code From: GitLab
Check Email Format in Golang and JavaScript.
使用 Golang 和 JavaScript 检查 Email 格式的合法性。
Code From: GitLab
[Unit] | |
Description=Minecraft Server %i | |
After=network.target | |
[Service] | |
Type=forking | |
WorkingDirectory=/srv/minecraft/%i | |
PrivateUsers=true | |
# Users Database is not available for within the unit, only root and minecraft is available, everybody else is nobody |
#!/bin/bash | |
# set -x | |
set -euo pipefail | |
# Required: curl and rsync | |
# Config | |
INSTALL_DIR=VSCode-linux-x64 | |
INSTALL_PATH=/opt/${INSTALL_DIR} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1/dist/leaflet.min.css"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.markercluster@1/dist/MarkerCluster.min.css"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.markercluster@1/dist/MarkerCluster.Default.min.css"> | |
<style> | |
html, body, #map { | |
width: 100vw; | |
height: 100vh; |
You may follow Gentoo Wiki (or other guides) to install steam in chroot first. But you may failed to launch games like Dota2, because steam is using something called soldier
and bwrap
.
The steam.sh
below can make soldier
and bwrap
work by mount chroot_dir
twice. this works fine for me.
Save steam.sh
file to /usr/local/bin/steam
, so you can run steam
command in terminal to launch steam, or add steam deeplink like steam steam://install/xxx
.
To start steam without ask sudo password, add this to your sudoers file:
%wheel ALL=(ALL) NOPASSWD: /usr/local/bin/steam