Ubuntu 22.04 add wireguad config file to network manager.
nmcli connection import type wireguard file YourConfigFile.conf| <!DOCTYPE html> | |
| <html lang="th"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>รายงานเปรียบเทียบ AI Tools สำหรับ Software Engineer (งบ 8,000 บาท)</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| # pip install asyncio websockets | |
| import asyncio | |
| import binascii | |
| import random | |
| import string | |
| import struct | |
| import websockets | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Baby Pygmy Hippopotamus Game</title> | |
| <style> | |
| body { margin: 0; overflow: hidden; } | |
| canvas { display: block; } | |
| #score { | |
| position: absolute; |
Ubuntu 22.04 add wireguad config file to network manager.
nmcli connection import type wireguard file YourConfigFile.conf| """ | |
| pip install ultralytics pyvirtualcam | |
| Enable virtual camera on Linux: | |
| modprobe v4l2loopback devices=1 max_buffers=2 exclusive_caps=1 card_label="VirtualCam" | |
| # Remove v4l2 | |
| modprobe -r v4l2loopback | |
| """ |
cloudflared tunnel --url localhost:8000| import tensorflow.compat.v2 as tf | |
| import tensorflow_datasets as tfds | |
| tf.enable_v2_behavior() | |
| (ds_train, ds_test), ds_info = tfds.load( | |
| 'mnist', | |
| split=['train', 'test'], | |
| shuffle_files=True, | |
| as_supervised=True, |
| # pip install -U selenium | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| chrome_options = Options() | |
| chrome_options.add_argument("--disable-extensions") | |
| chrome_options.add_argument("--window-size=1920,1080") | |
| #chrome_options.add_argument("--disable-gpu") | |
| #chrome_options.add_argument("--no-sandbox") # linux only |