This file contains hidden or 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
{url:'stun:stun01.sipphone.com'}, | |
{url:'stun:stun.ekiga.net'}, | |
{url:'stun:stun.fwdnet.net'}, | |
{url:'stun:stun.ideasip.com'}, | |
{url:'stun:stun.iptel.org'}, | |
{url:'stun:stun.rixtelecom.se'}, | |
{url:'stun:stun.schlund.de'}, | |
{url:'stun:stun.l.google.com:19302'}, | |
{url:'stun:stun1.l.google.com:19302'}, | |
{url:'stun:stun2.l.google.com:19302'}, |
This file contains hidden or 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
mysql -u username -p databasename < filename.sql |
This file contains hidden or 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
#!/bin/sh | |
#set enviroment before start script | |
NODE_ENV=production forever start ./bin/node.js | |
#Reference | |
#https://stackoverflow.com/questions/22312671/node-js-setting-environment-variables | |
#https://stackoverflow.com/questions/9396953/how-can-i-run-node-js-express-in-production-mode-via-sudo |
This file contains hidden or 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
Q: angularjs này không chạy dc trên IE, có cách nào khắc phục lỗi này không | |
A: Với IE bạn đổi hết các directive thành class. Ví dụ ng-model='rikky' | |
thành class="ng-model:rikky;" |
This file contains hidden or 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
http://en.support.wordpress.com/code/posting-source-code/ | |
To accomplish the above, just wrap your code in these tags: | |
[code language="css"] | |
your code here | |
[/code] | |
The language (or lang) parameter controls how the code is syntax highlighted. The following languages are supported: | |
actionscript3 |
This file contains hidden or 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
#For convenience, user should be able to change node_modules directory location via | |
npm config set root DIR. | |
#Check npm_modules | |
npm bin -g | |
#Or | |
npm root -g |
This file contains hidden or 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
sudo apt-get install linux-headers-$(uname -r) build-essential |
This file contains hidden or 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
use wp_yourdb; | |
SELECT ID, user_login, user_pass FROM wp_users; | |
UPDATE wp_users SET user_pass = MD5('new_password') WHERE ID=1 LIMIT 1; | |
-- REF: http://www.wpexplorer.com/reset-wordpress-password-using-mysql/ |
This file contains hidden or 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
Here is a very simple way to turn off DEP | |
- Go to START | |
- Type in CMD but do NOT press enter. | |
- Right click the CMD.exe icon and run as Administrator - verify your command prompt says Windows\System32> | |
- Enter this command exactly as shown | |
This file contains hidden or 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
<?php echo(exec("whoami")); ?> | |
// # chown -R apache_username: wordpress_folder |