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
# RESCAN FOR NEWLY ADDED HDS | |
echo "- - -" > /sys/class/scsi_host/host#/scan | |
fdisk -l | |
# NEW LOGICAL VOLUME | |
sudo fdisk /dev/sdb | |
# then create a new partition of type 8e (Linux LVM) | |
# create a phisical volume | |
sudo pvcreate /dev/sdb1 | |
# create new volume group |
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
uname -r | |
sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r` | |
sudo apt purge linux-image-3.19.0-25-generic | |
sudo apt autoremove -y | |
sudo update-grub |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.timeline-container { | |
display: flex; | |
flex-direction: column; |
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
Disk identifier: 0x061e4152 | |
Device Boot Start End Sectors Size Id Type | |
/dev/sda1 * 2048 499711 497664 243M 83 Linux | |
/dev/sda2 501758 20969471 20467714 9.8G 5 Extended | |
/dev/sda3 20969472 122879999 101910528 48.6G 83 Linux | |
/dev/sda5 501760 20969471 20467712 9.8G 8e Linux LVM | |
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
[uwsgi] | |
# Variabili | |
base = /srv/uwsgi_apps/%n | |
logbase = /var/log/uwsgi/apps | |
# Parametri per uwsgi | |
plugin = python3 | |
pythonpath = %(base) | |
virtualenv = %(base)/env |
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
for p in *; do (cd $p; git pull);done |
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
pyvenv-3.4 --without-pip env | |
source env/bin/activate | |
curl https://bootstrap.pypa.io/get-pip.py | python | |
deactivate | |
source env/bin/activate |
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
Url decoder/encoder: http://meyerweb.com/eric/tools/dencoder/ | |
Free pictures: | |
* http://www.freepik.com/ | |
* https://unsplash.com/ | |
* http://dustn.tv/find-free-images/ |
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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"draw_minimap_border": true, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |
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 apt-get install python-software-properties software-properties-common | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer |
NewerOlder