Pour avoir plusieurs politiques de retentions suivant les répertoires, il faut créer plusieurs fichiers de config et lancer en cron rsnapshot en précisant la conf (-c)
Attention à bien changer le snapshot_root
-
http://askubuntu.com/questions/97817/rsnapshot-using-different-intervals-for-different-directoriestoto ALL=(ALL) NOPASSWD: ALL
-
https://links.infomee.fr/?519lVgapply function > Special > draw non zero as infinite
-
http://codeascraft.com/2010/12/08/track-every-release/Bien! Le hubot peut écouter en http, on peut donc intéragir assez simplement avec lui depuis un autre programme avec curl par exemple :)
https://github.com/github/hubot/blob/master/docs/scripting.md#http-listener
https://github.com/nandub/hubot-irc
https://gist.github.com/oremj/3702073
-
https://github.com/github/hubot/tree/master/docsctrl+shit+m
pratique pour tester le responsive d'un site!
-
https://links.infomee.fr/?JFLpKQUn client irc en command line orienté bot, très simple à mettre en place : ii
-
http://www.rogdham.net/2013/04/07/git-irc-bot-in-5-minutes.enAide à comprendre pas mal de chose concernant graphite/statsd
-
https://github.com/etsy/statsd/blob/master/docs/graphite.mdSuite d'outils bien pratique pour tester/vérifier/debug ses whisper files, en particulier whisper-dump et whisper-fetch
-
https://github.com/graphite-project/whisper10 fois plus rapide! J'ai du mal à y croire..
-
http://www.networkworld.com/article/2459286/why-tcp/why-tcp/ip-is-on-the-way-out.html#tk.rss_allUn candidat pour remplacer abp/abe ghostery ?
-
https://www.eff.org/privacybadgerPetite révision du vocabulaire, ça fait pas de mal ;)
-
http://fr.wikipedia.org/wiki/Domaine_de_diffusion<?php
$extensions = get_loaded_extensions();
foreach($extensions as $ext) {
echo "$ext --> ";
echo phpversion($ext);
echo "\n";
}
-
https://links.infomee.fr/?vo6lAQOk.. Les gratuitois reply servent à mettre à jour pro-activement les tables arp des petits voisins..
This can be caused by devices that perform an unsolicited, or Gratuitous ARP replies.
Load balancers, High Availbility pairs (dual NICs in a host, dual firewalls, etc) will send a broad cast ARP reply to update everyones ARP table so that know what MAC to send frames for the shared IP address.
On peut aussi se servir de request pour faire ça en demandant qui a notre propre IP (http://infomee.fr/vrac/files/index.php?f=54ad62c46482e)
Pour rappel les gratuitous sont des paquet arp "gratuit" qu'on forge en prévention.
Les "gratuitous" request servent à vérifier que l'ip qu'on veut utiliser n'est pas prise (si pas de réponse).
-
https://supportforums.cisco.com/discussion/10941681/arp-reply-broadcast:o je connaissais pas.. C'est super bien ce truc, thx arnaudb!
ctrl+shift+e
-
https://links.infomee.fr/?DOGGaQapt-get install debhelper devscripts
git clone https://github.com/etsy/statsd.git
cd statsd
dpkg-buildpackage
dpkg -i ../<deb file>
-
https://github.com/etsy/statsd/issues/161def archive_to_bytes(archive):
def to_seconds(s):
SECONDS_IN_A = {
's': 1,
'm': 1 60,
'h': 1 60 60,
'd': 1 60 60 24,
'y': 1 60 60 24 365,
}
return int(s[:-1]) * SECONDS_IN_A[s[-1]]
archive = [map(to_seconds, point.split(':'))
for point in args.archive.split(',')]
SIZE_METADATA = 2 * 4 + 4 + 4 # 16 [!2LfL]
SIZE_ARCHIVE_INFO = 3 * 4 # 12 [!3L]+
SIZE_POINT = 4 + 8 # 12 [!Ld]+
size = 0
for resolution, retention in archive:
size += SIZE_ARCHIVE_INFO + SIZE_POINT * retention/resolution
if size:
size += SIZE_METADATA
return size
if name == 'main':
import argparse
parser = argparse.ArgumentParser(
description="Calculates the size of the whisper storage for the given \
archive (in resolution:retention format, e.g. 1m:24h,5m:3m)"
)
parser.add_argument(
'archive',
help="Archive in storage-schemas.conf format (resolution:retention)"
)
args = parser.parse_args()
print "{} >> {} bytes".format(args.archive, archive_to_bytes(args.archive))
-
https://gist.github.com/jjmaestro/5774063#file-whisper-calculator-py