Skip to content

Instantly share code, notes, and snippets.

View jasonliu201804's full-sized avatar

jasonliu201804

View GitHub Profile
@jasonliu201804
jasonliu201804 / frpc
Created July 17, 2019 06:00 — forked from NemoAlex/frpc
/etc/init.d/frpc on OpenWrt
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
start_service() {
procd_open_instance "frpc"
procd_set_param command /root/frp/frpc -c /root/frp/frpc.ini
procd_set_param stdout 1
procd_set_param stderr 1
@jasonliu201804
jasonliu201804 / bash-to-zsh-hist.py
Created July 5, 2019 00:55 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time