Skip to content

Instantly share code, notes, and snippets.

View vaslabs's full-sized avatar
🏠
Working from home

Vasilis Nicolaou vaslabs

🏠
Working from home
View GitHub Profile
@vaslabs
vaslabs / nvidia-installer.sh
Created May 28, 2023 10:52 — forked from GloriousEggroll/nvidia-installer.sh
nvidia /etc/profile.d/ script
#!/usr/bin/sh
nvgpu=$(lspci | grep -iE 'VGA|3D' | grep -i nvidia | cut -d ":" -f 3)
nvkernmod=$(lspci -k | grep -iEA3 'VGA|3D' | grep -iA3 nvidia | grep -i 'kernel driver' | grep -iE 'vfio-pci|nvidia')
if [[ ! -z $nvgpu ]]; then
if [[ -z $nvkernmod ]]; then
# Check for internet connection
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
@vaslabs
vaslabs / Code Of Conduct.md
Created April 24, 2023 17:21
Meetup Code Of Conduct

Meetup Group Code of Conduct (Software Development Talks)

Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share. We are committed to providing a friendly, safe, and welcoming environment for all, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, sexual identity and orientation, or other such characteristics.

Our Standards

Diversity is one of our greatest strengths, but it can also lead to communication issues and unhappiness.

@vaslabs
vaslabs / mesa-howto.md
Created June 9, 2021 18:31 — forked from Venemo/mesa-howto.md
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Install dependencies

This is how to install them on Fedora. You can substitute with other distros' package managers, the packages are named similarly but maybe have a different naming convention (eg. -dev vs. -devel, etc.).

@vaslabs
vaslabs / overcooked_all_you_can_eat_p2.gamecontroller.amgp
Created April 6, 2021 12:55
overcooked_all_you_can_eat_second_player_keyboard_mapping_antimicrox
<?xml version="1.0" encoding="UTF-8"?>
<gamecontroller configversion="19" appversion="3.0">
<stickAxisAssociation index="2" xAxis="3" yAxis="4"/>
<stickAxisAssociation index="1" xAxis="1" yAxis="2"/>
<vdpadButtonAssociations index="1">
<vdpadButtonAssociation axis="0" button="12" direction="1"/>
<vdpadButtonAssociation axis="0" button="13" direction="4"/>
<vdpadButtonAssociation axis="0" button="14" direction="8"/>
<vdpadButtonAssociation axis="0" button="15" direction="2"/>
</vdpadButtonAssociations>
@vaslabs
vaslabs / haven_fix_guide.md
Last active March 14, 2021 10:30
Fix Haven on Fedora 33

Clone mf-install

git clone https://github.com/z0z0z/mf-install.git
cd mf-install

Comment out 32 bit calls

vi mf-install.sh
#wine start regedit.exe mf.reg
@vaslabs
vaslabs / Run.sh
Last active May 8, 2021 22:22
worms_fix_fedora_33
#!/bin/bash
export LC_ALL=C
export DBUS_FATAL_WARNINGS=0
export LD_LIBRARY_PATH="/usr/lib:/usr/local/lib"
#!/bin/bash
# Adapted from https://www.toptensoftware.com/blog/running-ea-origin-games-under-linux-via-steam-and-proton/
# Add custom windows exe to steam (usually it's an installer)
# this creates a directory with a big number as an id, look for it
# in .steam/steam/steamapps/compatdata
COMPATDIR=3999685975
# Pick a Proton Version (steam/steamapps/Proton... for official steam protons)
PROTONVER=root/compatibilitytools.d/Proton-6.1-GE-2
import io.vavr.control.Either;
import io.vavr.control.Try;
import java.time.Clock;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
class Snippets {
public static Either<String, Integer> toInt(String text) {

Sbt snippets I find useful

@vaslabs
vaslabs / README.md
Last active January 14, 2022 06:58
Astronomy image stacking scripts