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
#include<stdio.h> | |
int main() | |
{ | |
printf("{ \"changed\": false }"); | |
} |
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 perl | |
use v5.14; | |
use strict; | |
use warnings; | |
use utf8; | |
use open IO => ':utf8'; | |
use open ':std'; | |
use Encode; |
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 perl | |
#============================================================================= | |
# | |
# FILE: status.pl | |
# | |
# USAGE: ./status.pl [options] | |
# | |
# DESCRIPTION: Give Nagios status about hosts and services | |
# | |
# REQUIREMENTS: Perl 5.10.1; Term::ANSIColor |
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
[redshift] | |
gamma=0.9 | |
adjustment-method=vidmode | |
location-provider=manual | |
[manual] | |
lat=48.51 | |
lon=2.20 |
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 perl | |
#============================================================================= | |
# | |
# FILE: ratp-trafic.pl | |
# | |
# USAGE: ./ratp-trafic.pl [options] [lines] | |
# | |
# DESCRIPTION: Check RATP reseau status | |
# | |
# OPTIONS: -raw: Display JSON formated data. |
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 perl | |
#============================================================================= | |
# | |
# FILE: dmarc-report-display.pl | |
# | |
# USAGE: ./dmarc-report-display.pl REPORT | |
# | |
# DESCRIPTION: Parse and display a DMARC report | |
# | |
# REQUIREMENTS: Perl 5.10; File::LibMagic, Term::ANSIColor; XML::LibXML |
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 perl | |
#============================================================================= | |
# | |
# FILE: tree2ftp.pl | |
# | |
# USAGE: ./tree2ftp.pl [options] host path [path ...] | |
# | |
# DESCRIPTION: Send a directory to FTP | |
# | |
# OPTIONS: -username: Username |
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/python2 | |
import filecmp | |
import json | |
import os | |
import shutil | |
import tempfile | |
def main(): |
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
#!/bin/sh | |
CGROUP_dir=/sys/fs/cgroup/memory | |
CGROUP_name=${0%.*} | |
CGROUP_limit=550502400 | |
if [ "$EUID" != "0" ] | |
then | |
sudo $0 $@ | |
exit $? |
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
#!/bin/sh | |
if [ "$1" = "-draft1" ] || [ "$1" = "-draft2" ] | |
then | |
shift | |
alias khash='python -c "import sys; import base64; print(base64.b32encode(sys.stdin.readline().strip().encode()).decode().lower())"' | |
elif [ "$1" = "-draft3" ] | |
then | |
shift | |
alias khash='sha224sum | cut -d " " -f 1' |
OlderNewer