Skip to content

Instantly share code, notes, and snippets.

View axelrindle's full-sized avatar
🌴
California looks good on ya

Axel Rindle axelrindle

🌴
California looks good on ya
View GitHub Profile
@axelrindle
axelrindle / cson.xml
Created January 29, 2017 09:43
Notepad++ CSON Language Definition (UDL)
<NotepadPlus>
<UserLang name="CSON" ext="cson" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02\n 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@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]
@axelrindle
axelrindle / update-phpMyAdmin.sh
Last active September 2, 2018 20:50
phpMyAdmin Updater Shell Script
#!/bin/bash
# Directories
BASE_PATH="/mnt/1TBHDD/www"
BACKUP_DIR="$BASE_PATH/backup"
DOCROOT="$BASE_PATH/docroot"
APP_DIR="$DOCROOT/phpmyadmin"
# Ask for the latest version
printf " > Enter the latest phpMyAdmin version: "
@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 / 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 / loop.sh
Last active November 15, 2023 14:33
for i in {1..100}
do
echo -e "$i / 100\x1B[1F"
sleep .1
done