Generated with https://github.com/alex1770/wordle
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 | |
# generates a self-signed secp256r1 tls key + certificate | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "usage: $0 <key.pem> <cert.pem>" 2>& 1 | |
exit 1 | |
fi | |
openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -x509 -nodes -batch -days 36500 -out "$2" -keyout "$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
#!/bin/bash | |
LINKS='http://mirror.math.princeton.edu/pub/ubuntu-iso/19.04/ubuntu-19.04-desktop-amd64.iso http://mirrors.layeronline.com/ubuntu-releases/19.04/ubuntu-19.04-desktop-amd64.iso http://mirrors.xtom.com/ubuntu-releases/19.04/ubuntu-19.04-desktop-amd64.iso http://mirror.easyspeedy.com/ubuntu-iso/19.04/ubuntu-19.04-desktop-amd64.iso http://mirrors.dotsrc.org/ubuntu-cd/19.04/ubuntu-19.04-desktop-amd64.iso' | |
aria2c --dir / -o /dev/null --allow-overwrite=true --file-allocation=none $LINKS |
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
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/fhNsh')) |
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
$ideCode = Read-Host 'CL - Clion | |
PC - Pycharm | |
IIU - IntelliJ | |
WS - WebStorm | |
Enter an IDE code' | |
cd ~\Desktop | |
$WshShell = New-Object -comObject WScript.Shell | |
echo "Downloading 7-zip..." | |
Invoke-WebRequest -Uri 'https://drive.google.com/uc?export=download&id=1I8V3qqBq6R0jkrNaDrk4nxYKHdQgWaep' -OutFile 7za.exe -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox | |
echo "Fetching product info..." |
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
#download the arch linux ISO from https://www.archlinux.org/download/ | |
#write the ISO onto an installation medium like a DVD or flash drive | |
#boot the server off of the installation medium | |
#now we install arch linux from the bootable medium | |
#based off of https://www.youtube.com/watch?v=f5MewjcSjDA | |
wget https://matmoul.github.io/archfi | |
sh archfi | |
Disk Partitions | |
Auto Partitions (gpt) | |
/dev/sda |
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
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/fpzIR')) |
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
#iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/fpzIR')) | |
cd ~\Desktop | |
Import-Module BitsTransfer | |
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
function Unzip | |
{ | |
param([string]$zipfile, [string]$outpath) | |
[System.IO.Compression.ZipFile]::ExtractToDirectory( | |
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($zipfile), | |
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($outpath)) |
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 | |
#easy openvpn server setup for ubuntu | |
read -p "port (1-65535): " PORT | |
read -p "protocol (udp or tcp): " PROTOCOL | |
read -p "encrypt (y or n): " ENCRYPT | |
read -p "hmac (y or n): " HMAC | |
read -p "xor scramble (y or n): " SCRAMBLE | |
read -p "compress (y or n): " COMPRESS_YN | |
read -p "network number (0-255): " NETWORK_NUM |
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 | |
USAGE=$'extract ipsw root file system on linux | |
usage: ipsw-extract.sh iPhone_Restore.ipsw | |
requires apfs-fuse - https://github.com/sgan81/apfs-fuse' | |
if [ -z "$1" ]; then | |
echo "$USAGE" | |
exit 1 | |
fi |
NewerOlder