Skip to content

Instantly share code, notes, and snippets.

View changsijay's full-sized avatar
🐧
I may be slow to respond.

Jay Chang changsijay

🐧
I may be slow to respond.
  • Taiwan
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: vosk
spec:
selector:
matchLabels:
app: vosk
template:
metadata:
@changsijay
changsijay / main.go
Created June 22, 2021 19:14 — forked from metafeather/main.go
Get goroutine id for debugging
# ref: https://play.golang.org/p/OeEmT_CXyO
package main
import (
"fmt"
"runtime"
"strconv"
"strings"
"sync"
)
---
kolla_base_distro: "ubuntu"
kolla_install_type: "binary"
openstack_release: "victoria"
kolla_internal_vip_address: "192.168.1.110"
network_interface: "eno1"
neutron_external_interface: "enx00e04c88eb16"
kolla_enable_tls_internal: "no"
kolla_enable_tls_external: "no"
kolla_external_fqdn_cert: "/data/docker_data/certbot/conf/live/changsijay.com/cert.pem"
@changsijay
changsijay / deploy.log
Last active November 29, 2020 11:58
kops log
I1129 18:24:32.887438 282387 create_cluster.go:713] Using SSH public key: /home/csj/.ssh/id_rsa.pub
I1129 18:24:34.058905 282387 subnets.go:180] Assigned CIDR 10.66.0.32/27 to subnet nova
I1129 18:24:34.058917 282387 subnets.go:194] Assigned CIDR 10.66.0.0/30 to subnet utility-nova
2020/11/29 18:24:34 Unsolicited response received on idle HTTP channel starting with "0\r\n\r\n"; err=<nil>
2020/11/29 18:24:34 Unsolicited response received on idle HTTP channel starting with "0\r\n\r\n"; err=<nil>
2020/11/29 18:24:34 Unsolicited response received on idle HTTP channel starting with "0\r\n\r\n"; err=<nil>
2020/11/29 18:24:38 Unsolicited response received on idle HTTP channel starting with "0\r\n\r\n"; err=<nil>
I1129 18:24:52.760129 282387 apply_cluster.go:471] Gossip DNS: skipping DNS validation
I1129 18:24:55.200725 282387 executor.go:103] Tasks: 0 done / 116 total; 51 can run
I1129 18:24:55.360745 282387 keypair.go:195] Issuing new certificate: "etcd-manager-ca-main"
@changsijay
changsijay / install_janus.sh
Created August 17, 2020 03:45 — forked from anildigital/install_janus.sh
Install Janus WebRTC Gateway on macOS
brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg glib pkg-config gengetopt
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xvf v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr/local/libsrtp
make
sudo make install
git clone git@github.com:meetecho/janus-gateway.git
@changsijay
changsijay / wget.sh
Created August 6, 2020 13:21 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@changsijay
changsijay / index.html
Created October 7, 2019 20:40
gist viewer test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cover - Free Bulma template</title>
<link rel="shortcut icon" href="../images/fav_icon.png" type="image/x-icon">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
@changsijay
changsijay / boostnote2md.py
Created February 14, 2019 11:36 — forked from weaming/boostnote2md.py
Convert boostnote cson format data to markdown
#!/usr/bin/env python3
# coding: utf-8
"""
Author : weaming
Created Time : 2018-05-26 21:32:59
Prerequisite:
python3 -m pip install cson arrow
"""
import json
import os
@changsijay
changsijay / GitCommitEmoji.md
Created November 27, 2018 07:55 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@changsijay
changsijay / pkgs.txt
Created September 30, 2018 09:47
choco_pkgs.txt
nodejs.install
yarn
python
dotnetcore-sdk
golang
jdk10
vscode
sublimetext3