Skip to content

Instantly share code, notes, and snippets.

View Jacobboogiebear's full-sized avatar

Jacob Allen Morris Jacobboogiebear

  • USA Murfreesboro Tennessee
View GitHub Profile
@Jacobboogiebear
Jacobboogiebear / Install wine on ubuntu 18.04.4 LTS via gist
Last active April 30, 2020 22:22
Install wine on ubuntu 18.04.4 LTS
sudo wget -O- https://gist.githubusercontent.com/Jacobboogiebear/ff63aa808aec043fd9437053028daa23/raw/481db044c7810aa23095c9fbe56b3ef42b406aa2/Script | bash
@Jacobboogiebear
Jacobboogiebear / easywall.sh
Created March 10, 2021 05:34
Setup Easywall
apt update
apt install -y apt-transport-https gnupg
echo "deb https://apt.wdkro.de/ stable main" > /etc/apt/sources.list.d/easywall.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D88D7689C1624EE3
apt update
@Jacobboogiebear
Jacobboogiebear / docker-compose.sh
Created March 10, 2021 05:49
docker-compose-quick
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@Jacobboogiebear
Jacobboogiebear / lilietrickster-documented.bat
Last active April 8, 2024 14:23
Quick trick to disable parental controls on windows (read tutorial.txt)
:: Hides the output of small commands to help clean up the view of everything
@ECHO OFF
:: This at the end of any line means hide it's output as to not clutter the display, feel free to remove it from any line and see the output of each command
:: >nul 2>&1
:: Throws "Access is denied" if the script is run as non-admin or does nothing if run as admin, setting the errorlevel variable to 0 or 1
:: (0: No error occured / Other values: An error has occured)
NET SESSION >nul 2>&1
@Jacobboogiebear
Jacobboogiebear / Compile.ps1
Created June 16, 2021 08:34
Install/Compile Armor Paint
Invoke-WebRequest -Uri "https://download1585.mediafire.com/rqiwwwhracmg/5ol3qzfdzlqdzal/7za.exe" -OutFile "./7za.exe"
Invoke-WebRequest -Uri "https://download854.mediafire.com/fvev56jl2zjg/gkrftr0bccaunbu/7za.dll" -OutFile "./7za.dll"
Invoke-WebRequest -Uri "https://download1513.mediafire.com/plbxkh7yk7rg/lexm6rk01qdqora/7zxa.dll" -OutFile "./7zxa.dll"
Invoke-WebRequest -Uri "https://download2264.mediafire.com/9xaggnko4y4g/cf7c87tovc8s89u/temp.7z" -OutFile "./temp.7z"
$env:PATH += ';' + $pwd.Path
7za x ./temp.7z -y
Set-Location ./temp/
$process = start-process vs_community.exe -ArgumentList "--path install=$($pwd.Path)/vs --add=Microsoft.VisualStudio.Workload.NativeDesktop --wait --quiet --includeRecommended --includeOptional" -PassThru -Wait
$process.WaitForExit();
Set-Location ./vs/VC/Auxiliary/Build
@Jacobboogiebear
Jacobboogiebear / build-swtpm.sh
Created March 13, 2022 07:10
A quick script to build swtpm and libtpm on Ubuntu 20.04 (created for WSL2 and WSLg)
sudo apt-get install git g++ gcc automake autoconf libtool make gcc libc-dev libssl-dev pkg-config libtasn1-6-dev libjson-glib-dev expect gawk socat libseccomp-dev -y
cd ~
git clone https://github.com/stefanberger/swtpm.git
git clone https://github.com/stefanberger/libtpms.git
cd libtpms
./autogen.sh --prefix=/usr --with-tpm2 --with-openssl
make
sudo make install
cd ../swtpm
./autogen.sh --prefix=/usr
@Jacobboogiebear
Jacobboogiebear / install-search-google.sh
Last active September 17, 2022 19:31
A script to compile a simple google search tool for the terminal
#!/bin/bash
if which tput > /dev/null 2>&1 && [[ $(tput -T$TERM colors) -ge 8 ]] ; then
FANCY_TERMINAL=true
LICENSE_SCROLL=0
RENDERING_LICENSE=false
HELP_SCROLL=0
RENDERING_HELP=false
TERMINAL_WIDTH=$(tput cols)
TERMINAL_HEIGHT=$(tput lines)
@Jacobboogiebear
Jacobboogiebear / kernel_patch.sh
Last active May 14, 2024 21:09
kernel patch for KVM on Windows WSL2
cp Microsoft/config-wsl .config
sed -i 's/# CONFIG_KVM_GUEST is not set/CONFIG_KVM_GUEST=y/g' .config
sed -i 's/# CONFIG_ARCH_CPUIDLE_HALTPOLL is not set/CONFIG_ARCH_CPUIDLE_HALTPOLL=y/g' .config
sed -i 's/# CONFIG_HYPERV_IOMMU is not set/CONFIG_HYPERV_IOMMU=y/g' .config
sed -i '/^# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set/a CONFIG_PARAVIRT_CLOCK=y' .config
sed -i '/^# CONFIG_CPU_IDLE_GOV_TEO is not set/a CONFIG_CPU_IDLE_GOV_HALTPOLL=y' .config
sed -i '/^CONFIG_CPU_IDLE_GOV_HALTPOLL=y/a CONFIG_HALTPOLL_CPUIDLE=y' .config
sed -i 's/CONFIG_HAVE_ARCH_KCSAN=y/CONFIG_HAVE_ARCH_KCSAN=n/g' .config
sed -i '/^CONFIG_HAVE_ARCH_KCSAN=n/a CONFIG_KCSAN=n' .config
make -j 8
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
#[macro_export]
macro_rules! type_name_of {
( $e:expr $(,)? ) => ({
fn __helper__<T> (_: [&T; 0]) -> &'static str {
core::any::type_name::<T>()
}
let it = [];
#[allow(unreachable_code)] {
if false {
loop {}