What to live by. 2nd Amendment

Shooting Advice
Some words to the wise. Shooting Advice from various Concealed Carry Instructors. If you own a gun, you will appreciate this. If not, you should get one and learn how to use it:

A: Guns have only two enemies: rust and politicians.

B: Its always better to be judged by 12 than carried by 6.

C: Cops carry guns to protect themselves, not you.

D: Never let someone or something that threatens you get inside arms length.

E: Never say “I’ve got a gun.” If you need to use deadly force, the first sound they hear should be the safety clicking off. (I prefer the sound of a slug being chambered when you cock a shotgun)

F: The average response time of a 911 call is 23 minutes, the response time of a .357 is 1400 feet per second.

G: The most important rule in a gunfight is: Always win – cheat if necessary.

H: Make your attacker advance through a wall of bullets . . . You may get killed with your own gun, but he’ll have to beat you to death with it, cause it’ll be empty.
If you’re in a gun fight:
1. If you’re not shooting, you should be loading.
2. If you’re not loading, you should be moving,
3. If you’re not moving’, you’re dead.

J: In a life and death situation, do something . . . It may be wrong, but do something!

K: If you carry a gun, people call you paranoid. Nonsense! If you have a gun, what do you have to be paranoid about? (I call it being prepared)

L: You can say ‘stop’ or ‘alto’ or any other word, but a large bore muzzle pointed at someone’s head is pretty much a universal language. AMEN!

M: You cannot save the planet, but you may be able to save yourself and your family.

If you believe in the 2nd Amendment, please forward.

Turn a Windows 8.1 PC Into a Wi-Fi Hotspot with the Command Prompt

1.   Using Windows’ Command Prompt, you can create a virtual network and share it to provide internet access to other devices. Launch a Command Prompt with Administrator privileges and enter the following command:

  1. netsh wlan set hostednetwork mode=allow ssid=wifi key=password

    Change the SSID value to choose a different name if you want, and use “key” to set a password. This will create a virtual network adapter.

  2. Start the new virtual adapter by running the following command:
    netsh wlan start hostednetwork
  3. Go to the Control Panel and open up the Network and Sharing Center. You should see your new virtual adapter listed there (as shown in the screenshot above). Click the “Local Area Connection” link (or whatever shows up next to “Connections”).
  4. Click the Properties button in the window that appears.
  5. Head to the Sharing tab and then check the “Allow other network users to connect through this computer’s Internet connection” box.
  6. Use the drop down menu to select the virtual network adaptor you’ve created.
  7. Click OK followed by Close.

You should now be able to connect other devices to the network you created and enjoy a shared internet connection.

http://lifehacker.com/turn-a-windows-8-1-pc-into-a-wi-fi-hotspot-with-the-com-1593327340?utm_campaign=socialflow_lifehacker_facebook&utm_source=lifehacker_facebook&utm_medium=socialflow

Install BitTorrent Sync on Debian / Ubuntu Server

First we need to add the repository to the sources.list. Run the following commands as root.

apt-key adv –keyserver keys.gnupg.net –recv-keys 6BF18B15
CODENAME=$(lsb_release -cs | sed -n ‘/lucid\|precise\|quantal\|raring\|saucy\|trusty\|squeeze\|wheezy\|jessie\|sid/p’)
echo “” >> /etc/apt/sources.list
echo “#### BitTorrent Sync – see: http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync-121-1/” >> /etc/apt/sources.list
echo “## Run this command: apt-key adv –keyserver keys.gnupg.net –recv-keys 6BF18B15” >> /etc/apt/sources.list
echo “deb http://debian.yeasoft.net/btsync ${CODENAME:-sid} main” >> /etc/apt/sources.list
echo “deb-src http://debian.yeasoft.net/btsync ${CODENAME:-sid} main” >> /etc/apt/sources.list
unset CODENAME
apt-get update
apt-get -y install btsync

This will fetch the GPG keys for the custom repository, it will then amend your sources list by the new repositories (you can disable the src repository if you want) and finally it installs the server version of BitTorrent Sync as provided by tuxpoldo.

You will then be asked if you want to define a default BitTorrent Sync instance or not. The difference is that with the default instance you run BitTorrent Sync only lets you run BitTorrent Sync as root or btsync user. However if you have for example an existing Samba installation or something else that you want to use to sync data, you might not want to run it as default instance.

If you choose to install as default instance then just accept all the default options except for UPNP. I think that should be enabled in either case.

 

If you choose not to run a default instance then you need to manually create the user config file. There are samples in the /etc/btsync/sample folder but I’d like to provide an own below. Run as root (and maybe alter the file name):

Setup Ubuntu 12.10 x64 web server w/virtual hosting and mysql

SSH into the server as root
or If using a user account then prepend sudo to each of these commands.

Remove Samba if needed

apt-get purge samba -y

Update Server

apt-get update && apt-get upgrade -y

Install Dependencies

