ssh -L 10001:localhost:10000 youruserhere@server01
Notes on Nginx
http://people.adams.edu/~cdmiller/posts/nginx-reverse-proxy-cache/
Protected: 3TB HDD Seagate Barracuda ST3000DM001
Protected: Google Calendar ICAL Private URL
Laptop Battery Estimator For Windows
http://research.microsoft.com/en-us/downloads/fe9e10c5-5c5b-450c-a674-daf55565f794/default.aspx
How to Calculate Electricity Fees For Your Laptop or Notebook
was bored, did calculation to see how much it cost to run laptop 24/h for a year. According to average stats, it’s around 55W. 55K=0.055kW , Power rating (kilowatts) X Time on each day (24 hours) X Cost per kWh (assuming 0.20 included delivery fees) * 31 (days in a month) * 12 (month in year) = $98.208 so around $100 bucks a year
Windows Live Calendar Gadget
Effective Time Managment, Download at http://wlcalendargadget.codeplex.com/
Synchronize with Google’s ICAL in Private mode under setting.
Source: Randy Pausch Lecture: Time Management
Ubuntu OneIric
Disable History with Dash using
#! /bin/bash DELPATH=/home/USERNAME/.local/share rm $DELPATH/recently-used.xbel touch $DELPATH/recently-used.xbel rm $DELPATH/zeitgeist/activity.sqlite zeitgeist-daemon --replace
mike_art03a
Interesting discussion going on here. I find Bell’s costs to be exorbitantly ridiculous! I run a hosting a company with over 30 gigabit fibre links in 4 countries (The US, UK, Sweden and Australia) and they average me about $1600 per link, and they’re not metered! Heck, gigabit fibre links in Sweden are only about $700 a piece! So 30 x $1600 = $48000/mth for 30 gigabits of total connectivity. I was thinking of renting part of a data centre in Montreal, but rackspace is little expensive in Canada.
PHP Script to dump source
I’ve always been awed at the simplicity of PHP, and been trying to find a good way to dump source without copy and pasting the file into a text/plain format.
Steps:
1. Create a source function ie
<?php
/************************************
Date: January 21, 2012
Author: LittleBearZ
Website: http://www.littlebearz.com/
E-mail: open-sourced@littlebearz.com
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
****************************************/
/***********************************
* The below view_source(); calls upon
* the big method to be used
* whereas function view_source(){}
* defines what's in this function
************************************/
view_source();
function view_source()
{
if (isset($_GET['source']))
{
header("Content-type: text/plain");
readfile(__FILE__);
}
}
?>
2. How to use
In a web browser, visit to that PHP page with ?source as ending, ie.
Snippet from Internet
Zhang “I’ve come up with a perfect solution: You can come to China to download all your pirated media, and we’ll go to America to discuss politically sensitive subjects.”
