Skip to content

Instantly share code, notes, and snippets.

@mauromarano
mauromarano / client.py
Created December 12, 2013 18:57
This is a simple irc python bot
# ________ ______ ____ ____ ______
# / _/ __ \/ ____/ / __ )/ __ \/_ __/
# / // /_/ / / / __ / / / / / /
# _/ // _, _/ /___ / /_/ / /_/ / / /
# /___/_/ |_|\____/ /_____/\____/ /_/
# Author: Mauro Marano
# site: mauromarano.it
import socket
@mauromarano
mauromarano / ubuntu_install.sh
Last active May 13, 2016 14:46
This is a simple bash script who initialize a new ubuntu OS
#!/bin/bash
#TO INSTALL: wget https://goo.gl/DgqH0H; mv DgqH0H ubuntu_install.sh; chmod +x ubuntu_install.sh; sudo bash ubuntu_install.sh
function say(){
clear
echo $1
sleep $2
@mauromarano
mauromarano / osxbootableusb.sh
Created January 8, 2014 14:33
Makes a mac osx bootable USB dongle
clear
echo '
____ ______ __ __ __ __ __ __ _______ ____
/ __ \/ ___/ |/ / / /_ ____ ____ / /_____ _/ /_ / /__ / / / / ___// __ )
/ / / /\__ \| / / __ \/ __ \/ __ \/ __/ __ `/ __ \/ / _ \ / / / /\__ \/ __ |
/ /_/ /___/ / | / /_/ / /_/ / /_/ / /_/ /_/ / /_/ / / __/ / /_/ /___/ / /_/ /
\____//____/_/|_| /_.___/\____/\____/\__/\__,_/_.___/_/\___/ \____//____/_____/ '
echo ''
@mauromarano
mauromarano / calgenerator.php
Created January 12, 2014 15:58
classe per generare un calendario sportivo
<?php
/*
// ==============================
// = Realizzato da Mauro Marano =
//= Sito web mauromarano.it =
//= email [email protected] =
// ==============================
@mauromarano
mauromarano / spider.py
Last active August 29, 2015 14:03
Controlla su subito se è stata inserita una moto che risponde a determinati criteri. Se la trova ti notifica via email
#! /usr/bin/env python
#-*- coding: utf-8 -*-
# HOW TO:
# set the top class variables
# crontab -e and add the command to auto-lounch this command each hour: 1 * * * * * python spider.py
from bs4 import BeautifulSoup
import requests
import re
@mauromarano
mauromarano / updater.sh
Last active February 15, 2017 14:40
Updates the dreambox's settings
#!/bin/sh
####################
##### HOW TO USE####
####################
# 1) crontab -e
# 2) paste: 30 21 * * * sh updater.sh
# 3) chmod +x updater.sh
@mauromarano
mauromarano / getotps.sh
Created March 23, 2016 20:13
Esempio di come utilizzare i flags in uno script bash
#!/bin/bash
######################################################################
#This is an example of using getopts in Bash. It also contains some
#other bits of code I find useful.
#Author: Linerd
#Website: http://tuxtweaks.com/
#Copyright 2014
#License: Creative Commons Attribution-ShareAlike 4.0
#http://creativecommons.org/licenses/by-sa/4.0/legalcode
@mauromarano
mauromarano / desktop_organizer.sh
Last active August 2, 2021 13:18
Script per tenere organizzato il desktop
#!/bin/bash
###########################################################################
# AUTHOR: Mauro Marano
# SITE: mauromarano.it/com
# Questo script serve per tenere organizzato il desktop
# Una volta impostate le variabili lui andrà a creare delle cartelle
# Per ogni tipo di file specificato.
# La cosa migliore è farlo girare con un cronjob.
# crontab -e
@mauromarano
mauromarano / passwords_downloader
Last active October 16, 2021 12:21
# Download the top used passwords from passwordrandom.com
#!/bin/sh
# Download the top used passwords from passwordrandom.com
#Set Script Name variable
SCRIPT=`basename ${BASH_SOURCE[0]}`
URL="http://www.passwordrandom.com/most-popular-passwords/page/"
OUTPUT="top_password.txt"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.