LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Technology’ Category

Removing sensitive data from git

suppose one accidentally commited a file with sensitive data ages ago, others could actually retrieve the passwd easily since git keeps a history of the changes. So the idea is to remove the file from git altogether with file changed history, then recommit the affected file (without sensitive data this time) again.
do a git [...]

Mac nvrm crashing

Many people who bought macs in 2010 are experiencing random crashes with NVRM error. After a bit of digging, the problem could be drilled down into the nvidia card for the 2010 batch of macs. If you are using Nvidia Geforce GT 330M, you might be a victim as well.
“A number of people with [...]

using git ignore

gitignore is helpful when you want to ignore certain files (such as the config files) while working on the files checked out from a git repository. You do not want to commit the config files because other people working on the same repository would also pull your config files which is bad.
Why ignore? because it [...]

Changing screen resolution of Ubuntu in virtualbox

ubuntu allows screen resolutions bigger than 800 x 600. To get this to work under virtualbox, some tricks are needed.

# if not already done, install the desktop.
sudo apt-get install ubuntu-desktop

# once done, need to configure screen resolution. By default ubuntu only allows 800 x 600 or 640 x 480.
# get linux source first.
sudo apt-get install [...]

virtualbox: changing system time in vm

sometimes, changing system time is neccessary to help development in the vm. To do that in the virtualbox guest, we have to run some script in the host,
VBoxManage setextradata [vmname] “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
then reboot host
once booted, change system time in vm and it will work.