Skip to content

Instantly share code, notes, and snippets.

View nurtext's full-sized avatar
🚀
Don't tell me the sky is the limit, when there are footprints on the moon

Cedric Kastner nurtext

🚀
Don't tell me the sky is the limit, when there are footprints on the moon
View GitHub Profile
@nurtext
nurtext / README.md
Last active November 13, 2025 09:12
Roborock Q7 Max Voice Packs for Valetudo

Roborock Q7 Max Voice Packs

  1. Copy the desired voice_pkg_url to your clipboard and open the Valetudo UI
  2. Navigate to Robot ➡️ Misc Options
  3. Paste the URL and use va als language code
  4. Leave Hash empty and click Set Voice Pack
  5. Use Test Sound Volume to preview the updated voice pack

May work with other Roborock robots as well

@nurtext
nurtext / .htaccess
Last active May 1, 2023 19:24
Tell apache we're on HTTPS if reverse proxy is serving the site using SSL
# Let apache know we're behind a SSL reverse proxy
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
# Redirect to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IFModule>
@nurtext
nurtext / keybase.md
Created October 1, 2014 12:12
keybase.md

Keybase proof

I hereby claim:

  • I am nurtext on github.
  • I am nurtext (https://keybase.io/nurtext) on keybase.
  • I have a public key whose fingerprint is 2E24 B2EC 678A E429 6488 0477 5286 0A8C 6B1C 2706

To claim this, I am signing this object:

@nurtext
nurtext / accordion.html
Created October 22, 2013 15:56
Simple CSS3 based horizontal accordion
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>CSS3 Accordion</title>
<style>
#accordion {
width: 810px;
height: 600px;
margin: 20px auto;
@nurtext
nurtext / shorthand_return_values.php
Last active December 26, 2015 02:49
Shorthand return values without variable assignment
<?php
// Example class
class Hello
{
// Just a simple function wich returns a string
public function World($name = 'World')
{
return sprintf("Hello %s\n", $name);
}
@nurtext
nurtext / fonts.jsx
Created April 24, 2013 09:52
Javascript to list all fonts used within a Photoshop document. May take a while on large documents to finish…
#target photoshop
function sort_unique(arr)
{
arr = arr.sort();
var ret = [arr[0]];
for (var i = 1; i < arr.length; i++)
{
if (arr[i-1] !== arr[i]) { ret.push(arr[i]); }
@nurtext
nurtext / tomorrow.php
Last active December 16, 2015 13:39
Get tomorrow's date
<?php
// Optional
date_default_timezone_set('Europe/Berlin');
// Set the date to tomorrow (midnight)
$tomorrow = new DateTime('tomorrow');
// Print the result
print_r($tomorrow);
@nurtext
nurtext / brothers_in_binary.php
Last active December 16, 2015 03:39
This code sample tries to find perfect numbers using the „Brothers in Binary“ theorem. For more information visit: http://www.futilitycloset.com/2013/04/09/brothers-in-binary/
<?php
// Loop until the 20th binary digit of 0
for ($bin = 1; $bin < 20; $bin++)
{
// 1 has always one digit more than 0
$bin_str = str_repeat('1', $bin +1) . str_repeat('0', $bin);
// Convert binary to decimal
$dec = bindec($bin_str);
@nurtext
nurtext / gist:4031775
Created November 7, 2012 14:01
Mail 2 Reminder
tell application "Mail"
using terms from application "Mail"
set theSelection to selection
set theMessage to first item of theSelection
set theBody to "message:%3C" & message id of theMessage & "%3E"
set theSubject to the subject of theMessage
tell application "Reminders"
set theList to first item of reminders
make new reminder with properties {name:theSubject, body:theBody, container:theList}
end tell
@nurtext
nurtext / gist:3083354
Created July 10, 2012 13:50
Third-party cookies using IE 9 and iFrames
<?
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');