Skip to content

Instantly share code, notes, and snippets.

View alessandrocuda's full-sized avatar
:octocat:

Alessandro Cudazzo alessandrocuda

:octocat:
View GitHub Profile
#!/bin/sh
# Your Email Information: Recipient (To:), Subject and Body
RECIPIENT="yourAddr@email.com"
SUBJECT="Email from your Server: SSH Alert"
BODY="
A SSH login was successful, so here are some information for security:
User: $PAM_USER
User IP Host: $PAM_RHOST
@alessandrocuda
alessandrocuda / sine_wave.py
Last active June 19, 2023 22:55
Generate a sine wave and save it in a wav file, works on python 2 and python 3
# #MIT License
# Copyright (c) [2018] [Alessandro Cudazzo, Francesco Capuzzolo]
# 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, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@alessandrocuda
alessandrocuda / 0_reuse_code.js
Created August 30, 2014 10:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console