Skip to content

Instantly share code, notes, and snippets.


Chatchai Saratakij CSaratakij

View GitHub Profile
red-dragon65 / Deck
Last active July 6, 2023 06:34
How to properly run Steam Decks UI on Manjaro
View Deck
tsunyoku / guide.MD
Last active September 23, 2023 17:12
osu! install guide for Linux (up-to-date)
View guide.MD

osu! install guide for Linux

I know a lot of people have been facing issues setting up osu! on Linux. Most of the guides online are either outdated or just all over the place, so I hope to maintain a good guide here that is relatively easy to follow.

I'd like to start by saying I have only tested this on Debian-based distributions, however it should work fine on others.

If you have any problems during or after installation, please don't hesitate to contact me on Discord (tsunyoku#0066) and I will try my best to help.

Installing Lutris

nakov / FileXor.cs
Created March 10, 2021 17:50
C# Encrypt / Decrypt File with XOR
View FileXor.cs
using System.IO;
void EncryptFile(string inputFile, string outputFile)
using (var fin = new FileStream(inputFile, FileMode.Open))
using (var fout = new FileStream(outputFile, FileMode.Create))
byte[] buffer = new byte[4096];
while (true)
jdavid82 / .vimrc
Last active July 27, 2023 20:35
vim settings for full stack C# development in Windows 10
View .vimrc
"Allow project specific .vimrc execution
set exrc
"no backup files
set nobackup
"only in case you don't want a backup file while editing
set nowritebackup
"no swap files
enif-lee / CryptoUtil.cs
Created March 27, 2020 05:50
C# AES256 encryption and decryption example for using easily.
View CryptoUtil.cs
public class CryptoUtil
public static byte[] EncryptAes256(byte[] bytes, byte[] key)
using var aes = new RijndaelManaged
Key = CreateDeriveBytes(key, 32),
ZacharyPatten / WindowsCmdCommand.cs
Created February 26, 2020 20:28
Example of running commands in Windows from C#
View WindowsCmdCommand.cs
using System;
using System.Diagnostics;
class Program
static void Main()
WindowsCmdCommand.Run("dir", out string output, out string error);
Console.WriteLine("OUTPUT: " + output);
Console.WriteLine("ERROR: " + error);
favoyang / BuildAddressables.cs
Last active August 14, 2023 06:29
Build addressable bundles when clicking the build button
View BuildAddressables.cs
/// <summary>
/// The script gives you choice to whether to build addressable bundles when clicking the build button.
/// For custom build script, call PreExport method yourself.
/// For cloud build, put BuildAddressablesProcessor.PreExport as PreExport command.
/// Discussion:
/// License: The MIT License
/// </summary>
using UnityEditor;
using UnityEditor.AddressableAssets;
debojyoti /
Last active June 16, 2023 17:52
Lenovo ideapad 330 (15ARR) ubuntu issues and there solutions
tilkinsc / sound.c
Created October 31, 2018 14:01
OpenAL how to load an Ogg Vorbis file and play it
View sound.c
// Created by:
// returns ALuint* aka a single openal buffer of ready-to-play ogg vorbis sound samples
// returns 0 on error
ALuint* sound_load_ogg(const char* path) {
ALenum error = 0;
ALuint* sound = 0;
FILE* fp = 0;
OggVorbis_File vf;