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 / replace.sh
Last active December 17, 2015 22:29
替换一堆文件中的字符串
find -name '*.conf' | xargs sudo sed -i "s/\(\$1\..*\.baixing\.cn\)$/\1\$2/g"
find -name '*.conf' | xargs sudo perl -pi -e 's|com\$|com(.*)\$|g'
find -name '*.conf' | xargs sudo sed -i "s/\(s\..*\.baixing\.cn\)\//\1:3005\//g"

Fade

临时文本缓存服务

存数据

Url:http://pi.nxtl.cn/fade/ 参数:

  • k,key,键名,最长不超过250个字符,必填
  • v,value,键值,最长不超过1M,必填
@zhujunsan
zhujunsan / network
Last active June 20, 2024 09:46
OpenWRT WiFi Client
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
@zhujunsan
zhujunsan / basic GET
Last active August 29, 2015 14:06
ESP8266通信指令
AT+RST
AT+GMR
AT+CWMODE=1
AT+CWMODE?
AT+CIPCLOSE
@zhujunsan
zhujunsan / CPU freq
Last active August 29, 2015 14:07
Raspberry Pi Related
echo -n "CPU freq: ";cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq;\
echo -n "CPU max: ";cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;\
echo -n "CPU min: ";cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

百姓网是免费的,绝大多数用户都可以不花一分钱在我们网站上卖东西,租房子,找朋友。
与此同时,每天百姓网都有几万人自助地为我们付钱,而我们为他们提供增值服务。
那么问题就来了,这些增值服务是哪里来的呢?

这时候,营收组的攻城狮就出现了。他们不仅todo

岗位职责

  • 准时,高质量地完成模块/功能
  • 对自己的代码、对你需要Review的代码负责。
  • 可有效编写测试用例,确保代码质量,功能与可维护性
@zhujunsan
zhujunsan / install_pptpd.sh
Created October 20, 2014 08:05
Install PPTPd
#!/bin/sh
if [ `id -u` -ne 0 ]
then
echo "please run it by root"
exit 0
fi
apt-get -y update
apt-get -y install pptpd || {
@zhujunsan
zhujunsan / simpleGet.lua
Created January 8, 2015 13:36
Http Request Lib on NodeMCU
DEBUG = true
function getWpath(address, port, path)
if conn_busy == false or conn_busy == nil then
conn_busy = true
local conn=net.createConnection(net.TCP, 0)
conn:on("receive", function(conn, payload)
if (DEBUG) print("received") end
if string.len(payload) < 1460 then conn:close() end
@zhujunsan
zhujunsan / main.cfg
Created April 1, 2015 13:36
SpaceEngine main configuration file for low end computer
//////////////////////////////////////////////////
// SpaceEngine main configuration file //
//////////////////////////////////////////////////
// display settings
WindowSizeX 1040 // window width
WindowSizeY 744 // window height
WindowPosX 1592 // window x position
WindowPosY -132 // window y position
Maximized true // start with a maximized window
@zhujunsan
zhujunsan / Using Github Deploy Key.md
Last active June 4, 2024 10:08
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