Skip to content

Instantly share code, notes, and snippets.

View HaoweiCh's full-sized avatar

好为 HaoweiCh

View GitHub Profile
@HaoweiCh
HaoweiCh / frps.service
Created January 23, 2023 03:03
frp-server
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"dns": {
"servers": [
"8.8.8.8"
]
@HaoweiCh
HaoweiCh / install.sh
Last active September 20, 2019 00:02
public hole keeper
apt update && apt -y install curl wget git zsh && sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && ssh-keygen && head ~/.ssh/id_rsa.pub
https://openmaptiles.com/download/WyIxZTcwOTM0Ni0wOTY5LTQ3ZjQtOTYwNi04YTgyMDA2ZTBjYmQiLCItMSIsNzkwMV0.XSLzjA.9cFUZ6PKne93WWiW7VhuSu0mEzE/osm-2017-07-03-v3.6.1-planet.mbtiles?usage=open-source
@HaoweiCh
HaoweiCh / unwxapkg.py
Created September 24, 2018 17:54 — forked from Integ/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
@HaoweiCh
HaoweiCh / about.md
Last active September 21, 2018 23:24
blog

技能栈

- 后端

1 年工作经验,2 年使用经验

  • Python
    • Web框架: Flask / Django
    • 消息队列: Celery
  • 数据库: MySQL / MongoDB / Redis
package com.school;
import java.util.Scanner;
interface Task {
public String getName();
public void run();
@HaoweiCh
HaoweiCh / index.txt
Created January 8, 2018 16:38
rmbp15
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDwU5KfXzTTkudJVn6618zMXSxoYksdSe6Vj7JTqNFqkcsDZSMWtEFwMb4gBSZW4jStgUd8+ec3eiiNdqn2PuxCXlNiHfNMvFhnzW7xiqE9aXTOvEURLGxSGZEQTaqD9FUQzF6JvygzXIhBW1Qd3IfsPioOlXDQ81mzPYaG4s8GZOzgoX73OZgiWPskB4hdo+ShjB1m5qbbqVL4ZrMAt4Uv9+hDfV7NrlXX6y4jus852IfM7kvyKHYJ1PIk+iFTZkjCUjsz3I4p0dbzGmFgAYA+cYlnugf9CUQDaildHLC17UJhaBZIYObbDIxBgbe8eviKb2dpN4jjaJNXQOf/veB [email protected]
@HaoweiCh
HaoweiCh / index.txt
Created January 8, 2018 16:38
rmbp15
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDwU5KfXzTTkudJVn6618zMXSxoYksdSe6Vj7JTqNFqkcsDZSMWtEFwMb4gBSZW4jStgUd8+ec3eiiNdqn2PuxCXlNiHfNMvFhnzW7xiqE9aXTOvEURLGxSGZEQTaqD9FUQzF6JvygzXIhBW1Qd3IfsPioOlXDQ81mzPYaG4s8GZOzgoX73OZgiWPskB4hdo+ShjB1m5qbbqVL4ZrMAt4Uv9+hDfV7NrlXX6y4jus852IfM7kvyKHYJ1PIk+iFTZkjCUjsz3I4p0dbzGmFgAYA+cYlnugf9CUQDaildHLC17UJhaBZIYObbDIxBgbe8eviKb2dpN4jjaJNXQOf/veB [email protected]
@HaoweiCh
HaoweiCh / install.sh
Created December 27, 2017 02:45
mac one step install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install pyenv pyenv-virtualenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshenv
echo 'export PATH=$HOME/bin:/usr/local/bin:$PATH' >> ~/.zshenv
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshenv
echo -e 'if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; \nfi' >> ~/.zshenv