Skip to main content

Posts

Showing posts from 2015

How to detect Macbook open and close lid

I find this useful when tracing the time I spent in the computer or when I opened/closed my computer. Find when you opened the lid: $ tail -n 1000 /var/log/system.log | grep "Wake reason: EC.LidOpen (User)" Replace 1000 with the number of lines you wish to backtrack system.log might have already logrotated. gunzip if the past logs are already rotated: $ ls /var/log/system.log* Example: $ gunzip /var/log/system.log.0.gz Find when you closed the lid: $ tail -n 1000 /var/log/system.log | grep "messageType = 0xE0000280" Example line: Nov  1 15:37:07 My-MacBook-Pro kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280

Globe's HOOQ.TV an (unethical) scam!!

After being terribly disappointed with the subscription stage and after also after a very disappointing test drive (at least Netflix tries to be do-no-evil), I am now very disappointed with the un-subscription of HOOQ.tv with Globe. Globe sends me a message: Hi! We'd like to remind you that your free HOOQ will end in 7 days on 10/27/2015. Upon expiry, your subscription will auto-renew to the paid version for P149 per month. If you don't want the paid version, text HOOQ STOP to 8888. before the expiry date. Thank you! I send the HOOQ STOP to 888 and received: Sorry, you have entered an invalid keyword. Please make sure your keyword is correct with no extra characters and spaces. For more info on promos, dial *143#, FREE from your Globe/TM mobile phone. I called Globe Support (211). Here's the scam: - GoSurf 999 comes with the HOOQ Free Plan - After the Free HOOQ Plan (which you did not use because it sucks) expires, it will auto-renew without your consent (!!! UNETHI...

DO NOT USE my-shoppingbox.com (SCAM!!!)

This was an incident last November / December 2014. Yes it is the Black Friday Sale but who is not anticipating it. First the weighting system. For some reason they push it to that extra 0.something of a pound so you pay for the whole pound. It is clearly a scam! Second the filing system. It took them about 23 days just to record in their system that you have received a package. First you should receive a notification from the merchant where you bought the item that they failed to receive the item. This is from USPS: We're writing about the order(s) (#xxx).  USPS attempted to deliver your package but was unable to leave the package unattended. In order to make arrangements for redelivery or pickup at your local Post Office, please visit  USPS Redelivery  and use the package tracking number xxx.  If the package was attempted to be delivered to a business location that was closed during the time of the delivery attempt, USPS will automatically attempt to redel...

aircrack-ng (rt2x00 Mac80211 Linux wireless stack) in Ubuntu Trusty 14.04 (14.0.4.1) LTS

Ubuntu is actually installed in a Virtualbox virtual machine on Mac OS X Yosemite 10.10 (10.10.2). Before proceeding read the important intro below from  http://www.aircrack-ng.org/doku.php?id=cracking_wpa#introduction Install aircrack-ng suite. $ sudo apt-get install aircrack-ng It should install and provide the following. # dpkg -s aircrack-ng Package: aircrack-ng Status: install ok installed Priority: optional Section: net Installed-Size: 2167 Maintainer: Ubuntu Developers Architecture: amd64 Version: 1:1.1-6 Depends: libc6 (>= 2.15), libgcrypt11 (>= 1.4.5), libsqlite3-0 (>= 3.5.9), zlib1g (>= 1:1.1.4), wireless-tools, iw Recommends: wget Description: wireless WEP/WPA cracking utilities  aircrack-ng is an 802.11a/b/g WEP/WPA cracking program that can recover a  40-bit, 104-bit, 256-bit or 512-bit WEP key once enough encrypted packets  have been gathered. Also it can attack WPA1/2 networks with some advanced ...

Use Private Internet Access (PIA) in DigitalOcean

tags: PrivateInternetAccess, Digital Ocean, VPS, VPN This runs the PIA VPN using OpenVPN all from the command line. sudo apt-get install openvpn network-manager- openvpn Not sure if you need  network-manager- openvpn . sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip Extract. Move ca.crt and crl.pem to /etc/openvpn Move "Hong Kong.ovpn" to "/etc/openvpn/Hong Kong.config" for example. Modified the following lines. auth-user-pass /etc/openvpn/login.conf route-up /etc/openvpn/route-up.sh These are the contents of these files. # cat /etc/openvpn/login.conf username password Replace with your username and password. # cat route-up.sh  #!/bin/bash ip route flush table 100 ip route flush cache ip rule add from x.x.x.x table 100 ip route add table 100 to y.y.y.y/y dev ethX ip route add table 100 default via z.z.z.z Replace x.x.x.x with your public IP address, y.y.y.y/y with your subnet. Compute using http://...