Skip to content

Instantly share code, notes, and snippets.

View chhaileng's full-sized avatar
✌️
<script>alert(1)</script>

Chhaileng Peng chhaileng

✌️
<script>alert(1)</script>
View GitHub Profile
package main
import (
"encoding/json"
"strconv"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/protos/peer"
)
package main
import (
"encoding/json"
"strconv"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/protos/ledger/queryresult"
"github.com/hyperledger/fabric/protos/peer"
)
# Chhaileng Blog
#server {
# server_name chhaileng.com www.chhaileng.com;
# return 301 https://www.chhaileng.com$request_uri;
#}
server {
listen 80;
server_name chhaileng.com www.chhaileng.com;
@chhaileng
chhaileng / .tmux.conf
Last active June 9, 2022 02:25
My tmux configuration
# ~/.tmux.conf
# Change prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
# Join windows
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
import socket
import threading
from datetime import datetime
import sys
import os
import mimetypes
import urllib.parse
import subprocess
respTemplate = """HTTP/1.1 {statusNum} {statusCode}