Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
sergejmueller / index.html
Created February 21, 2020 13:41
Radio fields check and uncheck
<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 September 17, 2022 18:19
NVIDIA GPUs Monitoring + Remote Dashboards (for each GPU)

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 / SimpleStorage.html
Created September 10, 2019 03:59
Simple Smart Contract App
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SimpleStorage Dapp</title>
</head>
<body>
@sergejmueller
sergejmueller / Locations.sol
Created September 9, 2019 15:04
Locations Smart Contract
pragma solidity 0.4.26;
contract Locations {
struct Location {
string lat;
string long;
}
Location[] locations;
@sergejmueller
sergejmueller / BucketPolicy.json
Last active February 23, 2019 20:16
AWS S3 Bucket Policy to protect a bucket web access by IP (Range)
{
"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 February 16, 2019 19:48
Picture upload to Cloudinary without bloated Cloudinary PHP-SDK.
<?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 / selfpv_energy.ino
Created May 3, 2017 18:38
ESP8266 + SSD1306 ♥ FRITZ!Box API
/*
* 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 / email.html
Created December 8, 2016 08:09
Media Queries with dynamically image loading
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Your Message Subject or Title</title>
<style type="text/css">
.bg {
width:300px;
@sergejmueller
sergejmueller / email.html
Created December 7, 2016 20:45
Email test to check the 102 KB email size limit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Your Message Subject or Title</title>
<style type="text/css">
</style>
@sergejmueller
sergejmueller / Preferences.sublime-settings
Last active December 5, 2016 14:51
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",