Skip to content

Instantly share code, notes, and snippets.

@chengkun
chengkun / frp systemd.md
Last active June 30, 2020 15:14 — forked from ihipop/frp systemd.md
FRP systemd 启动脚本

My Version, Allow run as nobody AND ports below 1024

/etc/systemd/system/frps.service

[Unit]
Description=FRP Server Daemon

[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
@chengkun
chengkun / bash-history-to-zsh-history.py
Created May 3, 2019 03:17 — forked from dllud/bash-history-to-zsh-history.py
Import bash history (has no timestamps) to zsh history.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-history-to-zsh-history.py >> ~/.zsh_history
import sys
import time
def main():
@chengkun
chengkun / .hubotrc
Last active May 24, 2016 13:49
hubot startup script on ubuntu 14.04 with slack adapter .hubotrc
#---------------- HUBOT CONFIG -----------------------------------
export HUBOT_ADAPTER="slack"
export HUBOT_SLACK_TOKEN="place_your_slack_token_here"
#---------------- END HUBOT CONFIG --------------------------------