Skip to content

Instantly share code, notes, and snippets.

View TeroKeso's full-sized avatar

Tero Keso TeroKeso

View GitHub Profile

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 / devcontainers.md
Last active January 22, 2024 05:36
Code Remotetunnel

devcontainers

Version 1

sudo apt install npm
npm install -g @devcontainers/cli
@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 / 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 / Tailscale_inside_WSL2.md
Last active June 17, 2022 19:52
Tailscale inside WSL2

Tailscale works with WSL2

1) sudo nano /etc/hostname
2) exit
3) install tailscale "curl -fsSL https://tailscale.com/install.sh | sh"
4) sudo tailscaled &
5) sudo tailscale up
5.5) sudo tailscale up #if needed
6) sudo tailscale status
@TeroKeso
TeroKeso / 1_nvidia.md
Last active March 11, 2022 14:17
Nvidia

Kaiken poistaminen

    sudo apt purge cuda*
    sudo apt purge nvidia*
    sudo apt purge libnvidia*
    sudo apt autoremove

Pika-asennus Docker (Beta)

     curl -fsSL https://get.docker.com -o get-docker.sh

sudo sh ./get-docker.sh

@TeroKeso
TeroKeso / DNS_TO_LOCALHOST.markdown
Created September 17, 2021 07:18 — forked from tinogomes/DNS_TO_LOCALHOST.markdown
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

It turns out that some kind hearted people already set up wildcard domains for you already. You can use any domain below and/or any subdomain of these and they currently resolve to 127.0.0.1 but could switch at any time to resolve somewhere else. Here's the list of ones I know about. Let me know if there are more!

  • localhost - It will always works. Do you know why? I hope so.
  • [*.]fuf.me - Managed by @fidian; it will always point to localhost for IPv4 and IPv6
  • [*.]fbi.com - 👏 👏 👏 👏 👏
  • [*.]localtest.me
  • [*.]127-0-0-1.org.uk
  • [*.]vcap.me
@TeroKeso
TeroKeso / 1) Net use.md
Last active August 12, 2022 13:07
Windows tehtävä 1-2

Open CMD. IF CMD is running with administrator rights it will not appear in windows

NET USE k: \\23.101.69.47\c$ /USER:paakayttaja


k:

cd helppo

Installation of basic programs (HAMK BYOD) in students' personal devices (Windows).

The following guidelines utilizes the chocolatey package manager for Windows to install several applications that are used in different modules in HAMK.

Step 1: Install CHOCOLATEY

Requirements

  • Windows 7 or newer version of Windows Operating System (Recommended Windows 10 or 11)
  • PowerShell v2+
  • .NET Framework 4+
@TeroKeso
TeroKeso / .screenrc
Created November 12, 2020 16:35 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off