View office.py
#!/usr/bin/env python
# olefile (formerly OleFileIO_PL) version 0.42 2015-01-25
#
# Module to read/write Microsoft OLE2 files (also called Structured Storage or
# Microsoft Compound Document File Format), such as Microsoft Office 97-2003
# documents, Image Composer and FlashPix files, Outlook messages, ...
# This version is compatible with Python 2.6+ and 3.x
#
# Project website: http://www.decalage.info/olefile
View DBus-spotify
#!/usr/bin/env python3
try:
# http://click.pocoo.org/5/why/
import click
import dbus
from colored import fg, stylize
except:
import sys
print("Need to install python-click, dbus and colorama")
sys.exit(-1)
View install-telegram.zsh
#!/usr/bin/env zsh
file_dest="/tmp/tdesktop.tar.xz"
url="https://telegram.org/dl/desktop/linux"
out_dir="/tmp/Telegram"
file_bin="/tmp/Telegram/Telegram"
if [[ -f "${file_dest}" ]]; then
rm -rf "${file_dest}"
fi
View Thunderbird unibo
###############################################
Configurazione per Thunderbird per mail Unibo #
###############################################
# Server IMAP
Server Name: outlook.office365.com
Port: 993
Security: SSL/TLS
Authentication: Normal Password
View install_printer
#!/bin/bash
################################################################
# Install a printer on Arch Linux with cups using command line #
# Used for a HP PSC 1510 with default driver #
################################################################
yaourt -S cups
sudo systemctl start org.cups.cupsd
View dosnslookup.py
#!/usr/bin/python2
from threading import Thread
from threading import Event
from threading import stack_size
from Queue import Queue
from Queue import Empty
import os
View RaspberryPI B+.md

Raspberry

This is a simple reminder on how to install and configure Raspbian on a RaspberryPi B+ (it should works for all Raspberry versions).
Once you had dd bs=1M if=image.img of=/dev/sdX the downloaded image to the SD card, powered the Raspberry, expanded the filesystem, setted up the locale and the time, enable and configured SSH, overclocked, removed the login to GUI and doing all other stuff with raspi-config you should be able to connect the raspberry to the network.

Prepare the necessary

Update the system:
sudo apt-get update
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew upgrade
Now install some packages:
sudo apt-get install build-essential vim vim-youcompleteme git php5-fpm nginx postgresql mariadb screen ranger wireshark tightvnc weechat weechat-plugins rxvt-unicode-256color most cpufrequtils

View trashUpdate
#!/bin/bash
if [ `id -u` -ne 0 ]; then
printf "The script must be run as root!\n"
exit 1
fi
# Adds a progressbar
TEMPFILE=/etc/apt/apt.conf.d/00newconftemp
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
View trashConnect
#!/bin/bash
dhcp=$(sudo dhclient eth0)
sudo killall wpa_supplicant
sudo ifconfig eth0 up
sudo wpa_supplicant -c trash.conf -D wired -i eth0 &
sleep 10s
while [ "$dhcp" = *"File exists"* ];
do
View trashConfig
#!/bin/bash
read -p 'Username: ' mail
read -s -p 'Password: ' password
passphrase=$(echo -n $mail | iconv -t utf16le | openssl md4 | sed 's/^.* //')
echo -e "\nFile di configurazione creato"
echo -e "network={
key_mgmt=IEEE8021X
eap=PEAP
identity=\"$mail\"