apt-get install -y perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python nano php5 libapache2-mod-php5 php5-mcrypt

Download Webmin if needed

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.660_all.deb -O webmin_1.660_all.deb

Install Webmin

dpkg -i webmin_1.660_all.deb

MySql/PHP Install

apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql -y

Apache2 enable Mod-Rewrite

a2enmod rewrite

Then restart apache2

service apache2 restart

PHPMyadmin installation if needed.

apt-get install phpmyadmin

Create the WordPress Database and User

mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER wordpressuser@localhost;
SET PASSWORD FOR wordpressuser@localhost= PASSWORD(“password”);
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘password’;
FLUSH PRIVILEGES;
exit

Tar Commands

untar command = tar -xvzf filename.tar or filename.tar.gz (if gzipped)

tar command = tar -ztvf /folder filename.tar or filename.tar.gz (if you want to gzip the file)

Adding users and Installing and basic setup vsftpd Server on Ubuntu 13.04 Server

  • To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics such as a full name, phone number, etc.
    sudo adduser username
    
    

    vsftpd – FTP Server Installation

    sudo apt-get install vsftpd
    
    I use nano to edit my text files. Use whatever you would like.
    
    nano /etc/vsftpd.conf
    (read through the many options and uncomment or comment out what you would like to use)
    I added this to the bottom of my conf file for security.
    ssl_enable=Yes
    
    The ftpusers file is a list of users not allowed to use ftp. You can edit that file here.
    nano /etc/ftpusers
    
    Once you are finished use this command to restart vsftpd daemon.
    restart vsftpd
    
    By the way, I log in as root so no sudo command needed.  If you are not logged in as root, then prepend each command above with sudo.
    
    Here is a link to the official vsftpd install and setup guide on ubuntu.com
    
    https://help.ubuntu.com/12.04/serverguide/ftp-server.html
    
    
    

Transmission install Ubuntu Server 13.04 x64

What you’ll need
============
A Linux distribution (Ubuntu Server 13.04 x64 is used here)
More information
============
Official website: http://www.transmissionbt.com/

Detailed settings.json: https://trac.transmissionbt.com/wiki
Notes
====
Add the official PPA: add-apt-repository ppa:transmissionbt/ppa

(if this gives an error run) apt-get install software-properties-common

Update your system: apt-get update
Install the daemon: apt-get install transmission-daemon

create a directory for complete and incomplete

Back-up your settings: cp /etc/transmission-daemon/settings.json /etc/transmission-daemon/settings.json.bak

Edit your settings using nano or whatever you like

download-dir —– change to whatever directory you created above
incomplete-dir —– change to whatever directory you created above
rpc-password —- use whatever you like here
rpc-port —- only change if you like
rpc-username — — change to whatever username you want

Creating folders: mkdir -p Downloads/transmission/{complete,incomplete}
Ownership: chown root:debian-transmission -R Downloads/transmission
Permissions: chmod 775 -R Downloads/transmission
Reload the daemon: service transmission-daemon reload

http://www.youtube.com/watch?v=rSYOSJjn8y4

Windows 7: SSD Alignment

Verification

If you want to verify the alignment (e.g. for a SSD where you are not certain whether the proper alignment was done), you use the following commands.

Diskpart
List disk
Select disk n
List partition

Now you should see a result like this.

Partition ### Type Size Offset
————- —————- ——- ——-
Partition 1 Primary 59 GB 1024 KB – but 64KB or any number divisible by 4 is also good

The offset (in KBs) has to be divisible by 4.

Note: Some readers and users of this tutorial got confused because the alignment numbers in a typical Windows7 installation are shown as:

1024KB for the 100MB partition
101MB for the next partition – which is most likely the C partition

They think that 101MB is not divisible by 4 and that there must be a problem. But that is not so. If you convert 101MBs into KBs (multiply by 1024), then the number is divisible by 4 and the partition is aligned.

Replace Dead Raid-5 Disk

1. Drive errors or Failed Redundancy detected.
2. Add new hard drive to computer (you must have an available SATA or whatever connector available to do this).
3. Run “Repair Volume” and select the new drive as the replacement drive to fix the volume.
4. When the system is done “Resyncing” you can remove bad hard drive.
At this point if you want to or need to, you can unplug the new drive (which will cause your array to fault) and then plug it into the old drive’s spot. This is only necessaryfor “housekeeping” if you have your drives in specific spots. When you plug the new drive back in, your volume will resync an all will be good again.
One last thing, because Window Server doesn’t offer a nice way to see which drive is actually “Drive4” or what ever, here is a command line you can run that will display all your drives and their serial number. Open a command prompt and type in…
wmic DISKDRIVE GET DeviceID, SerialNumber
If you want to output that to a text file add this to the end of that (without the curly brackets) { >> “c:\drive list.txt”}
The >> tells your DOS command to output to a file. You can name the file anything you want (within reason of course).