⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connection string setup | |
-------------------------------------- | |
32-bit server or 64-bit | |
HKEY_LOCAL_MACHINE\SOFTWARE\Fog Creek Software\FogBugz\[your FogBugz install directory]\ | |
64-bit server with FogBugz running in 32-bit mode | |
HKEY_LOCAL_MACHINE\Wow6432Node\SOFTWARE\Fog Creek Software\FogBugz[your FogBugz install directory]\ | |
MYSQL Versions | |
-------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql | |
restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Reset MYSQL server on Windows | |
net stop MySQL | |
net start MySQL |
##Direct Call Logic
Description:
1. Caller calls a drumbi phone number.
2. Controller requests for WS to check if Caller ID has called before or first time.
3. If Caller ID called first time :
- Check if Drumbi phone is from Web App, play busy recording then update session to spam.
- Check if Drumbi phone is from other app, then play the connected_caller event recording.
- If Caller ID has called before :
The solution for this is to add the following segment to the WebServer section of your web.config:
<staticContent>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>
This configures IIS to understand that there is a woff mime type that it should care about, which magically makes the 404 go away.
If you get a 500 Internal Server Error due to there already being a mime map for .woff you can add a remove tab before adding the new mimeMap, like so:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1 | |
aptitude install -y mysql-server libmysqlclient-dev | |
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | |
adduser --disabled-login --gecos 'gitlab system' gitlab | |
usermod -a -G git gitlab | |
su - gitlab | |
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa | |
aptitude install gitolite | |
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub | |
su - git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="UTF-8"> | |
<title>Drawing Tools</title> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script> | |
<style type="text/css"> | |
#map, html, body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paste this on your browser console and navigate to routes without refreshing your browser. | |
Once this is inplace whenever you get Warning on setState() it should give you the stack trace. | |
var warn = console.warn; | |
console.warn = function(warning) { | |
if (/(setState)/.test(warning)) { | |
throw new Error(warning); | |
} | |
warn.apply(console, arguments); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes there are modules that you created or you forked from other developer and you modify it to fit your needs. | |
I was on same exat scenario. The steps below will guide you on how to install modules in your application using link from github. | |
*Steps | |
1. Login to your github account | |
2. Go to your module repository | |
3. On your repository page there should be a button "Download ZIP". | |
--- Note: Others suggested that you can just copy the "https" or "ssh" link and do "npm install git+<https/ssh link>". | |
However this does not worked for me. Going back to "Download ZIP" button. Right click it and "Copy Link Address" (Im using chrome browser by the way). | |
4. Before you do an npm install make sure you change some parts of your link. |
OlderNewer