Skip to content

Instantly share code, notes, and snippets.

View marsyang1's full-sized avatar

marsyang1 marsyang1

  • Taichung,Taiwan
View GitHub Profile
@marsyang1
marsyang1 / ssh_keyscan.py
Created September 26, 2022 15:41
Small Utility class for getting ssh connection remote host public key with md5_fingerprint
#!/usr/bin/env python3
import paramiko
from sshpubkeys import SSHKey
#
# Small Utility class for getting ssh connection remote host public key
# for add Bitbucket pipeline ssh key with md5_fingerprint and sha256_fingerprint
#
def get_hostfile(host):
@marsyang1
marsyang1 / Pritunl_README.md
Last active August 29, 2022 03:25
Install Pritunl on Rocky LInux
@marsyang1
marsyang1 / Custom IntelliJ IDEA VM options
Last active August 23, 2022 12:41
Custom IntelliJ IDEA VM options
# Custom IntelliJ IDEA VM options
# https://www.jetbrains.com/help/idea/tuning-the-ide.html#87971013
-Xms2g
-Xmx8g
-XX:+G1GC
# https://blog.shiftleft.io/understanding-jvm-soft-references-for-great-good-and-building-a-cache-244a4f7bb85d
-XX:SoftRefLRUPolicyMSPerMB=512
-Djava.net.preferIPv4Stack=true
@marsyang1
marsyang1 / TWD97_change_to_WGS.vb
Last active July 6, 2022 02:39
TWD97_change_to_WGS VB測試
' Online VB Compiler.
' Code, Compile, Run and Debug VB program online.
' Write your code in this editor and press "Run" button to execute it.
'
' 參考來源
' https://github.com/Chao-wei-chu/TWD97_change_to_WGS
' 因為朋友需求 , 試試調整成vb結構
'
Module VBModule
@marsyang1
marsyang1 / BitBucket_SSH_GIT_clone_Note.md
Last active September 25, 2020 09:49
BitBucket git clone with SSH key note
@marsyang1
marsyang1 / customConfig_v4.yaml
Last active September 24, 2020 07:14
verdaccio docker note
#
# This is the config file used for the docker images.
# It allows all users to do anything, so don't use it on production systems.
#
# Do not configure host and port under `listen` in this file
# as it will be ignored when using docker.
# see https://verdaccio.org/docs/en/docker#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
@marsyang1
marsyang1 / OpenApiTest.md
Last active April 13, 2020 03:19
Using Openapi code gen to gen java vertx web

Using Openapi code gen to gen java vertx web

docker run --rm -v {PWD}:/local openapitools/openapi-generator-cli generate \
    -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml \
    -g java-vertx-web \
    -o /local/out/java-vertx-web