sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo vi /etc/apache2/mods-enabled/dir.conf
#add index.php to start of line
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
function showStuff(id, text, btn) { | |
//show | |
document.getElementById(id).style.display = 'block'; | |
//hide | |
document.getElementById(text).style.display = 'none'; | |
//hide | |
btn.style.display = 'none'; | |
} |
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> create user 'user'@'host_fqdn_or_ip' identified by 'secret_password'; | |
Query OK, 0 rows affected (0.07 sec) | |
mysql> grant select on database_name.* to 'user'@'host_fqdn_or_ip'; | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> flush privileges; | |
Query OK, 0 rows affected (0.03 sec) | |
mysql> set session old_passwords=0; set password for 'user'@'host_fqdn_or_ip' = password('secret_password'); |
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
var fs = require('fs'); | |
var express = require('express'); | |
var securityOptions = { | |
key: fs.readFileSync('/certs/domain.com.key'), | |
cert: fs.readFileSync('/certs/domain.com.chained.crt'), | |
requestCert: true | |
}; | |
// ....................................................... |
- Install svnserve server in newbox
- Check working directory is fully checked-in at oldbox to subversion, and back it up.
- Dump the subversion repository. This is done with an svnadmin command: at oldbox
svnadmin dump /export/svnrepo/reponame | gzip -9 - > reponame.dump.gz
- Create the new subversion repository ---- at newbox
To create a repository ‘newrepo’ run the svnadmin create command from $SVNHOME/bin. Provide fullpath to the repository at newbox.
svnadmin create /export/svnrepo/newrepo .
- Copy the reponame.dump.gz file up to the newbox server.
- Load the dumpfile into the new repository: at newbox
zcat reponame.dump.gz | svnadmin load /export/svnrepo/newrepo
- From - https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches
git checkout -b [name_of_your_new_branch]
- Push the branch on github :
git push origin [name_of_your_new_branch]
- When you want to commit something in your branch, be sure to be in your branch.
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
function callToEngine(argument) { | |
var Future = Npm.require('fibers/future'); | |
var fut = new Future(); | |
///do stuff | |
engine.on('close', function(code) | |
{ |
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
cd ~/build-output-directory/android/ | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 unaligned.apk your-app-name | |
$ANDROID_HOME/build-tools/23.0.0/zipalign 4 unaligned.apk production.apk | |
# To unsign APK | |
zip -d yourapp.apk "META-INF*" | |
# Creating keystore and then signing app for Play Store |