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
use 5.010; | |
use strict; | |
use warnings; | |
use open qw/:std :utf8/; | |
use utf8; | |
my @moins; | |
my @plus; | |
sub uu ($$) { |
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: tlsrpt-report-display.pl | |
# | |
# USAGE: ./tlsrpt-report-display.pl REPORT | |
# | |
# DESCRIPTION: Parse and display a TLS-RPT report | |
# | |
# REQUIREMENTS: Perl 5.10; Term::ANSIColor; JSON |
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
## | |
# @filename : epd7in5.py | |
# @brief : Implements for Dual-color e-paper library | |
# @author : Yehui from Waveshare | |
# | |
# Copyright (C) Waveshare July 10 2017 | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documnetation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
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
FROM alpine as build | |
RUN apk add --no-cache gcc make musl-dev | |
RUN wget -O /tmp/nginx.tar.gz http://nginx.org/download/nginx-1.13.6.tar.gz && \ | |
mkdir /tmp/nginx && \ | |
tar xf /tmp/nginx.tar.gz -C /tmp/nginx --strip-components=1 && \ | |
cd /tmp/nginx && \ | |
./configure --prefix=/ --with-cc=/usr/bin/cc --with-cc-opt="-static -static-libgcc" --with-ld-opt="-static" --with-ipv6 --with-poll_module --without-http_rewrite_module --without-http_gzip_module && \ | |
make -j5 |
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' |
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
#!/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
#!/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/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: ratp-trafic.pl | |
# | |
# USAGE: ./ratp-trafic.pl [options] [lines] | |
# | |
# DESCRIPTION: Check RATP reseau status | |
# | |
# OPTIONS: -raw: Display JSON formated data. |
NewerOlder