Skip to content

Instantly share code, notes, and snippets.

View clarencetw's full-sized avatar
🏠
Working from home

Clarence clarencetw

🏠
Working from home
View GitHub Profile
@clarencetw
clarencetw / nginx.conf
Created June 26, 2024 16:13 — forked from nbeguier/nginx.conf
Nginx: TLS Security Configuration 2023
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name __REDACTED__;
ssl_certificate __REDACTED__ ;
ssl_certificate_key __REDACTED__;
# Only return Nginx in server header
server_tokens off;
@clarencetw
clarencetw / README.md
Created January 27, 2023 17:45 — forked from gjreasoner/README.md
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
{
"basics": {
"email": "[email protected]",
"phone": "+886-9-",
"name": "Clarence Lin",
"label": "Programmer",
"summary": "Backend Developer at BRONCI TECHNOLOGY INC. Engaged in website back-end development, DevOps, Linux operating system, cloud system architecture design and cloud system security. Run a personal blog, willing to share technical knowledge, and write articles about the problems encountered in the usual development process to share solutions with readers. Author of AWS CDK 完全學習手冊:打造雲端基礎架構程式碼 IaC(iT邦幫忙鐵人賽系列書)。",
"location": {
"address": "Taiwan, New Taipei City"
},
@clarencetw
clarencetw / deepstream_rt_src_add_del.py
Created November 21, 2021 16:38
deepstream_python_apps 的 runtime_source_add_delete 使用列表處理
#!/usr/bin/env python3
################################################################################
# SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@clarencetw
clarencetw / tv-changer-for-mac.py
Last active July 6, 2023 17:35 — forked from zhenhappy/tv-changer-for-mac.py
TV changer for Mac
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import platform
import random
import re
import string
import sys
@clarencetw
clarencetw / index.js
Created November 5, 2020 07:16
Axios post x-www-form-urlencoded
const axios = require('axios')
const qs = require('querystring')
const requestBody = {
name: 'name',
}
const config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
@clarencetw
clarencetw / brew-install-script.sh
Last active February 19, 2020 09:48
Mac brew cask Install script
#!/bin/sh
# Programming Languages
brew cask install java
brew install node
brew install awscli
brew install go
# Dev Tools
brew install git

Keybase proof

I hereby claim:

  • I am clarencetw on github.
  • I am clarencetw (https://keybase.io/clarencetw) on keybase.
  • I have a public key ASDq0QspU8z9lWfZfZgkQvCDMqbQp6wMHngD4HTkJFxhQgo

To claim this, I am signing this object:

@clarencetw
clarencetw / asrOutput.json
Last active August 24, 2019 19:11
amazon-transcribe-supports-simplified-chinese-using-teaching-and-experience
{
"jobName": "raydu",
"accountId": "869989823608",
"results": {
"transcripts": [
{
"transcript": "帕罗萨利只是两分钟与教师今天教大家跟爸爸这个英文单词相关的,今天呢,是父亲截住全天下的话,我们父亲节快乐,堤坝那么应当负一点快乐。我们都知道爸爸的英文就是发展,要不就是家里不过呢,这两个单词也很常用在一些其他的单子偏远当中,所以今天我就一起来看看有哪一些常用的吧,一发都是,这个非常有很多意思,它可以是数字,它可以是人行,不过在这份发生非个人意思呢,是像是爸爸一样的人通常呢,这就不是指爸爸本身不是亲生父亲,而是这个人虽然跟你没有血缘关系,但是他对你的影响就像是一位父亲一样,教你做人的方式,避免在需要的时候给你协助。那社跟家里多大,我听过十个家里呢,在中国比较接近的发言应该就是包养的干爹,这个时当风可能是在电影当中听到,不过大家一定要记者就现实当中不要乱叫。三家里也是好这个我觉得是一个非常非常有趣的片与,也许的话就是一个问题,所以家里一些修饰,你有一个爸爸的问题,实际上是这样子,通常这个是用来形容女生过度的一列依赖自己的父亲,我们就会称之为家里,也许他的是在成长过程当中没有很完善,跟父亲的亲子关系,或者是呢,太过亲密的亲子关系,导致于说呢,他要不就是很渴望像父亲一样这样子的爱情,要不就是他会很依赖自己的现在的父亲,所以我觉得最接近的中文可能就是这个形容词就是生理上的,那我今天调整男子,其实不是要找这个男子本身,而是他衍生出来还有各式各样,你看在发展前面加上的虚荣差,所以说她还有捞取扣发的就是血缘上的父亲,那如果是在发展,这是继父而发斯特发德尔这是领养你的爸爸,所以他就把一老师合法的都说最后的五个山洪频发的范围,当然如果是放映的,过去是是找到了,但是呢,如果范围本身当做是一个现在是的动词的话他是成立的意思就像是陪审他就是从非常而来的那非常金发的是什么意思呢?就是一个在做成立的一个父亲,也就是我们的国父了那今天如果不是要讲国父你单纯是要讲一个创办人的话呢你一样这个动词后面加上变成是一个人好的以上就是今天的两会终于教师教他才发德尔在哪一些电影我的单子当中有出现然后也顺便听听大家今天是父亲节如果有时间的话也可以抽空回家给可以自己的爸爸了不同于肇事将会不定期跟新记者要订阅频道开启小铃铛才
@clarencetw
clarencetw / brew-php.sh
Created August 18, 2019 14:38
phpstorm-use-xdebug-to-laravel
brew install php