Skip to content

Instantly share code, notes, and snippets.

@mpusz
mpusz / alternatives.sh
Last active May 27, 2024 09:26
Ubuntu scripts
#/bin/bash
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo update-alternatives --remove-all clang
sudo update-alternatives --remove-all clang++
sudo update-alternatives --remove-all cc
sudo update-alternatives --remove-all c++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
@nosoop
nosoop / clone_gameinfo.py
Last active April 27, 2019 22:55
ctrl+c, ctrl+v srcds/tf2 but smol
#!/usr/bin/python3
'''
gameinfo cloner for TF2
takes an existing TF2 dedicated server installation and an empty directory and links / copies /
modifies files in the latter to create a runnable server
'''
import os