Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Sergej Müller sergejmueller

:octocat:
View GitHub Profile
@sergejmueller
sergejmueller / index.html
Created Feb 21, 2020
Radio fields check and uncheck
View index.html
<input type="radio" name="1" class="radio">
<input type="radio" name="1" class="radio">
<input type="radio" name="1" class="radio">
<input type="radio" name="1" class="radio">
<br>
<input type="radio" name="2" class="radio">
<input type="radio" name="2" class="radio">
<input type="radio" name="2" class="radio">
<input type="radio" name="2" class="radio">
@sergejmueller
sergejmueller / README.md
Last active Dec 15, 2019
NVIDIA GPUs Monitoring + Remote Dashboards (for each GPU)
View README.md

Monitor anytime and anywhere your installed NVIDIA GPUs with permanent sync to dweet.io - a remote public dashboard for each GPU.

Features

  • No setup, no registration, easy to use Batch file
  • List of installed cards with their current properties
  • Display average properties
  • Push the single GPU data to dweet.io (can be disabled by remoteDashboardActive)
  • Auto refresh every 30 seconds (can be changed by refreshInterval)
  • One remote dashboard for each GPU
@sergejmueller
sergejmueller / BucketPolicy.json
Last active Feb 23, 2019
AWS S3 Bucket Policy to protect a bucket web access by IP (Range)
View BucketPolicy.json
{
"Version": "2012-10-17",
"Id": "Policy1550216993456",
"Statement": [
{
"Sid": "Stmt1550216977234",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-site/*",
@sergejmueller
sergejmueller / Cloudinary.php
Created Feb 16, 2019
Picture upload to Cloudinary without bloated Cloudinary PHP-SDK.
View Cloudinary.php
<?php
// Cloudinary API
define('CLOUDINARY_API_KEY', 'XXXXXXXX');
define('CLOUDINARY_SECRET_KEY', 'XXXXXXXX');
define('CLOUDINARY_API_URL', 'https://api.cloudinary.com/v1_1/XXXXXXXX/image/upload');
// Image handling
$path = 'picture.png';
$type = pathinfo($path, PATHINFO_EXTENSION);
@sergejmueller
sergejmueller / index.html
Created Mar 5, 2018
Detect mobile device
View index.html
<script>
"use strict";
class inputCapture {
constructor(id, style) {
this.id = id
this.style = style
this.element = null
}
@sergejmueller
sergejmueller / selfpv_energy.ino
Created May 3, 2017
ESP8266 + SSD1306 FRITZ!Box API
View selfpv_energy.ino
/*
* ESP8266 + SSD1306 ♥ FRITZ!Box API
*
* Ausgabe der aktuell über die FRITZ!DECT 200 Steckdose
* entnommenen Leistung als Prozentwert auf einem SSD1306 OLED Display.
* Praxisbeispiel: Durch die Solaranlage eingespeiste Leistung abrufen
* und auf dem OLED Display in Form eines Prozentwertes einblenden.
*
* Referenzen:
* http://www.instructables.com/id/Wemos-D1-Mini-096-SSD1306-OLED-Display-Using-SPI/
@sergejmueller
sergejmueller / Preferences.sublime-settings
Last active Dec 5, 2016
Preferences.sublime-settings
View Preferences.sublime-settings
{
"caret_extra_width": 1,
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
@sergejmueller
sergejmueller / wpcheck.md
Last active Mar 8, 2018
wpcheck – Sicherheitsscanner für WordPress
View wpcheck.md

wpcheck – Sicherheitsscanner für WordPress

Einige von euch haben es bereits mitbekommen: Seit einigen Monaten arbeite ich an einem Sicherheitsscanner für WordPress. Jetzt zu WordCamp Frankfurt 2016 möchte ich die Öffentlichkeit auf die stabile, jedoch keineswegs finale Version des Tools hinweisen:

Nicht final aus dem Grund, weil der Scanner um unendlich viele Funktionen vervollständigt werden kann. Das muss aber nicht unbedingt im Kern der Anwendung geschehen. Dank der modularen Bauweise kann der Funktionsausbau durch Drittentwickler erfolgen.

Ideologie

@sergejmueller
sergejmueller / parse.php
Last active Nov 6, 2016
Parse User-Agents from a text file and extract Browser/Platform data
View parse.php
<?php
# Enable errors
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
# Push up memory
ini_set( 'memory_limit', '128M' );
ini_set( 'max_execution_time', 300 );
@sergejmueller
sergejmueller / functions.php
Last active Dec 6, 2018
WordPress: Disable Post-by-Email configuration and functionality
View functions.php
<?php
add_filter('enable_post_by_email_configuration', '__return_false');
You can’t perform that action at this time.