Skip to content

Instantly share code, notes, and snippets.

View axelrindle's full-sized avatar
🌴
https://open.spotify.com/track/2cs6ASglDOWlPnlWbfaBZf?si=a9cae2ea41274325

Axel Rindle axelrindle

🌴
https://open.spotify.com/track/2cs6ASglDOWlPnlWbfaBZf?si=a9cae2ea41274325
View GitHub Profile
@axelrindle
axelrindle / hex-opacity.ts
Created August 20, 2024 08:29
Hexadecimal RGB Opacity
import { log } from 'console'
type Row = {
opacity: string
hex: string
}
const rows: Row[] = []
function dec2hex(dec: number) {
@axelrindle
axelrindle / loop.sh
Last active November 15, 2023 14:33
for i in {1..100}
do
echo -e "$i / 100\x1B[1F"
sleep .1
done
@axelrindle
axelrindle / show-temperatures.sh
Created October 14, 2019 15:56
bash utilities
#!/bin/sh
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "GPU => $(vcgencmd measure_temp | cut -d '=' -f 2)"
echo "CPU => $((cpu/1000))'C"
@axelrindle
axelrindle / Bundle.cs
Last active April 12, 2019 13:30
Unity3D Script Collection
using System.Collections.Generic;
/// <summary>
/// A bundle holds data that will be saved to disk later.
/// </summary>
public class Bundle
{
#region Fields
private readonly Dictionary<string, object> _data;
@axelrindle
axelrindle / .htaccess
Last active May 27, 2018 10:36
Small PHP Blog System
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/?$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]