Skip to content

Instantly share code, notes, and snippets.

View samarpanda's full-sized avatar
👋

Samar Panda samarpanda

👋
View GitHub Profile
@samarpanda
samarpanda / FlushDns.md
Created January 9, 2013 12:42
Flush DNS

Flush DNS OS X 10.8 - 10.7

sudo killall -HUP mDNSResponder
@samarpanda
samarpanda / Man_Pages_Usage.md
Last active December 12, 2015 08:49
Skim through man mages more efficiently!

Using man pages

Use man pager

By default man usages less as its pages. Less can be used

  1. D or Control D - Advance half a page.
  2. U or Control U - Go back half a page.
  3. Space or F or Control F - Advance a page.
  4. B or Control B - Go back a page.
@samarpanda
samarpanda / Configure_LAMP_OSX_10.8.md
Last active December 15, 2015 01:49
Configure LAMP OSX 10.8 Mountain Lion

Configure LAMP in OSX 10.8 Mountain Lion

  1. Install and configure Apache, Mysql, PHP and PHPMyAdmin link
  2. Apple support communities Installing Mysql on Lion link here
  3. Apple support communities : Setting up a local server on Lion and Mountain Lion link here
  4. Setup LAMP on Mountain Lion link here
  5. Download MAMP link here
@samarpanda
samarpanda / Javascript.md
Last active December 15, 2015 01:49
Javascript Into Functions
@samarpanda
samarpanda / Stop_Mysql_Server_Mac_OSX.md
Created May 28, 2013 00:59
Stop Mysql server Mac OS X!

Stop Mysql Server Mac OS X

MacPorts

sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist

Binary Installer

@samarpanda
samarpanda / UC_Browsers_Questions.md
Created July 26, 2013 09:27
Questions to UC browser technical team.

UC browser

  1. How is speed browsing different than normal browsing?
  2. What is the format of web fonts do you support?
  3. Could you share, list of features you support for specific OS and browser versions?
  4. Any quick way to reach your technical team for help? UC web forum doesn't seems to be an easy way for technical help.
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
@samarpanda
samarpanda / dabblet.css
Created July 31, 2013 01:59 — forked from anonymous/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}

Nginx

  • HttpRewriteModule
  1. the name of a variable; false vales are: empty string("", or any string starting with "0");
  2. a comparison of a variable using the = and != operators;
  3. pattern matching with regular expressions:
    ~ performs a case-sensitive match
    ~* performs a case-insensitive match i.e firefox matches Firefox
    !~ and !~* mean the opposite, doesn't match.
  4. checking of existence of a file using the -f or !-f operators;