Difference Between Git Checkout, Revert and Reset
These 3 commands that can change/rollback/revert/update a file in your git repository. Whatever you call it.
This post note their differences and their usage.
Continue reading →aka @samwize ¯\_(ツ)_/¯
These 3 commands that can change/rollback/revert/update a file in your git repository. Whatever you call it.
This post note their differences and their usage.
Continue reading →If you use npm for Node, pypi for Python, or bundler for ruby, you will want to use composer, if you still use PHP.
Continue reading →z is a command line script to help you “jump around” to directories.
Very much like cd
– change directory – command, but much more powerful. Watch z in action.
After 15 months of using Octopress, I updated the Greyshade theme I initially used, and also fixed some broken stuff with Octopress.
Continue reading →In the last 2 posts, I setup dotfiles and zsh.
Right after setting up zsh, all the aliases in dotfiles no longer works.
Continue reading →I ran into a situation when I wrongly pushed some commits onto a repository.
Hence I need to remove those commits.
Continue reading →Following the use of dotfiles to improve my productivity, I got into using Zsh.
Zsh is a much better bash.
It is a command line shell that will improve your productivity. For example, it can autocomplete common commands. If you type git a<tab>
, it will prompt add
, am
, etc.. And it has community driven theme.
To get started, go to oh-my-zsh on github.
It’s a new year, and I thought I learn something new to increase productivity.
I stumbled upon Dotfiles when watching a Google I/O 2012 video (awesome video on web tools btw).
Dotfiles are hidden files, such as .bash_profile
and .aliases
, which you edited to suit your workflow for your Mac.
Because everyone has their own ‘dotfiles’, it makes sense to share.
Continue reading →This is a tutorial for the bare minimum to use Jade templating in Express.
If you have already created a basic Express app, this is all you need to use Jade.
Continue reading →I have recently faced a critical issue with my iMac (early 2013 model).
It crashes/shutdown randomly and suddenly. It’s as if the power cord has been disconnected.
And it doesn’t restart when I press the power on button. I have to switch off the power socket, wait for a few minutes, then it can be turned back on. Sometimes, if I try to turn back on too early, I can notice my optical mouse lighted up briefly, and the iMac still doesn’t start. These symptons make me wonder is it a power issue..
These were some thing I did.. which still have not solve the issue..
If you know something else that I should do, I will greatly appreciate!
Continue reading →