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
csvfix sql_insert -en -sep "|" -ifn -hdr "TRUNCATE TABLE dbo.IGM_IMP_CLIFOR_TESTDOCremo" -s "\ngo\n" -f 1:CHIAVE,27:DES_DOC,28:DES_NOTE -t IGM_IMP_CLIFOR_TESTDOC -o a.txt io_clifor_testdoc.dat |
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-django | |
sudo apt-get install python-django-registration | |
sudo apt-get install python-django-south | |
sudo apt-get install python-imaging | |
sudo apt-get install python-pyicu python-git python-lxml | |
sudo apt-get install python-cairo python-gtk2 python-libravatar | |
sudo apt-get install python-pip |
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
#!/usr/bin/python | |
import os | |
import time | |
def sposta_mouse(x,y): | |
os.system('xdotool mousemove ' + str(x) + ' ' + str(y)) | |
def click_sinistro(): | |
os.system('xdotool click 1') | |
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
#!/usr/bin/env python | |
# this is better : https://github.com/mkzero/unsplash-download | |
import urllib | |
import pprint | |
import os | |
def getImageURLs(pageIndex): | |
f = urllib.urlopen('http://unsplash.com/page/' + str(pageIndex)) |
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
#!/bin/sh -x | |
#cambia lo sfondo del desktop | |
#mettendo l'immagine del giorno prelevata dal sito della nasa | |
#change wallpaper with nasa image day | |
DIR=$HOME/Immagini/WALL | |
if [ ! -d "$HOME/Immagini" ]; then | |
mkdir "$HOME/Immagini" | |
if [ ! -d "$DIR" ]; then | |
mkdir "$DIR" | |
fi |
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
#!/bin/sh | |
# Scarica dal cafe' la foto piu' recente e la mette come sfondo di gnome | |
# Prerequisiti: | |
# 1. Installare xmlstarlet e imagemagik (Ubuntu:sudo apt-get install curl xmlstarlet imagemagick / Fedora:yum install xmlstarlet) | |
# 2. Mettere nel crontab (se si vuole) | |
# Note: | |
# http://www.ioncannon.net/linux/81/5-imagemagick-command-line-examples-part-1/ | |
# http://www.fmwconcepts.com/imagemagick/autocaption/index.php | |
# http://imagemagick.org/script/color.php |
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
git config --global credential.helper osxkeychain |
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
curl https://prowl.weks.net/publicapi/add -F apikey=a357c85c7dc3bb866d9f7a1d145ae76d1ed91e47 -F description="Errore in aggiornamento file banca" -F application="Facebook" |
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
#!/bin/bash | |
export RSYNC_PASSWORD=mypassword | |
rsync -av --delete --progress /media/teopost/Stage_1000/Fotografie [email protected]::nasrs | |
rsync -av --delete --progress /media/teopost/Stage_1000/Immagini [email protected]::nasrs | |
rsync -av --delete --progress /media/teopost/Stage_1000/Musica [email protected]::nasrs | |
rsync -av --delete --progress /media/teopost/Stage_1000/Montaggi\ Video [email protected]::nasrs | |
rsync -av --delete --progress /media/teopost/Stage_1000/Video [email protected]::nasrs |
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
#!/bin/bash | |
export sourcedir=/media/teopost/Stage_1000 | |
export destdir=/media/NAS/dati | |
rsync -av --delete --progress $sourcedir/Fotografie $destdir | |
rsync -av --delete --progress $sourcedir/Immagini $destdir | |
rsync -av --delete --progress $sourcedir/Musica $destdir | |
OlderNewer