Skip to content

Instantly share code, notes, and snippets.

@arno608rw
arno608rw / thai-id-card.js
Created September 17, 2020 07:51 — forked from bouroo/thai-id-card.js
Thai National ID Card reader in NodeJS
/* eslint-disable no-console */
/*
* Thai National ID Card reader in NodeJS
*
* Linux
* apt install libpcsclite-dev libpcsclite1 pcscd build-essential
*
* Windows
* yarn global add windows-build-tools
*
dddfffsa
safsafsaf
asfsfsafsafsa
@arno608rw
arno608rw / lwp-cloudflare-dyndns.sh
Last active March 30, 2020 16:34 — forked from Firsh/lwp-cloudflare-dyndns.sh
Cloudflare as Dynamic DNS
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Update these with real values
auth_email="[email protected]"
auth_key="global_api_key_goes_here"
zone_name="example.com"
r3---sn-5fo-c33ez.googlevideo.com
r7---sn-5fo-c33ey.googlevideo.com
r1---sn-5fo-c33ey.googlevideo.com
r2---sn-5fo-c33er.googlevideo.com
r3---sn-5fo-c33ek.googlevideo.com
r1---sn-npoeener.googlevideo.com
r4---sn-5fo-c33ed.googlevideo.com
r4---sn-5fo-c33ez.googlevideo.com
r3---sn-5fo-c33l.googlevideo.com
r7---sn-5fo-c33ee.googlevideo.com
@arno608rw
arno608rw / lamp.sh
Created June 8, 2018 15:08 — forked from thegallagher/lamp.sh
Install LAMP for development on Ubuntu 16.04
#!/bin/bash
# This script is intended for use in development only. It is not optimized or secure for production use.
# Config
export PASSWORD=devbox
# Apache
sudo apt-get -y install apache2
sudo chmod a+rwx /var/www/html # we might want to replace this with group permissions
@arno608rw
arno608rw / install-docker-ubuntu1604.sh
Last active February 3, 2018 03:44 — forked from tsaqib/install-docker-ubuntu1604.sh
Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/arno608rw/f32a83b603962127f05c373d0927c3dd/raw --no-cache | sh
# After running the script reboot and check whether docker is running.
apt-get update -y
apt-get upgrade -y
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D