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
sudo wget -O- https://gist.githubusercontent.com/Jacobboogiebear/ff63aa808aec043fd9437053028daa23/raw/481db044c7810aa23095c9fbe56b3ef42b406aa2/Script | bash |
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
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 |
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
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 |
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
:: 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 |
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
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 |
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
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 |
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 | |
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) |
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
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 |
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
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] | |
@="" | |
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
#[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 {} |
OlderNewer