Refer: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/
cp source destination
cp dir1 dir2
cp -option source destination
cp -option1 -option2 source destination
cp -avr /home/vivek/letters /usb/backup

Technical notes, and other ideas.
Refer: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/
cp source destination
cp dir1 dir2
cp -option source destination
cp -option1 -option2 source destination
cp -avr /home/vivek/letters /usb/backup
Sample nginx configuration changes:
nginx.conf
default
Install nginx in Ubuntu 14.04
Refer: https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-14-04-lts
$ sudo apt-get update
$ sudo apt-get install nginx
It runs under localhost by default.
Manage the Nginx Process
$ sudo service nginx stop
$ sudo service nginx start
$ sudo service nginx restart
Location of default HTML files for nginx:
/usr/share/nginx/html
Change permissions to allow easy access to files:
$ sudo chown -R $USERID:$USERID /usr/share/nginx/html
$ sudo chmod -R 755 /usr/share/nginx/html
You can copy the "build" folder there now for testing, make sure to restart nginx
http://localhost/build/index.html#/?token=1m5rel70oem7e035c2puba6ueo
Additional Setup for Reverse Proxy
Refer: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts
Uncomment One Line
$ sudo gedit /etc/nginx/nginx.conf
### BEGIN SNIPPET 1 OF 2 ###
server_names_hash_bucket_size 64;
### END SNIPPET 1 OF 2 ###
You can edit the default nginx property file here, with 3 reverse proxy examples, and ucomment one line, and restart:
$ sudo gedit /etc/nginx/sites-available/default
### BEGIN SNIPPET 2 of 2 ###
location /hal-cms/ {
proxy_pass https://qabook.hollandamerica.com/hal-cms/;
}
location /hal-ds/ {
proxy_pass https://qabook.hollandamerica.com/hal-ds/;
}
location /hal-dsbooking-server/ {
proxy_pass https://qabook.hollandamerica.com/hal-dsbooking-server/;
}
location /hal-ecommerce/ {
proxy_pass https://qabook.hollandamerica.com/hal-ecommerce/;
}
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
# proxy_pass http://127.0.0.1:8080;
#}
### END SNIPPET 2 0f 2 ###
Verify your nginx configuration
$ sudo nginx -c /etc/nginx/nginx.conf -t
UI Code Monkey Patch Example:
// DO NOT MIGRATE
cmsUrl: 'http://localhost/hal-cms',
dsUrl: 'http://localhost/hal-ds',
ecomm: 'http://localhost/hal-ecommerce',
NOTE: Make sure to restart Nginx after all of your configuration changes
$ sudo service nginx restart
sudo apt-get install sshpass
Syntax of usage:
sshpass -p '' <ssh/scp command>
Windows Keyboard
[Shift] + [Windows] + [Alt] + [V]
Mac Keyboard
[Shift] + [Alt] + [Command] + [V]
Ubuntu
Open Files, and under Network "Connect to Server"
smb://isilonpool01.hq.halw.com
You'll then be prompted to enter your domain and credentials, after that you should be connected.
Mac OS X
With ForkLift, Go, Connect
Your will need the following information:
Protocol:SMB
Server: isilonpool01.hq.halw.com
Username:
Password:
Starting the research
Tutorial: http://lcdev.dk/2012/11/18/raspberry-pi-tutorial-connect-to-wifi-or-create-an-encrypted-dhcp-enabled-ad-hoc-network-as-fallback/
Origin reference to tutorial: http://raspberrypi.stackexchange.com/questions/1074/how-can-i-setup-a-wireless-access-point-or-and-ad-hoc-network
Quick search looking for files not modified a particular day:
$ ls -clRt | grep -i "jboss1" | grep -v 'Feb 13' | more
The magic sauce is really this command
$ ls -clRt
Use this for a full listing with long dates, and not shortened
$ ls -clhRt --time-style long-iso
Launch the following in Ubuntu:
chromium-browser --disable-web-security
For Mac OSX
open /Applications/Google\ Chrome.app --args --disable-web-security
Refer: http://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome
Refer: https://romkey.com/2011/04/23/getting-around-same-origin-policy-in-web-browsers/
Listing Defined Variables
dir() will give you the list of in scope variables:
globals() will give you a dictionary of global variables
locals() will give you a dictionary of local variables
To get the names:
for name in vars().keys():
print(name)
To get the values:
for value in vars().values():
print(value)
If you need to setup an htpasswd file and need the file path
Refer: file-path.php
Create the password file with PGP
Refer: create-password.php
Site reference: http://www.htaccesstools.com/articles/create-password-for-htpasswd-file-using-php/