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/bash | |
# This script sets up a meshtastic node fitting to french "Gaulix" network | |
# https://gaulix.fr | |
# Requires meshtastic python3 module installed | |
# delete channels | |
for i in 1 2 3 4;do | |
meshtastic --ch-index $i --ch-del | |
done |
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/bash | |
# This script sets up a meshtastic node fitting to french "Gaulix" network | |
# https://wiki.fr-emcom.com/gaulix_reseau_meshtastic_-_france:1:start | |
# This current config tends to set up a rather "hidden" node | |
# this script is a starting point, be sure to tune your config accordinlgy | |
# Requires meshtastic python3 module installed | |
# delete channels | |
for i in 1 2 3 4;do |
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 python3 | |
# sends server status by email | |
import os | |
import re | |
import subprocess | |
import smtplib | |
import datetime | |
from email.mime.text import MIMEText |
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 atmoz/sftp:alpine | |
# Redirect to a file | |
# Add timestamps | |
# Please consider performances complexity for large user activity | |
CMD ["/bin/sh", "-c", "/usr/sbin/sshd -D -e 2>&1 | while read line; do printf '[%s] %s\n' \"$(date '+%Y-%m-%d %H:%M:%S')\" \"$line\" >> /var/log/sftp.log;done"] |
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
{{- $critical := 0 }} | |
{{- $high := 0 }} | |
{{- $medium := 0 }} | |
{{- $low := 0 }} | |
{{- range . }} | |
{{- range .Vulnerabilities }} | |
{{- if eq .Severity "CRITICAL" }}{{- $critical = add $critical 1 }}{{- end }} | |
{{- if eq .Severity "HIGH" }}{{- $high = add $high 1 }}{{- end }} | |
{{- if eq .Severity "MEDIUM" }}{{- $medium = add $medium 1 }}{{- end }} |
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 python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import logging | |
import datetime | |
import argparse | |
import configparser |
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
[...] | |
http { | |
ldap_server ldap_local { | |
url "ldap://172.17.0.1:389/dc=prod,dc=company,dc=com?uid?sub?(objectClass=posixAccount)"; | |
binddn "cn=readonly,dc=prod,dc=company,dc=com"; | |
binddn_passwd "readonly"; | |
require group "cn=production,dc=prod,dc=company,dc=com"; | |
group_attribute "memberUid"; | |
group_attribute_is_dn off; |
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 <unistd.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <ifaddrs.h> | |
#include <sys/ioctl.h> | |
#include <net/if.h> | |
#include <netdb.h> |
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 debian:11 | |
RUN apt-get update | |
# tools | |
RUN apt-get install -y \ | |
git \ | |
make \ | |
gcc |
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 python3 | |
import sys | |
import logging | |
import argparse | |
import requests | |
import datetime | |
from typing import Optional, List, Union | |
from dataclasses import dataclass |