Skip to content

Instantly share code, notes, and snippets.

@gtrabanco
gtrabanco / syno-wildcard.sh
Created July 18, 2021 10:49
Synology acme.sh wildcard cert creation
#!/usr/bin/env bash
# DOMAINS
DOMAINS="example.com,*.example.com"
# DNS Provider
CERT_DNS="dns_namecheap" # For more: https://github.com/acmesh-official/acme.sh/wiki/dnsapi
NAMECHEAP_API_KEY=''
NAMECHEAP_USERNAME=''
NAMECHEAP_SOURCEIP=''
@huettern
huettern / renew_ssl_synology.md
Last active July 24, 2026 19:28
Wildcard certificate on Synology NAS

Use certbot to create a wildcard certificat with DNS challenge

DOMAIN="example.com"
sudo certbot certonly  --manual --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d "*.$DOMAIN"

Follow the instructions on the console and create the DNS TXT record.

Copy the generated files to a working directory

We are going to use the acme.sh script to accomplish this. For authentication of the domain name, we will use the DNS option. First login to your Synology with ssh as the admin user and then sudo -i to get root access. When you login into the Synology with ssh you will end up in the /root path. I assume for the rest of the guide we run everything from that path. Now we need to get the script and change the permissions so it is executable.

wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh
chmod a+x acme.sh

Next we issue the certificate:

./acme.sh --issue -d *.website.come --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
@p123ad
p123ad / README.md
Last active July 24, 2026 19:10
Use Raspberry Pi Camera with Prusa Connect

Use Raspberry Pi and Pi Cam for Prusa Connect

Made this for my PRUSA MINI with a Raspberry Pi Zero 2W and a Raspi Cam v1.3

Based on the great instructions from Nunos and Joltcans

3

Instructions

@erdemoflaz
erdemoflaz / iletisim.html
Last active July 24, 2026 19:02
EĞİTİMDE YAPILAN HTML VE CSS KODLARI
<html>
<head>
<title>Kişisel Blog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Righteous" rel="stylesheet">
</head>
# <PROJECT TITLE>
We are working to add <PROJECT DESCRIPTION>. The following guidance files will help you do your job effectively.
- AGENTS.md -- This current file is already inserted into the start of every agent conversation, and explains how the user wants the AI to behave.
- <COMPANY-MD> -- general information about how to develop in the <COMPANY> codebase
- ai/LEARNINGS.md -- If planning or writing project code you *MUST ALWAYS* read this file, which contains your hard-won wisdom and experience, learned through costly trial and error. You must read this to avoid making the same mistakes in all work you do.
- ai/ARCHITECTURE.md -- This is where you keep your notes about the architecture of <PROJECT>, how to develop within it, and also hard-won wisdom and experience about how its functions work. If planning or writing project code, read this to understand the code you're working in.
- ai/PLAN.md -- Describes the overall context and goal of the project. You will normally only read this if asked to plan th
@dvir001
dvir001 / PowerShell 5.1 (Install).ps1
Created August 18, 2022 22:09
PowerShell 5.1 (Install)
$workDir = "$env:windir\Temp"
$installDir = "powershell5"
$removeFile = "Install-WMF5.1.ps1"
$cmdFile = "powershell-51-silent-install.cmd"
$installs = @(
@{
Source = "https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win7AndW2K8R2-KB3191566-x64.zip"
Name = "Win7AndW2K8R2-KB3191566-x64.zip"
}
@OmarElgabry
OmarElgabry / JwtTokenAuthenticationFilter.java
Last active July 24, 2026 17:37
JWT Token Authentication Filter
package com.eureka.zuul.security;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@H0j3n
H0j3n / CVE-2026-54121.md
Last active July 24, 2026 19:12

Certighost (CVE-2026-54121)

Authors: @h0j3n, @aniqfakhrul
Date: July 24, 2026


Certighost is an Active Directory Certificate Services (AD CS) vulnerability that allowed a low-privileged domain user to impersonate a Domain Controller and achieve domain compromise in the tested AD CS configuration. The issue was addressed in the July 2026 security updates.

The vulnerable path is an AD CS enrollment fallback known as a chase during directory-object resolution. By supplying request attributes such as cdc, an attacker could cause the Certification Authority (CA) to ask an attacker-controlled host for identity data belonging to a Domain Controller. The CA then used that data while issuing a certificate.

@hieuk09
hieuk09 / gist:6745070
Created September 28, 2013 18:39
Auto unfriend facebook
// ==UserScript==
// @name Unfriend In Single-Click on Facebook by Cha
// @description This script is useful if you don't want to delete each friends one by one.
// @namespace Cha
// @include *.facebook.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js
// @version 3.6.1
// ==/UserScript==
// Developed by Cha(Muhammad Rafizan) - http://fb.com/cha.dae.woong.sunbae