Skip to content

Instantly share code, notes, and snippets.

View Kwyrky's full-sized avatar

Kwyrky

View GitHub Profile
@Kwyrky
Kwyrky / linux-mint-version.sh
Created May 5, 2024 16:04
Show info about linux mint version
#! /bin/bash
# save this script to a file, e.g. "linux-mint-version.sh"
# make it executable with "chmod +x linux-mint-version.sh"
# run the script with "./linux-mint-version.sh"
linux_mint_version=$(cat /etc/lsb-release | grep DESCRIPTION | awk -F= '{print $2}' | tr -d '"')
codename=$(cat /etc/os-release | grep UBUNTU_CODENAME | awk -F= '{print toupper(substr($2,1,1)) substr($2,2)}')
@Kwyrky
Kwyrky / new-index.html
Created November 27, 2023 19:02
Changed index.html file in the Blazor WASM test project.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>BlazorWasmGame1</title>
<base href="./" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/app.css" rel="stylesheet" />
@Kwyrky
Kwyrky / FrameStore.cs
Last active February 25, 2020 19:00 — forked from Jjagg/FrameStore.cs
Store and export old frames in MonoGame using ImageSharp. MIT license: https://opensource.org/licenses/MIT
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.PixelFormats;
namespace GifRecorderMG
{
@Kwyrky
Kwyrky / ShaderManager.cs
Created February 25, 2020 09:14 — forked from jackmott/ShaderManager.cs
Hot Swappable Shaders for MonoGame
/*
HotSwap shader sytem for MonoGame
HotSwap code only exists for debug builds
Edit paths to match your project
Construct in your Initialize method
Add shaders in LoadContent (or whenever)
Call CheckForChanges in Update() or periodically however you like
mgcb.exe usually located in C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools
*/