Skip to content

Instantly share code, notes, and snippets.

View lucasburlingham's full-sized avatar
👀

Lucas Burlingham lucasburlingham

👀
View GitHub Profile
# Scans all possible combinations of the variable 'characterList' and then evaluates
# if there is a valid website associated with the domain
from itertools import chain, combinations
import requests
def createLink(iterable):
s = list(iterable)
return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
@lucasburlingham
lucasburlingham / sort_bash.sh
Created January 20, 2021 19:03
Sort files in csv format (image1.png,folder1)
cat file.txt | while IFS=, read -r file destination; do echo "mv $file $destination/" done
@lucasburlingham
lucasburlingham / install.sh
Last active February 25, 2021 06:40
Install phpsysinfo
echo "Removing previous files..."
sudo rm -r phpsysinfo-3.3.2 v3.3.2.zip
echo "Getting phpsysinfo..."
sudo wget https://github.com/phpsysinfo/phpsysinfo/archive/v3.3.2.zip
echo "Copying phpsysinfo to web server root..."
sudo cp v3.3.2.zip /var/www/html/
echo "Unzipping phpsysinfo zip file..."
sudo unzip /var/www/html/v3.3.2.zip
echo "Removing default Apache2 page..."
sudo rm /var/www/html/index.html
#!/bin/sh
# From https://docs.microsoft.com/en-us/azure/active-directory-domain-services/join-ubuntu-linux-vm#configure-the-hosts-file
# Run Updates (not included in docs)
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install curl wget
@lucasburlingham
lucasburlingham / wget_deps.sh
Last active April 10, 2022 21:02
Get all LFS dependancies from the jaleco mirror
curl "http://mirror.jaleco.com/lfs/pub/lfs/lfs-packages/10.0/" \
grep "<a href" | \
awk '{print $2}' | \
sed 's/href="/http:\/\/mirror.jaleco.com\/lfs\/pub\/lfs\/lfs-packages\/10.0\//' | \
sed 's/<//' | \
sed 's/">/ /' | \
sed 's/\/a><\/td><td>//' | \
awk '{print $1}' | \
grep -v "https://www.jaleco.com" | \
grep -v "?C=N&O=A" | \
@lucasburlingham
lucasburlingham / .zshrc.root
Last active June 9, 2021 01:21
General JovarkOS setup
# Allow CTRL-BACKSPACE
stty werase \^H
bindkey "^H" backward-kill-word
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
youtube-dl --embed-thumbnail --add-metadata --audio-quality 0 --extract-audio --audio-format mp3 --batch-file urls.txt --output '%(title)s.%(ext)s'
@lucasburlingham
lucasburlingham / getHeaders.php
Created August 3, 2021 18:56
Get headers from all the mail in your inbox - currently has settings for Office 365
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
@lucasburlingham
lucasburlingham / acernitro-ubuntu.txt
Last active August 6, 2021 03:38
Acer Nitro 5 Laptop AN515-53 Review
Installation of any recent Ubuntu release was smooth, simple, and there were no issues to report.
I2C compatible trackpad worked out of the box, and continued to work after compiling and using a more recent 5.11 low-latency kernel.
No issues to report.
@lucasburlingham
lucasburlingham / catalog.sh
Last active June 8, 2024 19:19
File Scan and Tracker
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
NC='\033[0m'
$CAT_DIR
echo -e "--------- ${GREEN}CATALOGING ISO FILES${NC} ------------"