Skip to content

Instantly share code, notes, and snippets.

View huazhouji's full-sized avatar

Denis Lu huazhouji

  • CMBChina
  • UEsDBBQAAAAIADNdTUfktFA8vwIAADAFAAAMAAAAzfi/qMf9tq8udHh0jVTva9swEP1eyP9wsEEa iOX8atYGNmjaDkK3tWzd5yFbF1uzLBlLTma2/e87yU6a7sNYIKDcPd29e/eUjbaOK8WdNBr20uXw dA/3WGtUMGNLNp9FF4OzwRmvXJShA9nhAaeTyQSjZ4jAqjQCIu7RHwwXUmfgcoTbWu6wtj58k2Na hKCP+I5mG36KgGEeQ0Wk3pq+
View GitHub Profile
http://serverfault.com/questions/236721/bind-process-or-user-to-specific-ip-linux
@huazhouji
huazhouji / hack webkit browser
Created September 30, 2013 03:29
hacking webkit browser
http://gizmodo.com/5966502/amazons-silk-browser-can-be-hacked-to-provide-free-grid-computing
http://www.igvita.com/posa/high-performance-networking-in-google-chrome/
amazon silk browser hack
@huazhouji
huazhouji / node&Q
Created October 25, 2013 05:20
learn Q
var Q = require('./q.js');
var FS = require('fs');
// 方法1 defer
var deferred = Q.defer();
FS.readFile("url.js", "utf-8", function (error, text) {
if (error) {
deferred.reject(new Error(error));
} else {
deferred.resolve(text);
compass:
We usually advise startups to pick a growth rate they think they can hit, and then just try to hit it every
week.
You can use that target growth rate to make all your decisions for you。
The fascinating thing about optimizing for growth is that it can actually discover startup ideas. You can
use the need for growth as a form of evolutionary pressure.
@huazhouji
huazhouji / yum-tmp
Last active December 31, 2015 11:48
iptables -t nat -A POSTROUTING -s 172.16.36.0/255.255.255.0 -j SNAT --to-source `ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk 'NR==1 { print $1}'`;
service iptables save
yum -y install patch make gcc gcc-c++ libtool libtool-libs autoconf libjpeg libjpeg-devel libpng libpng-devel;
yum -y install freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel;
yum -y install bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5;
yum -y install krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap;
yum -y install openldap-clients openldap-servers;
@huazhouji
huazhouji / vpn1
Created December 16, 2013 07:00
vpn1
# this script was written by diahosting and edited by ctohome, free to use
# http://autosetup.googlecode.com/files/AutoVPN-1.0.0.tar.gz
#https://gist.github.com/huazhouji/7981558/raw/23203f771d4a369be757864b1a3547f6bf605f70/yum-tmp
mkdir -p /backup/www.ctohome.com/
cd /backup/www.ctohome.com/
yum remove -y pptpd ppp
@huazhouji
huazhouji / vpn2
Last active December 31, 2015 11:59
vpn2
#!/bin/bash
clear
echo "========================================================================="
echo "AutoVPN v1.0.0 for Linux Written by badb0y "
echo "========================================================================="
echo "A tool to auto-compile & install PPTP VPN on Linux "
echo "For more information please visit http://code.google.com/p/autosetup"
echo ""
echo ""
npm config set user 0
npm config set unsafe-perm true
1,保持高额毛收入的重要性
2,百万财富就在你的脚下,你要做的事情就是去发现它
3,不去争取,就无法得到
4,什么是商业计划?商业计划就是把你想做的事和你的预期目标展示出来
5,从谈论商业目标开始,无论做什么生意,其初始目标都是尽可能久地生存下来,这样才有机会去判断它有没有可行性.
6,你得正确地进行销售,才能免于破产(现金流)
7,为了避免失败,首先得意识到你的资金是有限的
8,你必须确保:第一,你有足够的资金来开始创业;第二,你的资金链必须足够长,这样你才有机会去判断这个业务的可行性
9,对于可行性,我的解释是,一项业务必须能够赚取足够的钱来支付账单,保持收支平衡,靠其本身的赢利能力生存下去
10,从本质上来说,商业计划就是对于如何实现商业目标的最佳预测