Skip to content

Instantly share code, notes, and snippets.

View epifanio's full-sized avatar

Massimo Di Stefano epifanio

View GitHub Profile
import subprocess
import sys
# Check if the correct number of arguments is provided
if len(sys.argv) != 2:
print("Usage: python script.py <keyword>")
sys.exit(1)
# Get the keyword from the command line
keyword = sys.argv[1]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy</title>
</head>
<body>
<h1>Privacy Policy</h1>
<p>This is the privacy policy for [Your Company Name].</p>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epifanio
epifanio / bootstrap.min.css
Created April 7, 2024 10:48
bootstrap.min.css
/*!
* Bootstrap v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-fam
@epifanio
epifanio / template.py
Created April 7, 2024 09:42
template.py
template = """
{% extends base %}
<!-- goes in head -->
{% block postamble %}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
{% endblock %}
<!-- goes in body -->
{% block contents %}
@epifanio
epifanio / notification_orig.py
Last active March 3, 2024 02:45
GeoHealtCeck - webhook for pagerduty
# =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2014 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
@epifanio
epifanio / dataset_test.ipynb
Created March 1, 2024 09:16
dataset_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epifanio
epifanio / ini.cfg
Last active January 30, 2024 14:11
# =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
# Ricardo Garcia Silva <ricardo.garcia.silva@gmail.com>
#
# Copyright (c) 2015 Tom Kralidis
# Copyright (c) 2017 Ricardo Garcia Silva
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
@epifanio
epifanio / mailman-status.md
Created January 22, 2024 09:02
mailman-status.md

mailman3

root@mailman3:~# systemctl status mailman3
● mailman3.service - GNU Mailing List Manager
     Loaded: loaded (/etc/systemd/system/mailman3.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-01-22 08:43:39 UTC; 13min ago
    Process: 1564 ExecStart=/opt/mailman/venv/bin/mailman start (code=exited, status=0/SUCCESS)
   Main PID: 1566 (python3)
      Tasks: 17 (limit: 4524)
     Memory: 935.5M
@epifanio
epifanio / groundtruther.txt
Created December 28, 2023 21:20
Conda Environment to run GroundTruther (win 11)
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
annotated-types=0.6.0=pyhd8ed1ab_0
anyio=4.2.0=pyhd8ed1ab_0
aom=3.7.1=h63175ca_0
archspec=0.2.2=pyhd8ed1ab_0
aws-c-auth=0.7.8=h6bf0135_3
aws-c-cal=0.6.9=h7f0e5be_2
aws-c-common=0.9.10=hcfcfb64_0