This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python module index | |
import argparse | |
import logging | |
import os | |
import shutil | |
from pathlib import Path | |
# 3rd party | |
import cv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Renames detected sound files to the corresponding songs in it. | |
note: all sound files in current directory and all subdirectories are renamed | |
note: does not rename when the song could not be detected | |
note: new sound file name will be consisting of the following | |
author - title | |
Pre-requisites: | |
- Install Python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/dash | |
# A script to perform incremental backups using rsync and a backup device | |
# | |
# Usage: | |
# - Place this script into /usr/local/sbin/ | |
# - Adapt BACKUP_DEVICE variable to your backup device | |
# - Setup backup.sh as a automated job/task: | |
# - If you have a desktop that is not turned on all the time | |
# it is recommended to use anacron instead of cron. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Description: This bash-script updates the pi, pihole and sends a status via email | |
# Author: RobHue | |
# Pre-Requisites: | |
# - install pihole (see https://docs.pi-hole.net/main/basic-install/) | |
# - "sudo apt install sendEmail libio-socket-ssl-perl libnet-ssleay-perl" | |
# - create a gmail account for your PI | |
# So this file can be executed: "sudo -i && chmod u+x pihole_task.sh" | |
# So no others can read the password: "chmod og-rwx pihole_task.sh" | |
# Usage: Add this script to the root's cron-jobs via "crontab -e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class NODE_PT_MAINPANEL(bpy.types.Panel): | |
"""Creates a Panel in the Object properties window""" | |
bl_label = "Custom Node Group" | |
bl_idname = "NODE_PT_MAINPANEL" | |
bl_space_type = 'NODE_EDITOR' | |
bl_region_type = 'UI' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type used for names in OpenGL is GLuint | |
GLuint buffer; | |
// Create a buffer | |
glCreateBuffer( sizeof(buffer)/sizeof(GLuint), &buffer); | |
// Specify the data store parameters for the buffer | |
glNamedBufferStorage( | |
buffer, // Name of the buffer | |
1024 * 1024, // 1 MiB of space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SHADER_H | |
#define SHADER_H | |
#include <GL/glew.h> | |
#include <iostream> // std::cout std::cin | |
#include <fstream> // std::ifstream | |
#include <string> // std::string | |
#include <sstream> // std::stringstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
#include <iostream> // std::cout std::cin | |
#include <fstream> // std::ifstream | |
#include <string> // std::string | |
#include <sstream> // std::stringstream | |
/// @brief reads the file give by its path filePath | |
/// @return a copy of the content of the file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Custom_Archive.hpp | |
* | |
* Created on: Sep 8, 2017 | |
* Author: robert | |
*/ | |
#ifndef Custom_ARCHIVE_HPP_ | |
#define Custom_ARCHIVE_HPP_ |