Skip to content

Instantly share code, notes, and snippets.

View vinioliveira's full-sized avatar
🤠
Enjoy the day

Marcus Vinícius Oliveira vinioliveira

🤠
Enjoy the day
View GitHub Profile
@vinioliveira
vinioliveira / proxy_configuration_apt-get.sh
Created March 25, 2011 18:35
Configuring proxy to debian distro linux environment.
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;
};
@vinioliveira
vinioliveira / Generating_key_and_cert_openssl.sh
Created March 31, 2011 18:57
Generating key and cert openssl
# 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
@vinioliveira
vinioliveira / .bashrc
Created April 8, 2011 00:59
My custom bashrc
# ~/.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
#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
@vinioliveira
vinioliveira / ssh-copy-id
Created June 22, 2011 11:57
SSH_KEY GENERATE
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
@vinioliveira
vinioliveira / install ubuntu 10.10
Last active September 26, 2015 05:48
Configuring the instalation of nginx+rvm+passenger on Ubuntu 10.10
#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
@vinioliveira
vinioliveira / Additional Commands
Created June 29, 2011 13:10 — forked from lsbardel/redis-server-for-init.d-startup
Init.d Redis script for Ubuntu
$ 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
@vinioliveira
vinioliveira / Additional Commands
Created June 30, 2011 00:04
Init.d Juggernaut2 script for Ubuntu
$ 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
@vinioliveira
vinioliveira / juggernaut-upstart.sh
Created June 30, 2011 01:26
upstart script for juggernaut
description "Juggernaut server"
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn
respawn limit 99 5
script
@vinioliveira
vinioliveira / style.css
Created July 26, 2011 19:09
Block screen effect css
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;