Skip to content

Instantly share code, notes, and snippets.

View samsamm777's full-sized avatar

Sam Hudson samsamm777

View GitHub Profile
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active June 21, 2024 21:59
Byte formatting for Google Sheets
@fevangelou
fevangelou / my.cnf
Last active July 23, 2024 01:43
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@ARolek
ARolek / ImageMagick-Amazon-Linux.md
Last active February 10, 2023 00:07
Install ImageMagick from source on Amazon Linux

I needed a newer version of ImageMagick than is available on the yum packages on Amazon Linux. I tried using the remi repo but it failed with dependency errors. Here is what I did to install ImageMagick with support for PNG, JPG, and TIFF.

download the most recent package

wget http://www.imagemagick.org/download/ImageMagick.tar.gz

uncomress the package

@grazer
grazer / red circle shader
Last active March 8, 2023 23:41
red circle GLSL fragment shader
void main(void) {
// the center of the texture
vec2 center = vec2(iResolution.x/2.0,iResolution.y/2.0);
// current pixel location
vec2 loc = gl_FragCoord.xy;
// how far we are from the center
float radius=length(loc-center);