Skip to content

Instantly share code, notes, and snippets.

@promolic1
promolic1 / instructions.md
Created July 30, 2024 01:14 — forked from ivan/instructions.md
Replace Debian with NixOS on scaleway

Replace Debian install with NixOS on Scaleway

This is based on nixos-infect.

These instructions assume you have x86 scaleway machines that use UEFI and DHCP. You have may have to change /dev/vda15 if your machines are partitioned differently.

First, rsync your configuration to /root/configuration.

Run:

@promolic1
promolic1 / alpine-on-stardust-no-rescue.md
Created July 29, 2024 21:52 — forked from karolba/alpine-on-stardust-no-rescue.md
Install Alpine Linux on Scaleway Stardust without the rescue image using https://netboot.xyz

A way to install Alpine Linux on a Scaleway Stardust instance without the use of a rescue image, but by booting into the install image over the network using https://netboot.xyz.

  1. Connect to the serial console, using scw instance server console {uuid} zone={zone}

  2. Reboot the VM into UEFI settings

    • either by executing systemctl reboot --firmware on the machine
    • or by using scw instance server reboot {uuid} zone={zone} locally and repeatedly mashing the escape key on the serial console image
  3. Go to Device Manager -> Network Device List -> the only network device -> HTTP Boot Configuration -> Boot URI

@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"