Category Archives: Uncategorized

Master Referral Thread

Updated on: 08/17/17 Travel Uber: $5 off each of first 4 rides Referral Code: chig Referral Link: http://www.uber.com/invite/chig Lyft: $10 free credit Referral Code: CHI576689 Referral Link: https://lyft.com/ici/CHI576689 Via ride sharing: $10 credit Referral Code: chi5j7 Android Download,  iOS Download … Continue reading

Posted in Uncategorized | Leave a comment

INT_MAX and INT_MIN in Python

https://stackoverflow.com/questions/7604966/maximum-and-minimum-values-for-ints In Python 2.x, one can use sys.maxint In Python 3.x, it is sys.maxsize Use float float(‘inf’) float(‘-inf’)

Posted in Uncategorized | Leave a comment

Add All Amex Offers in One Second

Update: multiple tabs don’t work perfectly with this method. It may fail to load some offers. Add the offers you are to use manually if you are using multiple tabs. In Chrome, log into your account and load all offers. If … Continue reading

Posted in Uncategorized | Leave a comment

ksh…

Got back to use windows… Use putty ssh to Unix server. Tab completion, up-down arrow history are not working. I thought the putty configuration is not correct.  One hour tuning the config, not working. Then I realized maybe the shell … Continue reading

Posted in Uncategorized | Leave a comment

screen control of a Mac

open  vnc://your-mac-ip-address:5900

Posted in Uncategorized | Leave a comment

wi-fi setup through command line

http://blog.mattcrampton.com/post/64144666914/managing-wifi-connections-using-the-mac-osx Turn off wifi on your macbook from the Mac OSX terminal command line: networksetup -setairportpower en0 off Turn on wifi on your macbook from the Mac OSX terminal command line: networksetup -setairportpower en0 on List available wifi networks from … Continue reading

Posted in Uncategorized | Leave a comment

MySQL

install MySQL Community Server on mac Go here to download the appropriate version of MySQL Community Server for Mac. Install it. Go here to download the appropriate version of Python connector for MySQL. Install it. set password for root user for localhost Syntax is … Continue reading

Posted in Uncategorized | Leave a comment