wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo apt update -y
sudo apt install gdebi -y
sudo gdebi teamviewer_amd64.deb
sudo teamviewer passwd PASSWORD_TO_BE_CHANGED
sudo teamviewer daemon enable
teamviewer info
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
# Makefile | |
CC := gcc | |
CXX := g++ | |
CFLAGS := -g -Wall -o3 -std=gnu99 | |
CXXFLAGS := -g -Wall -o3 -std=c++11 | |
LDFLAGS := -g | |
# LDLIBS := -pthread | |
TGT := xxx #(e.g. xxx.cpp in SRC) | |
EXT := .cpp |
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
:: Author: DDL | |
:: Date: Aug. 20, 2018 | |
@ECHO off | |
SETLOCAL enableDelayedExpansion | |
chcp 65001 | |
SET "IP_Addr=140.116.0.0" | |
SET "Sub_Mask=255.255.255.224" | |
SET "D_Gate=140.116.0.0" |
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
version: '3' | |
services: | |
test: | |
container_name: test-tensorflow | |
image: ubuntu:test-tensorflow | |
build: . | |
restart: always | |
command: sh -c "ldconfig /usr/local/cuda/lib64/ /usr/lib/aarch64-linux-gnu/tegra/ && tail -f /dev/null" | |
volumes: |
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
[Unit] | |
Description=An autossh tunnel service | |
After=network-online.target | |
[Service] | |
# -M 0 -> no monitoring | |
# -N -> Just open the connection and do nothing (not interactive) | |
# ServerAliveInterval, ServerAliveCountMax -> check per interval, reconnect if (fail > Max) | |
# ExitOnForwardFailure -> make sure forwardings have succeeded |
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
group "default" { | |
targets = ["autossh", "ffmpeg", "edge"] | |
} | |
target "autossh" { | |
context = "./autossh" | |
dockerfile = "Dockerfile" | |
platforms = [ | |
"linux/amd64", | |
"linux/arm64", | |
"linux/arm/v7" |
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
version: '3' | |
networks: | |
docker_host: | |
external: | |
name: 'host' | |
services: | |
docker-parent: | |
image: docker:latest |
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
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
Get-AppxPackage -AllUsers | where-object { | |
$_.name -notlike "*Store*" -And | |
$_.name -notlike "*Calculator*" -And | |
$_.name -notlike "*ScreenSketch*" | |
} | Remove-AppxPackage | |
Write-Host -NoNewLine 'Press any key to continue...'; | |
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown'); |
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
#! python3 | |
import base64, binascii, json, urllib.request | |
s1 = 'Hello, World!' | |
code = base64.b64encode(binascii.hexlify(s1[::-1].encode('utf-8'))).decode('utf-8') | |
s2 = bytes.fromhex(base64.b64decode(code).decode('utf-8')).decode('utf-8')[::-1] | |
assert s1 == s2 | |
link = json.loads(urllib.request.urlopen("https://file.io", data='text={}'.format(code).encode('utf-8')).read())['link'] | |
link = base64.b64encode(link.encode('utf-8')).decode('utf-8') |
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
// Ref1: https://www.mvdis.gov.tw/m3-emv-plate/webpickno/queryPickNo | |
// Ref2: http://tanzih.blogspot.com/2013/09/4-80-80-yw-6675-6675-80-83.html | |
// Step0: Fill the form and Reset storage in `Ref1` | |
localStorage.removeItem("plates") | |
// Step1: Keep running until ERROR (final page) | |
localStorage.setItem( | |
"plates", | |
JSON.stringify( |
OlderNewer