Run below command change the branch name according to yours, Please pull before you run the below command
$ git branch -m old_branch new_branch
$ git push origin :old_branch
$ git push --set-upstream origin new_branch
$ sudo apt-get install s3cmd
mongodump which
database (or collection) you want to export, and where to export it to.
Mine was the pets database, so my command looks like this:mongodump -d pets -o petsbackup
|
pets database into the petsbackup directory. Take a look at what we have in that directory now:pets ├── animals.bson └── system.indexes.bson 0 directories, 2 filesThe only collection in my
pets database is the animals collection, however you'll see a .bson
file for each collection in your database, plus the system indexes
collection. It is up to you whether you want to take individual
collections, or a whole database, but bear in mind that your choice will
dictate whether you get information about indexes etc when you import
the data elsewhere.mongorestore command, which accepts either a single .bson file representing a collection, or a directory containing multiple files. Here's my example:mongorestore -d pets /path/to/pets
|
---------------------------------------------------------------------------------------------------- sudo netstat -lpn | grep :8080----------------------------------------------------------------------------------------------------tcp6 0 0 :::8080 :::* LISTEN 6782/java------------------------------------------------------------------------------------------------- #!/bin/bash
###
# Need to upgrade an Ubuntu 13.04 server to use OpenSSL 1.0.1g?
# Read and execute this script :D
###
# License: WTFPL, GPLv3, MIT, whatever; just patch your shit
# http://askubuntu.com/questions/444702/how-to-patch-cve-2014-0160-in-openssl
###
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz.asc
gpg --recv-key 0xD3577507FA40E9E2
# Dr Stephen Henson
# IMPORTANT! Manually verify that this is the correct key ID:
# http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xD3577507FA40E9E2
# https://www.openssl.org/about/
gpg --verify openssl-1.0.1g.tar.gz.asc openssl-1.0.1g.tar.gz
if [[ $? -eq 0 ]]; then
tar xzvf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g && sudo ./config && sudo make && sudo make install
# To link the old openssl library to a new version
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
echo
echo "DONE!"
fi
# eof
------------------------------------------------------------------------------------------------
sudo apt-get install linux-backports-modules-cw-3.8-precise-generic
modinfo ath9k | grep 0036
dmesg | grep ath
sudo apt-get install linux-headers-generic build-essential
cd Desktop/backports-20131113/
make defconfig-ath9k
make
sudo make install
cd Desktop/backports-20131113/
make clean
make defconfig-ath9k
make
sudo make install
sudo modprobe ath9k
Not Found
The requested URL /phpmyadmin/ was not found on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80
sudo nano /etc/apache2/apache2.conf
-----------------------------------------------------------------------------------------------------------------------------------------Then add the following line to the end of the file.-----------------------------------------------------------------------------------------------------------------------------------------
Include /etc/phpmyadmin/apache.conf
-----------------------------------------------------------------------------------------------------------------------------------------
Restart the apache server :
-----------------------------------------------------------------------------------------------------------------------------------------
sudo service apache2 restart
-----------------------------------------------------------------------------------------------------------------------------------------
Below is the bash script used to start and stop ss-agent #!/bin/bash ## in .bash_profile SSHAGENT=`which ssh-agent` SSHAGENTARGS="...