- Set VNC password:
sudo x11vnc -storepasswd [YOUR VNC PASSWORD] /etc/x11vnc.passwd
- Install Systemd Unit File
sudo cp [path to]/vnc.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable vnc.service
#!/bin/sh | |
# ***** warning ***** warning ***** warning ***** warning ***** warning ***** warning ***** | |
# THIS IS NOT LONGER A GOOD APPROACH TO USE. SCROLL DOWN TO THE COMMENTS TO SEE HOW YOU CAN USE WIREGUARD WITH A DDNS FQDN INSTEAD | |
# ***** warning ***** warning ***** warning ***** warning ***** warning ***** warning ***** | |
# ___ ____ _ _ _ _ | |
# |_ _| _ \ ___ ___ ___ | | | |_ __ __| | __ _| |_ ___ _ __ |
#!/usr/bin/env bash | |
set -e | |
SUBJ="/C=TW/ST=Taiwan/L=TPE/O=Goooooooooogle/OU=Goooooooooogle DevOops Team/[email protected]" | |
ROOT_CA_NAME=GoooooooooogleRootCA | |
ROOT_CA_DAYS=$((365*4)) | |
ROOT_CA_BITS=8192 |
#include <stdio.h> | |
#include <unistd.h> | |
#include <memory.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <linux/types.h> | |
#include <linux/netlink.h> | |
#include <linux/rtnetlink.h> | |
#define BUF_SIZE 8192 |
#!/bin/sh | |
# description: check cht-wifi login status, and auto login if no login. | |
# default script path: /mnt/sda1/mnt/scripts/login-cht-wifi.sh | |
# author: JustinTWD <[email protected]> | |
# date: 2016/03/12 | |
USERNAME=YOUR_CHT_ACCOUNT | |
PASSWD=YOUR_CHT_PASSWORD | |
LOGFILE=/mnt/sda1/log/cht-wifi.log | |
TMPSESSION=/tmp/cht_session.tmp |
/** | |
Handle multiple socket connections with select and fd_set on Linux | |
Raj Abishek <[email protected]> | |
*/ | |
#include <stdio.h> | |
#include <string.h> //strlen | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <unistd.h> //close |
<?php | |
class Db | |
{ | |
public function batchInsert($table, array $rows, array $columns = array()) | |
{ | |
// Is array empty? Nothing to insert! | |
if (empty($rows)) { | |
return true; | |
} |
#!/bin/bash | |
mkdir -p ~/.ssh | |
# generate new personal ed25519 ssh keys | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>" | |
# generate new host cert authority (host_ca) ed25519 ssh key | |
# used for signing host keys and creating host certs |
<?php | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |