Skip to content

Instantly share code, notes, and snippets.

View laudarch's full-sized avatar
💭
focused mode activated

laudarch laudarch

💭
focused mode activated
View GitHub Profile
@laudarch
laudarch / update_sys.sh
Created March 14, 2018 16:49
Script to auto update ubuntu and debian systems
#!/bin/bash
echo "***********************************************************" ;
echo ">> Updating system" ;
echo "***********************************************************" ;
echo "" ;
sudo apt update ;
echo "" ;
echo "***********************************************************" ;
echo ">> Upgrading system" ;
package device.packet;
import device.packet.decoder.PacketDataDecoder;
import static device.packet.response.DeviceResponse.success;
public abstract class AbstractPacket implements Packet {
public static final int SERIAL_NUMBER_INDEX = 5;
@laudarch
laudarch / Keybase proof
Created March 1, 2021 09:05
Keybase proof
### Keybase proof
I hereby claim:
* I am laudarch on github.
* I am laudarch (https://keybase.io/laudarch) on keybase.
* I have a public key ASDPL4JH6C84nN3HUE7ZT50HMxkEggMMLsayXqCsszDxlgo
To claim this, I am signing this object:
@laudarch
laudarch / keybase.md
Created March 1, 2021 09:09
Keybase proof

Keybase proof

I hereby claim:

  • I am laudarch on github.
  • I am laudarch (https://keybase.io/laudarch) on keybase.
  • I have a public key ASDPL4JH6C84nN3HUE7ZT50HMxkEggMMLsayXqCsszDxlgo

To claim this, I am signing this object:

Debian / Linux Configurations for high performance web server

Server Requirements

-1 64GB RAM (Minimum) -2 200GB Storage (Minimum)

OS Configurations

#
# file: '/etc/system/systemd.conf'
# file: "/etc/systemd/system.conf" (Ubuntu 20.04 LTS)
@laudarch
laudarch / program_as_service.md
Created September 1, 2021 22:54
Run your program as a service on Debian / Ubuntu

Run your program as a service on Debian / Ubuntu

Run the following

sudo apt install supervisor

Template to monitor and restart any application

#
# File : '/etc/supervisor/conf.d/<program_name>.conf'
#
@laudarch
laudarch / avregex.md
Created November 22, 2021 18:52 — forked from eightyknots/avregex.md
AvReg: Aviation regex match toolkit

AvReg: The Aviation RegEx Match Toolkit

General Tips

  • The PCRE flavour of RegEx is used here.
  • Append the i modifier to the end of the regex to make any pattern case-insensitive.

Aircraft

| Purpose | Description | RegEx | Example |

@laudarch
laudarch / Country_Cams_Grepper.py
Last active November 30, 2021 11:58
Script to fetch cameras on insecam and list them. call with two country code, example US for USA or GR for Greece. Original script by AngelSecurityTeam
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import requests, re
try:
headers = {"User-Agent": "Mozilla/5.0 (Windows 98) AppleWebKit/5322 (KHTML, like Gecko) Chrome/36.0.836.0 Mobile Safari/5322"}
country = input("Country (e.g US) : ")
@laudarch
laudarch / mirror_site.sh
Created December 3, 2021 05:30
Mirror Site
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@laudarch
laudarch / gist:88dc8e3b9e5ce56b3dadefe4ecadf07b
Created December 5, 2021 05:32 — forked from jnunemaker/gist:4495290
Web And Mobile Revenue Models