I always switched between two branches to make some rebase or cherry-pick and I always typed g co branch_name (git […]
Tag: #tip
Postfix: Mailqueue commands
View mailqueue: mailq Flush mailqueue: postfix flush Clear mailqueue: postsuper -d ALL
PHP Quick Tip: How to check loaded extensions on CLI
In this article we will learn about some of the frequently asked Php programming questions in technical like PHP Quick […]
Use “git revert” rollback a single commit
Use: git revert $SHA1
Spread .gitconfig across multiple files for easy sharing
IMPORTANT: Include feature was introduced in Git 1.7.10+ version Have your ever left your favourite git aliases set at home […]
For those, who forgets about % constructions
%Q (executes #{}) This is an alternative for double-quoted strings, when you have more quote characters in a string.Instead of […]
Vim tip
Use the + to indicate in which line number you want to open your file, e.g. $ vim file.js +40
Check if number power of 2
Recently I found this simple one liner which can save your time & can be efficient to check if number […]
Like array_search, but searches a full string
<?php function array_searchstring( $needle, $haystack, $valueAsNeedle = FALSE ){ foreach( $haystack as $key => $value ){ $needleValue = $needle; if($valueAsNeedle){ […]
How to start PHP built-in web server along with setting environment variable
In this article we will learn about some of the frequently asked Php programming questions in technical like How to […]
Force array key start from 1
If you need an array that starts its key from 1 instead of default zero, this tip can be helpful: […]
Diving into ruby hashes
Nested hashes in ruby are a PITA. if in somewhere along the way one of your keys are missing / […]
The best todo list app for any developer
Make a list of your todos in /etc/motd: * Dump prod.sql – Don’t forget to sanitize * Finish Foo project […]
The most anti-productive code ever
export EDITOR=”/bin/rm” Watch the scripts you install… Original thought @swined
Symbolizing the keys of your Hash using “inject”
I recently came across this awesome ruby “inject” method which is widely used in rails and ruby world to symbolize […]
Run Multiple Skype instances
To use more than one Skype account on the same computer at the same time you need to start a […]
HTML Tables
Pro Tip Don’t use HTML tables as the layout for your site. Just don’t.
Passing parameters in Fabric Tasks
Fabric is a nice project that allows you full automation process and deployment tasks. If you have a task in […]
PHP echo tip
Tired of doing <?php echo $foo; ?> ?<br> Just do <?= $foo; ?> and it will echo the $foo variable! […]
A useful tip for web design novices
The best way to get in touch with web designing is 1 > Try to make design’s on other sites. […]
- 1
- 2