This file contains hidden or 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
import urllib2 | |
import urllib | |
import json | |
ip_jeedom = '192.168.XXX.XXX' | |
Api_key = 'XXXXXXXMyAPIKYEXXXXX' | |
def Jeedom(id, value): | |
parameters = { |
This file contains hidden or 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 | |
""" jeedom.py : How to jeedom value in python """ | |
__author__ = "Rémi" | |
__date__ = "2015/07/24" | |
import urllib | |
This file contains hidden or 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
/** | |
* Voir Les logs | |
*/ | |
CREATE VIEW LOGS AS SELECT * FROM Log INNER JOIN Job ON Log.JobId = Job.JobId; | |
/** | |
* Voir tous les resultats | |
*/ | |
CREATE VIEW Results AS SELECT * FROM Client JOIN Job ON Client.ClientId = Job.ClientId; | |
/** |
This file contains hidden or 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
# Stops All running virtual machines : | |
for i in $(virsh list |sed -n "s/.*\s\(.*local\).*running/\1/ p") | |
do | |
virsh destroy $i | |
done |
This file contains hidden or 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
/** | |
* Voir Les logs | |
*/ | |
CREATE VIEW LOGS AS SELECT * FROM Log INNER JOIN Job ON Log.JobId = Job.JobId; | |
/** | |
* Voir tous les resultats | |
*/ | |
CREATE VIEW Results AS SELECT * FROM Client JOIN Job ON Client.ClientId = Job.ClientId; | |
/** |
This file contains hidden or 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
# Set the user: | |
user="rd2b" | |
# Lists gists URLS: | |
curl -s https://api.github.com/users/$user/gists | sed -n 's/.*git_pull_url.*"\(.*\)".*/\1/ p' | |
# Lists github repositories: | |
curl -s https://api.github.com/users/$user/repos | sed -n 's/.*clone_url.*"\(.*\)".*/\1/ p' | |
# Clone all gists : |
This file contains hidden or 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
# Please consult /usr/share/portage/config/make.conf.example for a more | |
# detailed example. | |
CFLAGS="-O2 -march=k8 -pipe" | |
CXXFLAGS="${CFLAGS}" | |
CHOST="x86_64-pc-linux-gnu" | |
# These are the USE flags that were used in addition to what is provided by the | |
# profile used for building. | |
USE="apng alsa bash-completion consolekit dbus embedded gudev hwdb libkms |
This file contains hidden or 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
# Update this to feet your own seedbox: | |
seedbox="mafreebox.freebox.fr" | |
login="freebox" | |
password="XXXXXXX" | |
URL="http://$seedbox:9091/transmission/rpc" | |
curl -v $URL -u $login:$password -d '{"arguments":{"blocklist-enabled":true}, "method":"session-set"}' | |
curl -v $URL -u $login:$password -d '{"arguments":{"blocklist-url":"http://www.bluetack.co.uk/config/level1.gz"}, "method":"session-set"}' | |
curl -v $URL -u $login:$password -d '{"method":"blocklist-update"}' |