Skip to content

Instantly share code, notes, and snippets.

View zhujunsan's full-sized avatar
🌧️
Nothing but the rain.

San zhujunsan

🌧️
Nothing but the rain.
View GitHub Profile
@zhujunsan
zhujunsan / README.md
Created August 9, 2023 10:14
TP-Link TL-IPC44AW-COLOR config file for Synology Surveillance Station

put the other file in folder /volume1/@appstore/SurveillanceStation/@surveillance/@SSCapInfo/IntegrationSupported/

@zhujunsan
zhujunsan / README.md
Last active January 16, 2024 09:15
OpenWRT Dnspod.cn DDNS

OpenWRT DDNS Dnspod.cn Support

Tested OpenWRT DDNS version: 2.8.2-11

Add following two file to file system after installed luci-app-ddns

Change the following files name, replace _ with /

Thanks to https://github.com/nixonli/ddns-scripts_dnspod

@zhujunsan
zhujunsan / Dockerfile
Created April 9, 2021 06:37
CuraEngine Dokcer build
FROM ubuntu:20.04
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y \
build-essential \
cmake \
python3-dev \
python3-sip-dev \
protobuf-compiler \
@zhujunsan
zhujunsan / etc_config_sockd
Last active October 23, 2023 19:22
Openwrt sockd init scripts
config sockd
option external 'wg0'
option internal '127.0.0.1'
option clientmethod 'none'
option socksmethod 'none'
option user_privileged 'root'
option user_notprivileged 'nobody'
option logoutput 'syslog'
option port '10080'
@zhujunsan
zhujunsan / wnPoly.php
Created May 15, 2018 05:44
winding number algorithm for the inclusion of a point in polygon
<?php
class Point
{
public $x;
public $y;
public function __construct($x, $y)
{
$this->x = $x;

花开富贵项目 技术准备


页面

To User

  • Home(首页,含list)
  • ViewAD
@zhujunsan
zhujunsan / 议题.md
Created March 15, 2017 10:25
百姓 饿了么 交流
  1. 服务化粒度 业务层面在选择进行服务化时,是按照核心功能、核心实体,还是一种类型功能?具体参照标准希望有一些经验上的分享,最好有具体的例子或坑。

  2. 服务化迁移 什么样的业务需求会被归纳到服务中,服务提供方和业务开发是怎样高效协作的?

  3. 服务化维护

    1. 服务层改动上线可能会导致业务层的报错,但是业务层具体调用点可能会很多且比较散,如何确保底层改动业务层可以有check的机制。
    2. 因为app平台需要有版本的控制,可能对服务层的依赖也需要版本化。服务层的版本及业务层调用之间如何管理比较合理。
    3. 业务需要看一些数据,一个模块被服务化后,可能服务本身有自己的监控打点,但是不能满足业务层打点需求,公司是否有统一的业务数据监控解决方案,如何考虑的?
@zhujunsan
zhujunsan / config.txt
Created July 19, 2016 00:07
Raspberry Pi 3 Config
# fOr more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
@zhujunsan
zhujunsan / docker_install.sh
Last active February 3, 2016 08:03
Docker install
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge -y lxc-docker
sudo apt-get install -y docker-engine
@zhujunsan
zhujunsan / Using Github Deploy Key.md
Last active April 14, 2024 02:35
Using Github Deploy Key

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key