This file contains 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 echo " | |
https_proxy='http://10.0.0.1:3128' | |
http_proxy='http://10.0.0.1:3128' | |
ftp_proxy='10.0.0.1:3128' | |
Acquire { | |
HTTP::Proxy 10.0.0.1:3128; | |
FTP::Proxy 10.0.0.1:3128; | |
}; |
This file contains 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
# Generating the private key | |
openssl genrsa -des3 -out server.key 1024 | |
# Generating the certificate single request | |
openssl req -new -key server.key -out server.csr | |
# Removing password from private key | |
cp server.key server.key.org | |
openssl rsa -in server.key.org -out server.key |
This file contains 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups |
This file contains 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
#VIMRC To get background on gnome terminal black set this on .vimrc | |
"Change this to get work Arrow issues from gnome-terminal. | |
set term=xterm-256color | |
"Disable backup of files that are been edited. | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
"set nocompatible |
This file contains 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
user@<yourdomain.com> [~]# ssh-keygen -t dsa | |
Generating public/private dsa key pair. | |
Enter file in which to save the key (/home/user/.ssh/id_dsa): # Press 'enter' here | |
Enter passphrase (empty for no passphrase): # Press 'enter' here | |
Enter same passphrase again: # Press 'enter' here | |
Your identification has been saved in /home/user/.ssh/id_dsa. | |
Your public key has been saved in /home/user/.ssh/id_dsa.pub. | |
The key fingerprint is: | |
6f:c3:cb:50:e6:e9:90:f0:0f:68:d2:10:56:eb:1d:91 |
This file contains 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
#Add new user to deploy your application on Ubuntu 10.10 | |
useradd -s /bin/bash -m app-user # add user | |
passwd app-user # change password | |
#in /usr/sbin/visudo Add line below just below 'root ALL=(ALL) ALL': | |
app-user ALL=(ALL) ALL | |
#change to user early created | |
su app-user |
This file contains 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 adduser --system --no-create-home --disabled-login --disabled-password --group redis | |
$ sudo mv ~/init-deb.sh /etc/init.d/redis | |
$ sudo mkdir /etc/redis | |
$ sudo mv ~/redis.conf /etc/redis/redis.conf | |
$ sudo chmod +x /etc/init.d/redis | |
$ sudo chown -R redis:redis /opt/redis | |
$ sudo touch /var/log/redis.log | |
$ sudo chown redis:redis /var/log/redis.log | |
$ sudo update-rc.d -f redis defaults |
This file contains 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 adduser --system --no-create-home --disabled-login --disabled-password --group juggernaut | |
$ sudo mv ~/juggernaut2-for-init.d-startup.sh /etc/init.d/juggernaut | |
$ sudo chmod +x /etc/init.d/juggernaut | |
$ sudo update-rc.d -f juggernaut defaults |
This file contains 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
description "Juggernaut server" | |
start on started mountall | |
stop on shutdown | |
# Automatically Respawn: | |
respawn | |
respawn limit 99 5 | |
script |
This file contains 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
element.style { | |
background: none repeat scroll 0 0 black; | |
display: block; | |
height: 100%; | |
left: 0; | |
opacity: 0.2; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
z-index: 99; |
OlderNewer