Skip to content

Instantly share code, notes, and snippets.

View Michaelangel007's full-sized avatar

Michael "Code Poet" Pohoreski Michaelangel007

  • Seattle, WA
View GitHub Profile
@aleksasiriski
aleksasiriski / EldenRingSeamlessUnlockOnSteamFlatpak.md
Last active February 25, 2024 12:25
Elden Ring running on Steam Flatpak with Seamless COOP and other mods like FPS Unlock

Linux Guide - How to run Elden Ring on Steam Flatpak with Seamless COOP and other mods like FPS Unlock

Steam Flatpak and Proton-GE

I suggest using latest Proton GE, I haven't tested this on normal proton or experimental.

flatpak install com.valvesoftware.Steam com.valvesoftware.Steam.CompatibilityTool.Proton-GE

Elden Ring Mod Loader

@neutrino84
neutrino84 / PlanetShader.frag
Last active June 17, 2022 20:45
GLSL Planet Shader
precision lowp float;
uniform sampler2D channel0;
uniform float time;
varying vec2 vTextureCoord;
// rendering params
const float sphsize = 0.8; // planet size
const float dist = 0.08; // distance for glow and distortion
@xvitaly
xvitaly / remove_crw.cmd
Last active March 16, 2024 16:12
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
@nkurz
nkurz / c.c
Created December 22, 2014 23:30
// C implementation for Pathfinding Benchmark by nate@verse.com
// See https://github.com/logicchains/LPATHBench for details
// Summary of benchmarks (see bottom for full numbers)
// 8981 LANGUAGE C 623
// 8981 LANGUAGE C++/clang 734
// 8981 LANGUAGE C++/gcc 755
// Best results compiling with GCC 4.7 or 4.8 -O2
// clang, icc and GCC 4.9 slightly worse with -O1, -O2, -O3, -Ofast
// -O3 and -Ofast much worse for all GCC. -O1 mixed but worse.
# Edit this file as you like and merge with $HOME/.gitconfig (global) or .git/config (given repo only)
#
# See https://help.github.com/articles/set-up-git
#
# See http://git-scm.com/docs/git-config
# or http://www.kernel.org/pub/software/scm/git/docs/git-config.html
#
# See http://git-scm.com/book/en/Customizing-Git-Git-Configuration
# or http://progit.org/book/ch7-1.html
#
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active February 9, 2024 03:42
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@jcdickinson
jcdickinson / colorblind.glsl
Last active June 29, 2023 21:49
Colorblind Simulation Shader
/*-----------------------------------------------------------.
/ ColorBlind correction /
'-----------------------------------------------------------*/
// Daltonize (source http://www.daltonize.org/search/label/Daltonize)
// Modified to simulate color blindness.
float4 Daltonize( float4 input, float2 tex )
{
// RGB to LMS matrix conversion
float3 L = (17.8824f * input.r) + (43.5161f * input.g) + (4.11935f * input.b);
float3 M = (3.45565f * input.r) + (27.1554f * input.g) + (3.86714f * input.b);
@castano
castano / hemicube.cpp
Created June 20, 2014 09:46
Hemicube Integrator
#include "hemicube.h"
#define PACK_HEMICUBES 1
static void get_hemicube_face_normal(int index, Vector3 *forward, Vector3 *left, Vector3 *up) {
// Unwrapped hemicube with positive-Z in the middle.
switch (index) {
case 0: *forward = Vector3(+1, 0, 0); *left = Vector3( 0, 1, 0); break;
@MarcusVoelker
MarcusVoelker / main.cpp
Created May 14, 2014 15:28
Short testing program to benchmark the performance of various timers on your linux system
#include <iostream>
const unsigned long long SEC = 1000L*1000L*1000L;
inline unsigned long long timespecTo64( const timespec &_time ) {
return ( _time.tv_sec*SEC + _time.tv_nsec );
}
void runTest(clockid_t clkid, std::string const& name)
{
anonymous
anonymous / gist:7179097
Created October 27, 2013 08:17
C++ Fast Integer To String Conversion
/*
*****************************************************************************
* The C++ Integer To String Conversion Benchmark *
* *
* This benchmark is based on the solutions provided in the following *
* stackoverflow question: *
* *
* http://stackoverflow.com/q/4351371 (Date: 20101204) *
* *
* Title: C++ Performance Challenge - Integer To std::string Conversion *