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
blueprint: | |
name: Motion-activated Switch | |
description: Turn on a switch when motion is detected. | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: | |
domain: binary_sensor |
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
find . -name "*.MOV" | while read movie;do | |
# ffmpeg -i "$movie" -f flv "${movie%.mov}.flv" | |
echo $movie | |
dir=`dirname "$movie"` | |
fn=`basename "$movie"` | |
mkdir -p "_images/$dir" | |
#ffmpeg -i "$movie" -vf fps=1 "_images/$dir/${fn}_%3d.jpg" | |
#ffmpeg -i "./Cinéma/H44A4224.MOV" -vf "select='eq(not(mod(n\,100))*pict_type,PICT_TYPE_I)'" -vsync vfr "_images/./Cinéma/H44A4224.MOV_%3d.png" | |
echo "ffmpeg -i \"$movie\" -vf \"select='eq(not(mod(n\,100))*pict_type,PICT_TYPE_I)'\" -vsync vfr \"_images/$dir/${fn}_%3d.jpg\"" | |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet manual | |
iface eth1 inet manual |
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 | |
if [[ ! $3 ]] | |
then | |
echo "Usage ./rproxy.sh name ip port" | |
exit 1 | |
fi | |
if [[ -f /etc/nginx/sites-enabled/$1 ]] | |
then |
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 | |
/sbin/iptables -t nat --flush | |
iptables --flush | |
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j MASQUERADE | |
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE | |
/sbin/iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j SNAT --to PUBLIC_IP |
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
//https://www.linkedin.com/profile/edit | |
a= setInterval("document.querySelector('button.endorse-action').click()",200) |
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
a= function (){var connectBtns = document.getElementsByClassName('bt-request-buffed'); for(var i =0; i < connectBtns.length; i++) { console.log(connectBtns[i].title);connectBtns[i].click()}document.getElementById('container').style.height = "1000px"; window.scrollTo(0,0);window.scrollTo(0,document.body.scrollHeight); } | |
b=setInterval(a,5000) |
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
// linkedin ciblé | |
var win=0; | |
var los=0; | |
a= function (){ | |
var connectBtns = document.getElementsByClassName('bt-request-buffed'); | |
for(var i =0; i < connectBtns.length; i++) { | |
d=connectBtns[i].parentNode.firstChild.firstChild.childNodes[1].firstChild.innerHTML.toLowerCase(); | |
console.log(d); | |
if( d.indexOf("journaliste") >= 0 || d.indexOf("redacteur") >= 0 || d.indexOf("pigiste") >= 0 ){ | |
win++; |
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
//linkedin cancel invitation limit | |
a = function (){ | |
var n = 0; | |
var e = document.getElementsByClassName('entity-checkbox'); | |
for(var i =0; i < e.length; i++) { | |
if (e[i].parentNode.children[1].firstChild.innerHTML.indexOf('@') != -1) { | |
e[i].click(); | |
n++; | |
if (n == 40) break; | |
} |
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
//viadeo: | |
a= function (){var connectBtns = document.getElementsByClassName('js-welcome-back-send-dcr'); for(var i =0; i < connectBtns.length; i++) { console.log(connectBtns[i]);connectBtns[i].click()} window.scrollTo(0,0);window.scrollTo(0,document.body.scrollHeight); } | |
b=setInterval(a,2000) |
NewerOlder