This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat file.txt | while IFS=, read -r file destination; do echo "mv $file $destination/" done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl --embed-thumbnail --add-metadata --audio-quality 0 --extract-audio --audio-format mp3 --batch-file urls.txt --output '%(title)s.%(ext)s' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} ------------" |
OlderNewer