Skip to content

Instantly share code, notes, and snippets.

View joleeee's full-sized avatar
🤳

Jonas joleeee

🤳
  • Norway
View GitHub Profile
apk add mdadm
echo path to disk A?
read a
echo path to disk B?
read b
mdadm --create --verbose /dev/md0 --level=raid0 --raid-devices=2 $a $b
cp /etc/mdadm.conf /tmp/mdadm.conf
mdadm --detail --scan /dev/md0 >> /tmp/mdadm.conf
@joleeee
joleeee / Sprite.cs
Created October 24, 2018 08:33
Aseprite importer for monogame, very crude prototype.
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Linq;
using Newtonsoft.Json.Linq;
class Sprite
{
public Vector2 position;
public Texture2D texture;
@joleeee
joleeee / CRT_Shader_Godot.shader
Created August 11, 2018 19:49
A simple CRT shader for godot, use with ColorRect or similar.
shader_type canvas_item;
render_mode unshaded;
uniform float bleeding_range_x = 3.0;
uniform float bleeding_range_y = 2.0;
uniform float screen_width = 640.0;
uniform float screen_height = 360.0;
uniform float barrel_power : hint_range(1.0, 2.0) = 1.1;
uniform float lines_distance = 2.0;