Skip to content

Instantly share code, notes, and snippets.

@mrzmyr
mrzmyr / commands.js
Created March 2, 2022 08:41
Set innerHTML in Cypress
Cypress.Commands.add('html', { prevSubject: true }, (subject, html) => {
subject[0].innerHTML = html
})
@mrzmyr
mrzmyr / index.js
Last active December 7, 2021 20:34
SMA EV Charger - Get/Set Paramter API
const querystring = require('querystring');
const axios = require('axios');
const https = require('https');
const USERNAME = '';
const PASSWORD = '';
const ROOT_URL = ''
class Client {
constructor(options) {

Hallo FIRMEN_NAME,

Ich schreibe, um offiziell einen Antrag auf Zugang zu einer Kopie aller Informationen über mich zu stellen, auf die ich nach den allgemeinen Datenschutzbestimmungen (2018) Anspruch habe.

Bitte geben Sie alle Informationen über mich an, auf die ich nach Artikel 15 des DSGVO Anspruch habe.

Bitte beachten Sie, dass Sie meinem Antrag auf die Erteilung einer Auskunft über personenbezogene Daten unverzüglich, spätestens jedoch innerhalb eines Monats nach Erhalt, nachkommen müssen. Die Frist beginnt ab dem Tag nach Erhalt dieser Anfrage (ob der Tag danach ein Werktag ist oder nicht) bis zum entsprechenden Kalenderdatum im nächsten Monat.

Wenn Sie weitere Informationen von mir benötigen, um meiner Bitte nachzukommen, können Sie mich unter der genannten Adresse per E-Mail an EINE_EMAIL kontaktieren.

@mrzmyr
mrzmyr / letter.md
Created January 14, 2019 22:29
Subject Access Request - General Data Protection Regulations (GDPR)

I am writing to formally make a Subject Access Request for a copy of all information about me to which I am entitled under the General Data Protection Regulations (2018).

Please supply all the information about me which I am entitled to under Article 15 of the GDPR.

Please note, you must comply with my Subject Access Request without undue delay and at the latest within one month of receipt. The time limit starts from the day after you received this request (whether the day after is a working day or not) until the corresponding calendar date in the next month.

If you require any further information from me, to comply with my request, then you may contact me at the above address, by email at YOUR_MAIL.

If you do not normally deal with these requests, please pass this letter to your company’s Data Protection Officer or other appropriate official. If you need advice on dealing with this request, the Information Commissioner’s Office can assist you and can be contacted on 0303 123 1113 or at ico.org.uk

#!/usr/bin/env python
import cherrypy
import os
import sys
import threading
import traceback
import webbrowser
from base64 import b64encode
from fitbit.api import Fitbit
@mrzmyr
mrzmyr / credentials.json
Created November 12, 2018 11:58
Google Sheets addRow and Authentication
// Go to https://developers.google.com/sheets/api/quickstart/nodejs
// Click 'ENABLE THE GOOGLE SHEETS API'
// Download credentials.json
@mrzmyr
mrzmyr / d.md
Created October 10, 2016 09:27
Fix "Bundler::Fetcher::CertificateFailureError"
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::Certific

Keybase proof

I hereby claim:

  • I am mrzmyr on github.
  • I am mrzmyr (https://keybase.io/mrzmyr) on keybase.
  • I have a public key whose fingerprint is E16F 9D71 5DEC 5F3F AC2C 70EA 3345 23C5 1137 E496

To claim this, I am signing this object:

@mrzmyr
mrzmyr / beamer.service.js
Created January 5, 2016 10:11
ConnectSDK Angular 1.x Service
angular.module('app')
.service('beamerService', function ($q) {
if(!window.cordova) {
window.ConnectSDK = {
discoveryManager: {
startDiscovery: angular.noop,
pickDevice: angular.noop
}
@mrzmyr
mrzmyr / index.js
Created November 22, 2015 16:56
React Native - Detect Double Tap
var Index = React.createClass({
getInitialState: function () {
return {
lastPress: 0
}
},
onPress: function () {
var delta = new Date().getTime() - this.state.lastPress;