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
################################################################################ | |
# Terraform : install cloudwatch event | |
################################################################################ | |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.27" | |
} | |
} |
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
# | |
# | |
# | |
if [ -t 0 ] | |
then | |
noir='\e[0;30m' | |
gris='\e[1;30m' | |
rougefonce='\e[0;31m' | |
rose='\e[1;31m' | |
vertfonce='\e[0;32m' |
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 | |
#@**************************************************************************** | |
#@ Author : Mathieu GOULIN ([email protected]) | |
#@ Organization : Gadz.org (www.gadz.org) | |
#@ Licence : GNU/GPL | |
#@ | |
#@ Description : | |
#@ | |
#@ Prerequisites : | |
#@ Arguments : |
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 | |
#@**************************************************************************** | |
#@ Author : Mathieu GOULIN ([email protected]) | |
#@ Organization : Gadz.org (www.gadz.org) | |
#@ Licence : GNU/GPL | |
#@ | |
#@ Description : | |
#@ | |
#@ Prerequisites : | |
#@ Arguments : |
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
require ["fileinto"]; | |
################################################################## | |
# Perso | |
################################################################## | |
######### Rappel Anniversaire MSN | |
if header :contains "Subject" "Rappel : Anniversaire de" { | |
fileinto "perso.mail_notif"; | |
stop; | |
} |
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 | |
import pika | |
import sys | |
credentials = pika.PlainCredentials('guest', 'guest') | |
parameters = pika.ConnectionParameters('localhost', | |
5672, | |
'/', | |
credentials) | |
connection = pika.BlockingConnection(parameters) |
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
# v1.0 of a command line uploader for the koken gallery software. | |
# The only non-standard requirement is pyton-requests. | |
import json | |
import requests | |
import os | |
from urllib import quote as quote | |
api_url = "http://yourdomain/api.php?" | |
common_headers = {'X-Koken-Auth':'cookie'} |
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 | |
### BEGIN INIT INFO | |
# Provides: firewall | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: firewall init script | |
# Description: An init script for Graphite's carbon-cache daemon. | |
### END INIT INFO |
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 | |
# | |
# usage: snapshot.sh create|delete|list [snapshotname] | |
# | |
# | |
btrfs_root=/ | |
DST_BACKUPDIR=/backup | |
# ************************************************************************** |