Skip to content

Instantly share code, notes, and snippets.

@Athou
Athou / docker-wsl2-setup.sh
Last active December 11, 2024 18:33
install docker in Debian 11/WSL2 without Docker Desktop
# install docker in Debian 11/WSL2
# uses systemd-genie since docker requires systemd but it's not available for WSL
# this is an alternative to Docker Desktop
# prerequisites
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ca-certificates curl wget gnupg lsb-release apt-transport-https
# systemd-genie requires dotnet runtime, add Microsoft repo
@zcyemi
zcyemi / GradleConfig.cs
Created March 5, 2018 04:55
Single file C# gradle file parser
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Text;
using System;
using Newtonsoft.Json;
namespace CIS
{
public class GradleConfig
@nemotoo
nemotoo / .gitattributes
Last active December 11, 2024 10:15
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@jarek-przygodzki
jarek-przygodzki / aria2-add.csx
Created July 4, 2014 16:19
aria2 add download using JSON-RPC
/*
* scriptcs -install Newtonsoft.Json
* scriptcs -install CommandLineParser
*/
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;