Skip to content

Instantly share code, notes, and snippets.

View DanielVolz's full-sized avatar

Daniel Volz DanielVolz

  • Germany
  • 06:06 (UTC +02:00)
View GitHub Profile
@alwynallan
alwynallan / Makefile
Last active April 4, 2024 04:42
Hardware PWM Controller for the Raspberry Pi 4 Case Fan
CC = gcc
RM = rm -f
INSTRUMENT_FOR_PROMETHEUS := false
ifeq ($(INSTRUMENT_FOR_PROMETHEUS),true)
CFLAGS = -Wall -DINSTRUMENT_FOR_PROMETHEUS
LIBS = -lbcm2835 -lprom -lpromhttp -lmicrohttpd
else
CFLAGS = -Wall
@henryjfry
henryjfry / container.py
Last active September 15, 2021 20:36
TMDBHelper Library integration: ~/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/container.py
kodi-send --action='RunPlugin(plugin://plugin.video.themoviedb.helper?info=trakt_collection_tv)'
###~/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/container.py
def router(self):
# ROUTER LIST FUNCTIONS
if self.params.get('info') == 'stream':
from resources.lib.player import Player
xbmcplugin.setResolvedUrl(self.handle, True, xbmcgui.ListItem(path=str()))
params = self.params.copy()
@ganapativs
ganapativs / iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
Last active May 7, 2024 10:52
iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup
@braian87b
braian87b / dumb-ap-wired-link.sh
Last active May 9, 2024 10:28
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@sebastienvercammen
sebastienvercammen / Code.gs
Last active March 9, 2022 09:58
Nintendo PTC Account Verifier for Gmail v2 with CORS proxy (via Google Scripts & jQuery)
/*
Automatically click all "Verify your email" links in the welcome e-mail from
Nintendo Pokémon Trainer Club's signup e-mails.
Only unread emails in inbox will be processed.
All processed e-mails will be marked as read if verification was successful,
and optionally moved to trash if it's enabled in your settings.
How to use:
1. Login to Gmail
@desrtfx
desrtfx / Day3.java
Last active December 3, 2015 21:47
Advent of Code Day 3 - Version 2 - Set Version
import java.awt.Point;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
public class Day3 {
public static void main(String[] args) {
@NickRSearcy
NickRSearcy / how-to-jupyter.md
Last active September 7, 2018 01:29
How to use Jupyter for general-purpose academic coding

What is Jupyter?

The most important part of Jupyter for our purposes is the Notebook, a tool for developing and documenting code across a variety of languages. Take a moment and check out a gallery of fantastic notebooks to get an idea of what it is used for.

How to get Jupyter

All users can install Jupyter according to the installation instructions in the Jupyter documentation. I will refer to this as the "Anaconda method" because that is the package manager recommended in the official documentation. This should work smoothly, especially if you primarily intend to use Python in Jupyter.

However, for Mac users, I would recommend an alternative installation method (the "Homebrew method") that should make it easier to support alternative languages.

@tdpreece
tdpreece / simple_http_server.sh
Created September 25, 2015 16:38
Running a Python SimpleHTTPServer in the background and killing it when doneSimpleHTTPServer
#!/usr/bin/env bash
# Create a page in the current dir
echo "My Test Page" > test.html
# Start server
python -m SimpleHTTPServer 8000 &> /dev/null &
pid=$!
# Give server time to start up
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software