Skip to content

Instantly share code, notes, and snippets.

@fbrettnich
fbrettnich / cloudflare-export-all-dns-records.ps1
Created March 11, 2025 19:42
A PowerShell script to export all Cloudflare DNS records from all zones to Excel
$bearerToken = "" # Required Permission: Zone.DNS
$zones = @()
$page = 1
do {
$response = Invoke-RestMethod -Uri "https://api.cloudflare.com/client/v4/zones?page=$page&per_page=50" -Headers @{ "Authorization" = "Bearer $bearerToken" }
$zones += $response.result
$page++
} while ($response.result_info.page * $response.result_info.per_page -lt $response.result_info.total_count)
@un-fmunozs
un-fmunozs / doge.php
Created November 8, 2021 22:52
Ekoparty 2021 - Doge punks
<?php
$url = $_GET['resource'];
$uar = (parse_url($url));
if ($uar === false)
die("invalid nft address space");
if (preg_match("/[a-zA-Z]/", $url))
@un-fmunozs
un-fmunozs / wcgw.php
Created November 8, 2021 21:20
WCGW / Ekoparty CTF challenge 2021
<?php
function secureCompare($flag, $reto) {
if ($reto == $flag)
return True;
if (strpos($reto, $flag) === 0)
{
sleep(2);
}
@desbest
desbest / Reset-WindowsUpdate.ps1
Last active May 5, 2025 14:06
Reset Windows Update Client Settings Script
<#
.SYNOPSIS
Reset-WindowsUpdate.ps1 - Resets the Windows Update components
.DESCRIPTION
This script will reset all of the Windows Updates components to DEFAULT SETTINGS.
.OUTPUTS
Results are printed to the console. Future releases will support outputting to a log file.
@pagelab
pagelab / html2docx.bat
Created February 17, 2020 19:39 — forked from arthurattwell/html2docx.bat
Batch file to convert HTML files to Word docx with Pandoc
:: This batch file converts HTML files in a folder to docx.
:: It requires Pandoc, and a list of files to convert
:: named file-list, in which each file is on a separate line,
:: and contains no spaces in the filename.
::
:: Don't show these commands to the user
@ECHO off
:: Set the title of the window
TITLE Convert html to docx
:: This thing that's necessary.
@LinuxDevOpsGirl
LinuxDevOpsGirl / anydeskuninstall.sh
Created October 27, 2018 11:57
Uninstall AnyDesk & Install New AnyDesk Ubuntu 16 64 bit Machine
sudo apt-get purge anydesk
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt update
sudo apt list --upgradable
sudo apt upgrade -y
https://download.anydesk.com/linux/anydesk_4.0.0-1_amd64.deb
sudo dpkg -i anydesk_4.0.0-1_amd64.deb
sudo apt install -f
sudo apt update
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 17, 2025 08:35
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@horusint
horusint / ClearWSUSSync.sql
Created August 16, 2017 13:05 — forked from dsolodow/ClearWSUSSync.sql
Delete WSUS Sync History
DELETE FROM [SUSDB].[dbo].[tbEventInstance]
WHERE [EventID]=381 or [EventID]=382 or [EventID]=384 or [EventID]=386 or [EventID]=387
@horusint
horusint / tomcat.service
Created June 29, 2017 18:10 — forked from obatiuk/tomcat.service
Example systemd unit file for tomcat 7.x
# Systemd unit file for tomcat 7.x
[Unit]
Description=Apache Tomcat 7.x Web Application Container
Wants=syslog.target network.target
After=syslog.target network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/java/latest
@obatiuk
obatiuk / tomcat.service
Created February 24, 2017 05:54
Example systemd unit file for tomcat 7.x
# Systemd unit file for tomcat 7.x
[Unit]
Description=Apache Tomcat 7.x Web Application Container
Wants=syslog.target network.target
After=syslog.target network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/java/latest