- Inkscape + sozi extension
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 | |
# commencer la recherche avec find -name 'pattern' + options > fichier | |
# puis lancer python ce_script.py 'pattern' 'dest' fichier | |
# Il peut etre necessaire de relancer cette procedure plusieurs fois | |
# max = profondeur de l'arborescence.... | |
#TODO : totalement automatiser le systeme... | |
# entre autres pour accents Windows et autres... | |
# a voir aussi : idem pour l'interieur des fichiers textes |
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 | |
# Args : site à pinguer, joue le morceau de musique $MP3ZIC | |
# dès que ça pingue... | |
PINGRES="Start" | |
MP3ZIC="bourrin.mp3" | |
until [[ $PINGRES == "" ]]; do | |
PINGRES=`ping -c 1 $1 2>&1 | grep nknown` | |
echo ">> Pinged => $PINGRES" | |
sleep 2 | |
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
#!/bin/sh | |
LSPING=`ping -c 3 www.free.fr 2>&1` | |
PINGRES=`echo $LSPING | egrep "100% packet loss|unknown"` | |
if [ "$PINGRES" != "" ]; then | |
echo "--- START NET RELOAD " >> /var/log/netreload | |
poff dsl-provider | |
sleep 45 | |
/sbin/mii-tool -F 10baseT-HD eth1 | |
pon dsl-provider | |
echo "Reason : " >> /var/log/netreload |
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/php | |
<?php | |
mysql_connect("ipserver","user","pass"); | |
mysql_select_db("database"); | |
echo "selected db... ready\n"; | |
$res = mysql_query("SELECT iddat,nomdat,linkdat,owner FROM resdat ORDER BY iddat"); | |
mysql_close(); | |
while($dat = mysql_fetch_array($res)) { | |
unset($result); |
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
echo "Liste des chapitres" | |
read CHAPTERS | |
echo "Nom de base du fichier" | |
read FILENAME | |
# Getting vob by chapter | |
# STARTCHAPTER | |
# ENDCHAPTER | |
# FILENAME | |
for c in $CHAPTERS |
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 | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $local_fs $remote_fs $networking | |
# Required-Stop: $local_fs $remote_fs $networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts supervisord - see http://supervisord.org | |
# Description: Starts and stops supervisord as needed - see http://supervisord.org | |
### END INIT INFO |
via mitmproxy (pip install mitmproxy), sur pseudo point d'accès wifi par exemple :
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sysctl -w net.ipv4.ip_forward=1
mitmproxy -T --host
Fait passer tout le traffic web par mitmproxy
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
@data = new PouchDB(@id) | |
# Code for 2-way sync, à mettre après la synchro des docs de design pour éviter | |
# une "course" potentielle. | |
# <code> | |
# @data = new PouchDB(@access) | |
# @cursync = @data.sync(@access).on("complete", () => | |
# console.log "Replication OK, switching dbs", @id, @access | |
# @cursync.cancel() | |
# @data = new PouchDB(@id) | |
# @cursync = @data.sync(@access, {live: true}).on("change", (data) -> |
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
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
OlderNewer