Skip to content

Instantly share code, notes, and snippets.

View killerbees19's full-sized avatar
🐢
I may be slow to respond.

Christian killerbees19

🐢
I may be slow to respond.
View GitHub Profile
<?php
phpinfo();
?>
@killerbees19
killerbees19 / getssl_syno-le.md
Last active May 27, 2017 10:47
Synology NAS mit Let's Encrypt (über getssl)

Achtung: Wichtiger Hinweis…

BITTE NUR AUSFÜHREN, WENN DU GANZ GENAU WEISST, WAS DU TUST! VERWENDUNG AUF EIGENE GEFAHR. DU KÖNNTEST DIR DEINE DISKSTATION UNBRAUCHBAR MACHEN. DU BIST AUF DICH ALLEINE GESTELLT.

Die beschriebene Methode funktioniert nur mit DSM 5.2! Neuere DSM-Versionen arbeiten intern komplett anders. Bei älteren Versionen müssen Pfade und Startscripte angepasst werden.

Getestet mit DSM 5.2-5967 Update 2

Vorbereitungen

Damit die automatische Einbindung funktioniert, muss SSL/TLS auf der Diskstation bereits über ein importiertes Zertifikat aktiviert worden sein. Außerdem muss getssl für die ACME-DNS-Challenge eingerichtet sein. Ohne API des Domainregistrars wird es also nicht funktionieren!

@killerbees19
killerbees19 / playlist.m3u
Created April 30, 2017 17:19 — forked from dbiesecke/movies.m3u
pvr.iptvsimple iptvde.m3u
#EXTM3U
#EXTINF:-1 tvg-id="SkyCinema" tvg-logo="SkyCinema.png",SkyCinema
http://skyfall.to/SkyCinema/index.m3u8
#EXTINF:-1 tvg-id="Sky.National.GeographicHD",Sky.National.GeographicHD
http://skyfall.to/NationalGeographic/index.m3u8
#EXTINF:-1 tvg-id="Sky.National.Geographic.Wild",Sky.National.Geographic.Wild
http://skyfall.to/NatGeoWild/index.m3u8
#EXTINF:-1 tvg-id="Sky.Discovery.Channel.HD",Sky.DiscoveryHD
http://skyfall.to/DiscoveryChannel/index.m3u8
#EXTINF:-1 tvg-id="SkyCinemaAction" tvg-logo="SkyCinemaAction.png",SkyCinemaAction
@killerbees19
killerbees19 / git-deployment.md
Created May 9, 2017 16:51 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

@killerbees19
killerbees19 / CVE-2017-7494.md
Last active July 4, 2020 17:56
CVE-2017-7494

Workarounds for CVE-2017-7494.

Synology DSM 5.2

sed -i -r 's#^(exec /usr/bin/smbd -F)$#\1 --option="nt pipe support = no"#' /etc/init/smbd.conf
/usr/syno/sbin/synoservicectl --restart smbd
#!/usr/bin/perl -w
# vim: set sw=4 ts=4 tw=78 et si:
#
use 5.010;
use strict;
use warnings;
use Getopt::Long;
use HTML::Entities;

How to use

  1. Copy one of the consumer key pairs to Twidere - Settings - Network - Advanced - Default API Settings
  2. Remove account from Twidere (or just skip this step)
  3. Re-login. It's OK to see "You've already logged in" message.
@killerbees19
killerbees19 / readme.txt
Created July 6, 2018 02:18 — forked from artizirk/readme.txt
Huawei E3372h-153
Working Huawei E3372h-153 SETPORT mappings
replacing A1,A2 with FF turns off need for usb_modeswitch
AT^SETPORT="A1,A2;12,1,16,A1,A2"
^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4,
AT^SETPORT="A1,A2;1,12,16,A1,A2"
@killerbees19
killerbees19 / README.md
Last active June 12, 2024 17:25
[certbot] Let's Encrypt: Dual RSA/ECDSA certificates without frequent key changes

Tested at

  • Debian Buster [2019-07-18]
  • Debian Bullseye [2022-04-28]

Installation

apt update
apt full-upgrade

apt install certbot nginx-full
@killerbees19
killerbees19 / netcup-produkte.php
Last active July 23, 2020 16:14
netcup Produkte per E-Mail abonnieren
#!/usr/bin/env php
<?php
function exception_error_handler($severity, $message, $file, $line)
{ throw new ErrorException($message, 0, $severity, $file, $line); }
set_error_handler('exception_error_handler'); error_reporting(-1);
$mail_recipient = '[email protected]';
$mail_from = sprintf('%s@%s', posix_getlogin(), gethostname());
$xml_file = 'https://www.netcup.de/bestellen/netcupproduktexml.php';