Skip to content

Instantly share code, notes, and snippets.

View wenzong's full-sized avatar

Zhou Wenzong wenzong

  • Shanghai, China
View GitHub Profile
@wenzong
wenzong / config.toml
Created June 24, 2021 15:47
上海市个人非营业性客车额度拍卖自动化脚本
debug = false
[position]
addpricex = 1051
addpricey = 485
inputverifycodex = 992
inputverifycodey = 656
submitguessstep = 20
submitpricex = 1059
submitpricey = 615

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@wenzong
wenzong / F420.md
Created May 18, 2017 02:20
ZXHN F420 V3

Download config.bin

  • $ open http://192.168.1.1/manager_dev_config_t.gch
  • Download config.bin

Download & Compile offzip

Many thanks to Luigi Auriemma.

# -*- mode: ruby -*-
# vi: set ft=ruby :
vagrant_root = File.dirname(__FILE__)
Vagrant.configure("2") do |config|
config.vm.provider "docker" do |d|
d.name = "mysql"
d.image = "mysql/mysql-server:5.6"
d.ports = ["3306:3306"]
@wenzong
wenzong / ne
Created January 29, 2016 04:33
#!/bin/bash
if [[ $# -le 0 ]]; then
echo "Usage: `basename $0` <command> [agrument]..."
exit 1
fi
COMMAND_DIR="$(npm bin)"
if [ ! -f "$COMMAND_DIR/$1" ]; then
zero = lambda f: (lambda x: x)
def plus_one(n):
return lambda f: (
lambda x: f((n(f))(x))
)
def order_plus(m, n):
return lambda f: (
lambda x: (m(f))((n(f))(x))
@wenzong
wenzong / nginx.conf.md
Created August 18, 2015 06:27
nginx configuration

user

user  nobody;

processes and connections

worker_processes 1; # set to the CPU core number, try this: `grep processor /proc/cpuinfo | wc -l`
@wenzong
wenzong / ansible-cluster-sshkey.md
Last active August 29, 2015 13:56
Add all cluster-machines' public keys to single machine's authorized_key, then the machines in the cluster can ssh to each other.

We need:

  • Master(Manage, controller) machine can ssh to each machine in the cluster.(Use ssh-copy-id)
  • Ansible>=1.4.5

inventory file:

host1
host2
...

R is really great for statistic analysis. However, I just use it for drawing graphs. Ooops~~~


How to install R

As for me, I have tried two ways.

  • apt-get
  • from source code
@wenzong
wenzong / idea.md
Last active January 29, 2016 07:17

README driven doc. And generate whole road map.

A
|------B
|      |-----C
|      |-----D
|
|------E
 |-----F