Skip to content

Instantly share code, notes, and snippets.

View TeroKeso's full-sized avatar

Tero Keso TeroKeso

View GitHub Profile
@TeroKeso
TeroKeso / Install-WSLAndUbuntu.ps1
Created November 10, 2022 13:44 — forked from ScriptAutomate/Install-WSLAndUbuntu.ps1
Enable WSL and Install Ubuntu 22.04 (or 20.04)
<#
- BIOS of host machine also needs to be configured to allow hardware virtualization
- Windows 10 Pro or otherwise is needed; Windows 10 Home Edition CANNOT get WSL
- This gist WSLv2, but can use WSLv1 instead. I needed v1 as I run Windows 10 in a VM in Virtualbox.
- WSLv2 has been giving me problems in Virtualbox 6.1, but WSLv1 works properly.
- vbox has issues with the GUI settings when it comes to nested virtualization on certain systems,
so run the following if needing to give a VM this enabled setting:
VBoxManage modifyvm <vm-name> --nested-hw-virt on
#>
@TeroKeso
TeroKeso / WSL commands and settings.md
Last active February 21, 2023 06:00
WSL commands and settings

wsl.conf

tee -a /etc/wsl.conf <<EOF
[user]
default=student
EOF
@TeroKeso
TeroKeso / devcontainers.md
Last active January 22, 2024 05:36
Code Remotetunnel

devcontainers

Version 1

sudo apt install npm
npm install -g @devcontainers/cli

How to install game-porting-toolkit (aka proton for macOS)

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

Why would I want this?

Playing Windows games on MacOS

@TeroKeso
TeroKeso / VMwareFusion_Export_ovf.txt
Last active November 28, 2024 14:34 — forked from xl7dev/VMwareFusion_Export_ovf.txt
HowTo Export a VM in OVA format in VMware Fusion for OS X
> cd /Applications/VMware\ Fusion\ Tech\ Preview.app/Contents/Library/VMware\ OVF\ Tool
> ./ovftool --acceptAllEulas /Users/$USER/Virtual\ Machines.localized/Windows\ 11\ 64-bit\ Arm\ 2.vmwarevm/Virtual\ Disk.vmx /Users/$USER/export.ova
@TeroKeso
TeroKeso / Auto-subtitle Ubuntu 20.04 WSL.md
Last active January 24, 2024 12:34
Auto-subtitle(-plus) Ubuntu 20.04 WSL and Windows

Install

sudo apt update && sudo apt install ffmpeg python3-pip 
pip install ffmpeg-python
pip install git+https://github.com/m1guelpf/auto-subtitle.git
@TeroKeso
TeroKeso / How to install.md
Last active March 23, 2024 09:12
Github-copilot-CLI

Mac

brew install gh
gh auth login
gh extension install github/gh-copilot

Windows

@TeroKeso
TeroKeso / derper
Last active March 26, 2024 09:10 — forked from amanjuman/derper
TailScale Derper Install on Linux
## Download Go
sudo wget --output-document /opt/go.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
## Remove Existing Go and Extract Downloaded Go
sudo rm -rf /usr/local/go && sudo tar --directory /usr/local --extract --gzip --file /opt/go.tar.gz && sudo rm /opt/go.tar.gz
## Delete Derp if there is & Recreate user for Derper
sudo userdel -r derp & sudo useradd --system --create-home --home-dir /opt/derp --shell /bin/bash derp
@TeroKeso
TeroKeso / Readme.md
Created April 1, 2024 12:03 — forked from saniaky/Readme.md
Docker + nginx-proxy + let's encrypt + watchtower + fail2ban

Complete solution for websites hosting

This gist contains example of how you can configure nginx reverse-proxy with autmatic container discovery, SSL certificates generation (using Let's Encrypt) and auto updates.

Features:

  • Automatically detect new containers and reconfigure nginx reverse-proxy
  • Automatically generate/update SSL certificates for all specified containers.
  • Watch for new docker images and update them.
  • Ban bots and hackers who are trying to bruteforce your website or do anything suspicious.
@TeroKeso
TeroKeso / 00 - A collection of free DNS Servers
Created May 24, 2024 10:31 — forked from kasuken/00 - A collection of free DNS Servers
Set and Reset DNS Settings with PowerShell
A collection of my favorites DNS