Skip to content

Instantly share code, notes, and snippets.

View probaldhar's full-sized avatar

Probal Chandra Dhar probaldhar

View GitHub Profile
<?php
/**
* Dimox Breadcrumbs
* http://dimox.net/wordpress-breadcrumbs-without-a-plugin/
* Since ver 1.0
* Add this to any template file by calling dimox_breadcrumbs()
* Changes: MC added taxonomy support
*/
function dimox_breadcrumbs(){
/* === OPTIONS === */
<?php
/**
* Dimox Breadcrumbs
* http://dimox.net/wordpress-breadcrumbs-without-a-plugin/
* Since ver 1.0
* Add this to any template file by calling dimox_breadcrumbs()
* Changes: MC added taxonomy support
*/
function dimox_breadcrumbs(){
/* === OPTIONS === */
go to the /Application/MAMP/Library/bin from the TERMINAL
just write "mv envvars _envvars"
@probaldhar
probaldhar / gist:7de1116a23bc200eeedf
Last active August 29, 2015 14:08
Removing all hidden .* files from a folder
Navigate go that folder with terminal and hit the command
find . -name '.*' -type f -delete
Delete all .git file from a folder - navigate to that folder from the terminal and then hit the command
rm -rf .git
@probaldhar
probaldhar / gist:64e7710bd42dc72511c9
Created November 12, 2014 08:14
Excerpt with CSS
.trim-info {
max-width: 50px;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 15px;
position: relative;
}
@probaldhar
probaldhar / README.md
Last active August 29, 2015 14:09 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@probaldhar
probaldhar / gist:0e55f56b270d7737fde3
Created November 25, 2014 05:19
run multiple skype accounts mac
Step 1: Open a Terminal window
Step 2: cd /Applications/Skype.app/Contents/MacOS/
Step 3: sudo ./Skype
@probaldhar
probaldhar / gist:58881beccad8f263325a
Last active March 30, 2016 08:16
How to Make an OS X Yosemite Boot Installer USB Drive
1. Download the "Install OS X Yosemite.app" form App Store and keep it in Applications Folder
2. Open the Terminal and just hit the command
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
Then It will show the Following message
"Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
@probaldhar
probaldhar / gist:7ce8b7441d47fe315ddb
Created January 2, 2015 09:53
Run Multiple instance of VLC player in mac
Open the terminal and just hit the following command.
open -n /Applications/VLC.app
That's it, easy no?
@probaldhar
probaldhar / gist:1364b304dac3dc3d6af4
Last active August 29, 2015 14:21
Showing the file list which affect the last git commit
Go to the terminal and traverse to that directory and hit the command
git show --pretty="format:" --name-only