Skip to content

Instantly share code, notes, and snippets.

View xgenvn's full-sized avatar

TuNA xgenvn

View GitHub Profile
@xgenvn
xgenvn / Guide.md
Created April 5, 2020 10:45
WPS Spreadsheet with motif

Edit desktop file: /usr/share/applications/wps-office-et.desktop

Exec=sh -c 'GTK_DATA_PREFIX=/usr/share/themes/Yaru/gtk-3.0/gtk.css et "%f"'
@xgenvn
xgenvn / nginx.conf
Last active March 25, 2020 08:45
Auto subdomain deployment with NGINX and SSLIP.IO (can change with NIP.IO, XIP.IO)
server {
listen 80;
listen [::]:80;
server_name ~^(.*)\.11-111-222-223\.sslip\.io;
auth_basic "Web - Auth";
auth_basic_user_file /etc/pwd/.htpasswd;
root /var/www/$1;
@xgenvn
xgenvn / service.conf
Created March 22, 2020 15:20
Unbound DNS for local deveplopment
# Unbound configuration file on windows.
# See example.conf for more settings and syntax
server:
# verbosity level 0-4 of logging
verbosity: 0
# On windows you may want to make all the paths relative to the
# directory that has the executable in it (unbound.exe). Use this.
#directory: "%EXECUTABLE%"
@xgenvn
xgenvn / 01-Learning-Python3.md
Created March 18, 2020 01:48 — forked from kenjyco/01-Learning-Python3.md
Learn Python 3 with Jupyter Notebook

Learning Python 3

This gist provides the learning-python3.ipynb notebook file, which can be viewed and edited in a Jupyter Notebook server to learn Python 3.

Once you load the notebook file to your local jupyter server, you can edit any

@xgenvn
xgenvn / kubia.yaml
Created February 10, 2020 03:12 — forked from DevInTheTrenches/kubia.yaml
Simple Hands-on Introduction to K3S - Lightweight Kubernetes
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: whoareyou-deployment
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: whoareyou
@xgenvn
xgenvn / 三重県.json
Created February 6, 2020 02:11 — forked from hiroara/三重県.json
Japan Prefectures Geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xgenvn
xgenvn / docker-compose.yml
Created February 5, 2020 01:58
Simple serve static with basic auth
version: "3"
services:
aline-fe:
image: pierrezemb/gostatic
restart: unless-stopped
command: -enable-basic-auth -set-basic-auth username:password
volumes:
- ./dist:/srv/http
ports:
@xgenvn
xgenvn / readme.md
Last active February 3, 2020 13:42
Asus Z370i Fan speed Ubuntu
  1. edit /etc/default/grub add acpi_enforce_resources=lax to CMDLINE
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax"
GRUB_CMDLINE_LINUX=""
@xgenvn
xgenvn / install.md
Last active October 16, 2019 16:40
RancherOS - Fast install
  1. Get ISO
  2. Prepare cloud-config.yml, generate ssh and add to the config
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# give the name dev_rancher_local for the key
echo "ssh_authorized_keys:" > cloud-config.yml
echo "  - $(cat dev_rancher_local.pub)" >> cloud-config.yml
  1. Serve cloud-config.yml somewhere accessible by internet
  2. Boot up ISO
Verifying my Blockstack ID is secured with the address 1BfK4NPLD9mVBVneUxjBasbdu7Kk8fUpbU https://explorer.blockstack.org/address/1BfK4NPLD9mVBVneUxjBasbdu7Kk8fUpbU