Skip to content

Instantly share code, notes, and snippets.

@AreRex14
AreRex14 / Dockerfile
Last active May 3, 2022 22:27
Build sample docker compose configuration based on Cyber-Duck/php-fpm-laravel
FROM cyberduck/php-fpm-laravel:latest
# Arguments defined in docker-compose.yml
ARG user
ARG uid
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
@AreRex14
AreRex14 / install-suricata.sh
Created June 20, 2021 08:44
Basic script to install Suricata IDS/IPS 5.0.0 for Linux (specifically Ubuntu 18.04 LTS)
#for logging useful message during script execution
log() {
echo "[+] $1"
}
install() {
log "Installing Suricata 5 for Linux..."
sudo apt-get update -y
#to download suricata source
sudo apt-get install -y wget
@AreRex14
AreRex14 / whatyear100oldsyear.py
Created February 17, 2021 15:15
A program that will tell you the year where you will be 100 years old
import datetime
print('This program will tell you the year where you will be 100 years old.')
name = input("Enter your name: ")
age = int(input("Enter your age: "))
now = datetime.datetime.now()
year = str((now.year - age) + 100)
rand_num = int(input("Please enter any number: "))
print(str(rand_num * name), "\n", "will be 100 years old in {}".format(year))
@AreRex14
AreRex14 / MainActivity.java
Created September 1, 2018 11:53
Open other JFrame window from existing window using ActionListener event
import javax.swing.JFrame;
public class MainActivity {
public static void main(String[] args) throws Exception {
JFrame welcomeFrame = new Welcome();
}