Skip to content

Instantly share code, notes, and snippets.

View cgcostume's full-sized avatar

Daniel Limberger cgcostume

View GitHub Profile
@cgcostume
cgcostume / ls-clip.cmd
Created January 18, 2016 14:10
copy all file names within a directory into clipboard (within git repository)
git ls-files | clip
https://api.github.com/repos/cginternals/glbinding/releases
-> choose release url, e.g.,
https://api.github.com/repos/cginternals/glbinding/releases/2514939
@cgcostume
cgcostume / install-jekyll.ps1
Last active January 12, 2018 16:33
install jekyll via choco in power shell
choco install ruby -version 2.2.4
# download at https://rubygems.org/downloads/rubygems-update-2.7.4.gem
gem install --local C:\tools\rubygems-update-2.7.4.gem
update_rubygems
gem uninstall rubygems-update -x
choco install ruby2.devkit
$env:Path +=";C:\tools\DevKit2\bin"
cd C:\tools\DevKit2\
@cgcostume
cgcostume / GLSL pseudo-rand
Created April 29, 2019 08:42
from "The Book of Shaders" by Patricio Gonzalez Vivo & Jen Lowe (https://thebookofshaders.com/10/)
float r = fract(sin(dot(uv, vec2(12.9898,78.233))) * 43758.5453123);
@cgcostume
cgcostume / firefly-iii-pi-4-howto.md
Last active February 17, 2024 16:26
Configuration of a firefly-iii server using docker and docker-compose on a Raspberry Pi 4

Firefly III on Raspberry Pi 4

Preparations

The following steps describe the prerequisites for the actual firefly setup:

  1. Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).

  2. Create an empty ssh file on the SD card's boot partition.

@cgcostume
cgcostume / shaall.py
Created January 31, 2020 19:52
Iterate over all Files within a Directory and Output File Paths and Hashes
import argparse
import hashlib
import math
import os
import sqlite3
import sys
import locale
locale.setlocale(locale.LC_ALL, '')
@cgcostume
cgcostume / shadir.py
Created January 31, 2020 19:53
Create a data base with Directory Hashes
import argparse
import hashlib
import math
import numpy
import os
import sqlite3
import sys
import locale
locale.setlocale(locale.LC_ALL, '')
@cgcostume
cgcostume / rename.py
Last active August 29, 2021 18:06
Rename Image Files using EXIF or other available Timestamp Data (date taken) as new Filename
import os
import glob
import re
import exifread
import sys
import datetime
import pytz
from tzlocal import get_localzone
from time import sleep
@cgcostume
cgcostume / raspbee-pi-3-howto.md
Last active November 2, 2023 20:27
Configuration of a Raspbee (with deCONZ/phoscon) and node-RED server using docker and docker-compose on a Raspberry Pi 3

Raspbee on Raspberry Pi 3

Preparations

The following steps describe the prerequisites for the actual raspbee setup (deCONZ/phoscon and node-RED):

  1. Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).

  2. Create an empty ssh file on the SD card's boot partition.