Skip to content

Instantly share code, notes, and snippets.

@zhsso
zhsso / joplin-keymap.json
Created September 2, 2023 04:51 — forked from karlredman/joplin-keymap.json
vim-sh keymap.json for Joplin Terminal Application (CLI)
[
{ "keys": [":"], "type": "function", "command": "enter_command_line_mode" },
{ "keys": ["q"], "type": "prompt", "command": "exit", "cursorPosition": -1 },
{ "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
{ "keys": ["TAB","l"], "type": "function", "command": "focus_next" },
{ "keys": ["SHIFT_TAB","h"], "type": "function", "command": "focus_previous" },
{ "keys": ["UP","k"], "type": "function", "command": "move_up" },
{ "keys": ["DOWN","j"], "type": "function", "command": "move_down" },
{ "keys": ["PAGE_UP","K","u"], "type": "function", "command": "page_up" },
@zhsso
zhsso / .tmux.conf
Created August 21, 2023 14:18 — forked from Godsing/.tmux.conf
Tmux 配置文件(保姆级注释,含部分插件)
# 1. 安装tpm: mkdir -p ~/.tmux/plugins && cd ~/.tmux/plugins && git clone https://github.com/tmux-plugins/tpm
# 2. 按 prefix + I(大写) 来安装插件
# 3. 安装 vim-obsession, 用 vundle 安装或: cd ~/.vim/bundle && git clone git://github.com/tpope/vim-obsession.git --depth 1 && vim -u NONE -c "helptags vim-obsession/doc" -c q
##### 以上需手工执行 #####
## 修改 tmux-prefix 键: ctrl+b --> ctrl+a
set -g prefix C-a
unbind C-b
bind a send-prefix
#set-option -g prefix2 `
<?php
//登陆https://console.online.net/en/api/access,那一串最黑的字符串
const API_CODE='4279482ea1d251b8b40fd5ee83c1a';
//自己设置的密码
const USERNAME='123456';
const PASSWORD='123456';
@zhsso
zhsso / temporary-email-address-domains
Created May 19, 2019 07:30 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@zhsso
zhsso / gist:c5854342e2015796051c5803855dafb3
Created March 22, 2019 05:50 — forked from pawelmhm/gist:8917867
Scrapy spider crawling Stack Overflow
from scrapy.spider import Spider
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import Selector
from scrapy.item import Item, Field
import urllib
class Question(Item):
tags = Field()
answers = Field()
@zhsso
zhsso / Makefile
Created March 1, 2019 08:48 — forked from j0sh/Makefile
iOS static library cross-compile script.
# iOS builds for ARMv7 and simulator i386.
# Assumes any dependencies are in a local folder called libs and
# headers in a local folder called headers.
# Dependencies should already have been compiled for the target arch.
PROJ=untitled
ifeq ($(IOS), 1)
ARCH=armv7
DEVICE=OS
CC_FLAGS=-arch $(ARCH)
@zhsso
zhsso / README-Template.md
Created January 18, 2019 04:01 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

#!/bin/bash
pro='tcp'
NAT_Host=$1
NAT_Port=$2
Dst_Host=$3
Dst_Port=$4
iptables -t nat -A PREROUTING -m $pro -p $pro --dport $NAT_Port -j DNAT --to-destination $Dst_Host:$Dst_Port
iptables -t nat -A POSTROUTING -m $pro -p $pro --dport $Dst_Port -d $Dst_Host -j SNAT --to-source $NAT_Host
@zhsso
zhsso / golang-json-stream-decoder
Created November 2, 2018 10:00 — forked from atedja/golang-json-stream-decoder
Example of using JSON Stream Decoder from STDIN
package main
import (
"encoding/json"
"fmt"
"os"
)
func main() {
decoder := json.NewDecoder(os.Stdin)
@zhsso
zhsso / liverecord.groovy
Created September 11, 2018 06:22 — forked from sunny00123/liverecord.groovy
recording of bilibili live streams
#!/usr/bin/env groovy
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
def OPTIONS = [
UID : 276904, // B站UID
ROOMID : 131985, // 直播间的房间编号,不是地址编号
OUTPUTDIR : "/home/live", // 录制文件输出目录,/D:\ffmpeg\bin/
FFMPEG : "/usr/bin/ffmpeg", // ffmpeg可执行程序位置,/D:\ffmpeg\bin\ffmpeg.exe/
CHECK_INTERVAL: 60, // 直播检测线程的间隔,单位:秒