Skip to content

Instantly share code, notes, and snippets.

# This isn't meant to be ran as a script, but line-by-line
# Props to Binary (benary.org) for helping me with this
# 0: Create a Scaleway instance and SSH into it
ssh root@...
# 1: Install Nix
adduser user # set a password, doesn't matter what because it's not staying long
adduser user sudo
su -l user
#!/bin/sh
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386 htop p7zip tmux
@ldesgoui
ldesgoui / NixOS-on-T100TAF.sh
Created September 8, 2018 08:07
NixOS on ASUS Transformer T100TAF
# This is a "literal" shell script, you only should grab commands, it's not meant to be run.
# First, grab an i686 iso from https://nixos.org/nixos/download.html, flash it on an USB
# Reboot the T100TAF and mash F2 when the backlight is lit up, this should get you to BIOS
# In there, make sure EFI boot is enabled and disable secure boot, save then boot from USB
# Follow UEFI instructions from https://nixos.org/nixos/manual/index.html#sec-installation
# The WiFi card won't be detected, you'll need to run
mkdir -p /lib/firmware/brcm
cp /sys/firmware/efi/efivars/nvram-* /lib/firmware/brcm/brcmfmac43340-sdio.txt
rmmod brcmfmac
modprobe brcmfmac
3743 [U:1:41435165]
3022 [U:1:83500673]
2754 STEAM_0:1:42141350
2424 [U:1:119056295]
1780 [U:1:84305747]
1702 [U:1:90137716]
1679 [U:1:122248704]
1624 [U:1:166618905]
1549 [U:1:36744350]
1482 [U:1:200374623]
@ldesgoui
ldesgoui / gist:96e6f27beeb70182f067f56d0b1fd085
Last active July 29, 2019 18:13
Good Dude List, +1 for each message containing: gg gj good nice gl hf glhf gr gh ns
15436 https://steamcommunity.com/profiles/76561198012785231
15028 https://steamcommunity.com/profiles/76561198050673630
11697 https://steamcommunity.com/profiles/76561198040993656
9510 https://steamcommunity.com/profiles/76561197967801691
8581 https://steamcommunity.com/profiles/76561198065913973
8342 https://steamcommunity.com/profiles/76561198083103830
7900 https://steamcommunity.com/profiles/76561198113009514
7726 https://steamcommunity.com/profiles/76561198120494035
7725 https://steamcommunity.com/profiles/76561198051435528
7379 https://steamcommunity.com/profiles/76561198050163618
The system is: Linux - 5.3.8 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /nix/store/5yyx688q9qxhb4ypawq7v80fm3ix27dm-gcc-wrapper-8.3.0/bin/gcc
Build flags:
Id flags:
The output was:
0
{ sources ? import ./sources.nix # using niv
}:
let
pkgs = import sources.nixpkgs {};
rust-pkgs = import "${sources.nixpkgs-mozilla}/rust-overlay.nix" (pkgs // rust-pkgs) pkgs;
naersk = pkgs.callPackage sources.naersk {
cargo = rust-pkgs.latest.rustChannels.nightly.cargo;
rustc = rust-pkgs.latest.rustChannels.stable.rust;
@ldesgoui
ldesgoui / flake.lock
Last active June 11, 2021 15:03
Checking a flake in recursive Nix
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
@ldesgoui
ldesgoui / funny.rs
Last active July 23, 2021 09:10
dynamic deser
#![allow(unused)]
use erased_serde as erased;
use once_cell::race::OnceBox;
use serde::de::{self, DeserializeSeed, Deserializer, MapAccess, Visitor};
use std::any::{Any, TypeId};
use std::collections::HashMap;
use std::fmt;
fn main() {}
@ldesgoui
ldesgoui / ds.md
Created January 29, 2024 02:11
Demo Support

Demo Support

Hello,

As far as I understand, P-REC will stop functioning when TF2 switches to 64 bits. Some competitive players have preferred that plugin to the in-game demo system for a few reasons. We can also estimate that ETF2L's match report system depends on some features that only the plugin implements. With the recent release of the source code, and the impending doom of the plugin, we can make educated suggestions to improve the in-game demo system.

ds_enable 3 records matches in Casual and Competitive games