This file contains hidden or 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 update | |
sudo which wget || sudo apt install wget | |
echo "deb [arch=amd64] http://deb.librewolf.net $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/librewolf.list | |
sudo wget https://deb.librewolf.net/keyring.gpg -O /etc/apt/trusted.gpg.d/librewolf.gpg | |
sudo apt install librewolf -y |
This file contains hidden or 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 | |
which /bin/sh &>/dev/null || echo /bin/sh not found!! Try putting /bin/bash at begin of script! | |
which /bin/sh &>/dev/null || exit | |
read -e -p "Nix package name: " -i "firefox" nixPackageName || exit | |
read -e -p "Sandbox home folder: " -i "$HOME/.home/$nixPackageName" sandboxHome || exit | |
read -e -p "App calling command: " -i "$nixPackageName" appCmd || exit | |
echo downloading package... | |
nix-shell -p $nixPackageName --command exit | |
echo preparing sandbox home... |
This file contains hidden or 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 | |
export package=steam | |
export homefolder=$package | |
export cmd=$package | |
export HOME=/home/jj/.home/$homefolder | |
mkdir -p ~/.config/nixpkgs/ | |
printf "{ allowUnfree = true; }" > ~/.config/nixpkgs/config.nix |
This file contains hidden or 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
i=0; while :; do i=$(expr $i + 1); if [ "$i: $i" == "$(factor $i)" ]; then echo $i; fi;done |
This file contains hidden or 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
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
function playNote(frequency, duration, callback) { | |
duration = duration / 1000; | |
// create Oscillator node | |
var oscillator = audioCtx.createOscillator(); | |
oscillator.type = 'square'; | |
oscillator.frequency.value = frequency; // value in hertz |
This file contains hidden or 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
;@Findstr -bv ;@F "%~f0" | powershell -command - & powershell -NoLogo & goto:eof | |
$osName='CentOS8' | |
$appdir = "$env:LOCALAPPDATA\$osName" | |
$downloadCent8 = $true # contains launcher and rootfs.tar.gz | |
$downloadLauncher = $false # in case downloadCent8 = $false | |
$rootFsFile = "rootfs.tar.gz" | |
$cent8Url = "https://github.com/yuk7/CentWSL/releases/download/8.1.1911.1/CentOS8.zip" | |
$launcherUrl = "https://github.com/yuk7/wsldl/releases/download/20100500/Launcher.exe" |