Skip to content

Instantly share code, notes, and snippets.

View kaesaecracker's full-sized avatar

Vinzenz Schroeter kaesaecracker

  • Germany
  • 10:26 (UTC +01:00)
View GitHub Profile
@stepbester
stepbester / tasks.json
Last active August 28, 2024 23:59
Example user tasks for Free Pascal in VS Code
{
// Based on: https://gist.github.com/pakLebah/dab98067e9a388a3a8d2f5c0b44a7d3f#file-tasks-json
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}",
"env": {
// task settings for files and folders, use full path for commands
"FPC_COMMAND": "fpc",
"PROJECTFILE": "${relativeFile}",
"PROJECTBASE": "${fileBasenameNoExtension}",

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

@madduci
madduci / ftth_openwrt.md
Last active November 11, 2024 13:44
Deutsche Telekom FTTH Access with OpenWRT

Configuring Deutsche Telekom FTTH Access with OpenWRT

After looking for alternatves to the suggested Router from Telekom (AVM FritzBox and HUawei Speedport), I've discovered the possibility of configuring my existing OpenWRT Router to act as gateway to the Telekom FTTH (Fiber To The Home) Magenta Zuhause package.

TL;DR

The WAN interface must be configured as follows (see your Telekom letter):

  • Protocol: PPPoE
  • PAP/CHAP username:
@note35
note35 / httpdctl.sh
Last active January 19, 2018 09:16
Cygwin
# Document: https://cygwin.rafaelhart.com/daemons/web-server-apache/
# Updated: 2016/01/28
# Install: cygrunsrv, httpd
#
# Please, run `cygserver-config` before run this script
usage ()
{
echo 'Usage : httpdctl <start|restart|stop>'
exit
@liam-middlebrook
liam-middlebrook / GLDebugMessageCallback.c
Last active September 4, 2024 04:21
GL Debug Output Message Callback Guide
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute
// this software, either in source code form or as a compiled binary, for any
// purpose, commercial or non-commercial, and by any means.
//
// In jurisdictions that recognize copyright laws, the author or authors of this
// software dedicate any and all copyright interest in the software to the
// public domain. We make this dedication for the benefit of the public at large
// and to the detriment of our heirs and successors. We intend this dedication
@Gerjo
Gerjo / png-opengl
Last active April 30, 2020 13:58
Basic PNG OpenGL texture loading.
struct Textures {
static GLuint LoadPNG(const std::string& filename) {
if( ! FileExists(filename)) {
Exit("Cannot open png: %s.", filename.c_str());
}
FILE* fp = ::fopen(filename.c_str(), "r");
png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
@niw
niw / libpng_test.c
Last active November 18, 2024 00:15
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng16 libpng_test.c