Skip to content

Instantly share code, notes, and snippets.

View anguschiu1's full-sized avatar

Angus Chiu anguschiu1

View GitHub Profile
@anguschiu1
anguschiu1 / ha-docker-ubuntu.md
Last active September 21, 2022 13:16
[HA on docker]

LG webOS Smart TV

Reference

Automation to WOL

# Example configuration.yaml entry
wake_on_lan: # enables `wake_on_lan` integration

automation:
@anguschiu1
anguschiu1 / bitnami_wordpress.md
Last active September 6, 2022 23:02
[Bitnami management] Managing AWS Lightsail Bitnami Wordpress image

Managing AWS Lightsail Bitnami Wordpress

WordPress Packaged By Bitnami For AWS Cloud

SSH access to

Run the following command to see your application credentials:

sudo cat /home/bitnami/bitnami_credentials

Show PHP version

@anguschiu1
anguschiu1 / httpheadercookies-conversion.md
Created March 16, 2021 03:13
To convert from array of cookies (coming from set-cookie header from response) to a request cookie
@anguschiu1
anguschiu1 / git-ubuntu.md
Last active July 7, 2020 02:45
[How to let Ubuntu trust self-signed root CA for Git] #git #cli #linux
@anguschiu1
anguschiu1 / gen-self-signed-cert-win.md
Last active October 4, 2019 02:40
[SHA-256 Self Signed Certificate for Windows Server 2012 R2]#windows
@anguschiu1
anguschiu1 / nmap.md
Created October 3, 2019 07:14
[NMAP security scanner]#CLI

Detect cipher suite used by server

nmap -sV --script ssl-enum-ciphers -p 443 google.com

anguschiu@HKG280141:/mnt/c/Users/itangusc/dev$ nmap -sV --script ssl-enum-ciphers -p 443 google.com

Starting Nmap 7.60 ( https://nmap.org ) at 2019-10-03 15:12 DST
Nmap scan report for google.com (172.217.24.206)
Host is up (0.0057s latency).
Other addresses for google.com (not scanned): 2404:6800:4005:801::200e
@anguschiu1
anguschiu1 / powershell.md
Last active October 3, 2019 02:54
[PowerShell useful command]#powershell#CLI

Test network connection (Test-NetworkConnection)

tnc google.com -port 80

PS C:\WINDOWS\System32> tnc google.com -port 80


ComputerName     : google.com
RemoteAddress    : 172.217.26.142
RemotePort       : 80
@anguschiu1
anguschiu1 / IIS10https2.md
Last active October 4, 2019 02:37
[Enable good cipher suite on IIS10] Configure IIS10 to enable cipher suite match with HTTP/S standard required by Google Chrome #SSL #https/2
@anguschiu1
anguschiu1 / nginx_docker.md
Last active September 4, 2019 09:43
Play with Nginx docker image

Simplest trial

docker pull nginx
docker run --name some-nginx -p 8080:80 -v html:/usr/share/nginx/html:ro -d nginx

Using Dockerfile (preferred, cleaner)

  1. Create a Dockerfile (e.g. on working directory c:\Users\itangusc\dev
@anguschiu1
anguschiu1 / install-letsecrypt.md
Created April 7, 2019 17:26
[Let's Encrypt setup step in Ubuntu] #ssh #letsencrpt #aws #bitnami