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 / system_maintenance.sh
Last active March 9, 2024 00:12
This script performs various system maintenance tasks on Linux systems, such as updating and upgrading packages, cleaning the package cache, and removing old kernel headers and images.
#!/bin/bash
###############################################################################
# Script Name: system_maintenance.sh
#
# Description: This script performs various system maintenance tasks on Linux
# systems, such as updating and upgrading packages, cleaning the
# package cache, and removing old kernel headers and images.
#
# Usage: sudo ./system_maintenance.sh [-u] [-c] [-p]
@laudarch
laudarch / wifi-passwords.ps1
Created September 18, 2023 21:33 — forked from CybersamuraiDK/wifi-passwords.ps1
PowerShell script to show all wifi passwords saved in Windows
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
@laudarch
laudarch / Correct_GnuPG_Permission.sh
Created June 29, 2023 19:20 — forked from oseme-techguy/Correct_GnuPG_Permission.sh
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
# Get-BitLockerRecovery.ps1
# Written by Bill Stewart (bstewart@iname.com)
<#
.SYNOPSIS
Gets BitLocker recovery information for one or more Active Directory computer objects.
.DESCRIPTION
Gets BitLocker recovery information for one or more Active Directory computer objects.
@laudarch
laudarch / setup_lamp_dev_env.sh
Last active May 1, 2023 21:59
Setup PHP MariaDB dev enviroment For Debian 11. No NGINX or Apache.
#!/usr/bin/env bash
#
# PHP
#
sudo apt install apt-transport-https lsb-release ca-certificates wget curl software-properties-common gnupg2 -y
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
@laudarch
laudarch / ghana_districts.html
Last active July 30, 2023 15:50
HTML select data for Regions, Districts and PPA registered businesses in Ghana
<select>
<option value="">Select a District ...</option>
<option value="Ablekuma North Municipal">Ablekuma North Municipal</option>
<option value="Ablekuma West Municipal">Ablekuma West Municipal</option>
<option value="Abuakwa North Municipal">Abuakwa North Municipal</option>
<option value="Abura Asebu Kwamankese District">Abura Asebu Kwamankese District</option>
<option value="Accra Metropolitan">Accra Metropolitan</option>
<option value="Ada East District">Ada East District</option>
<option value="Ada West District">Ada West District</option>
<option value="Adaklu District">Adaklu District</option>
@laudarch
laudarch / gist:88dc8e3b9e5ce56b3dadefe4ecadf07b
Created December 5, 2021 05:32 — forked from jnunemaker/gist:4495290
Web And Mobile Revenue Models
@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 / 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 / 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 |