Skip to content

Instantly share code, notes, and snippets.

View TheNullicorn's full-sized avatar
🌸
*dramatic bongos*

nullicorn TheNullicorn

🌸
*dramatic bongos*
View GitHub Profile
@tuxuser
tuxuser / fiddler_gen.sh
Last active July 4, 2025 19:17
Fiddler - MITMProxy Key / Root CA generation
#!/bin/sh
## Some device only accept a Fiddler certificate.
## What if you don't like Fiddler and want to use mitmproxy instead?
## -> Generate your own Fiddler key/root ca!
# Usage:
# - Start mitmproxy / mitmweb once, to populate the `.mitmproxy` dir
# - Execute this script
# - Copy the mitmproxy certs into `C:\Users\<username>\.mitmproxy` aka. `/home/<username/.mitmproxy`, overwriting existing files
# - Start mitmproxy / mitmweb

Uninstall Microsoft Edge

Important

Working on the latest supported Windows versions. Run Windows Update before following this guide.

1. Open Powershell > RUN AS ADMIN

2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex and press enter

3. Microsoft Edge will be completely uninstalled.

@sualeh
sualeh / how_to_sign_and_release_to_the_central_repository_with_github_actions.md
Last active July 14, 2025 12:33
How to Sign and Release to The Central Repository with GitHub Actions

How to Sign and Release to The Central Repository with GitHub Actions

Warning

OSSRH Sunset: "As of June 30, 2025 OSSRH has reached end of life and has been shut down. All OSSRH namespaces have been migrated to Central Publisher Portal."

GitHub allows automated builds using GitHub Actions. A commonly asked question is how to release artifacts (packaged Java jars) built by Maven and Gradle to The Central Repository. The GitHub Actions documentation provides only part of the answer.

So, first, configure your Maven project for staging artifacts to The Central Repository, by reading through Configuring Your Project for Deployment and following those steps. Please make sure that the maven-gpg-plugin is configured to prevent gpg from using PIN entry programs, as follows:

<
@hnvn
hnvn / rsa_pem.dart
Created January 18, 2019 06:55 — forked from proteye/rsa_pem.dart
How to encode/decode RSA private/public keys to PEM format in Dart with asn1lib and pointycastle
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';
import "package:pointycastle/export.dart";
import "package:asn1lib/asn1lib.dart";
List<int> decodePEM(String pem) {
var startsWith = [
"-----BEGIN PUBLIC KEY-----",
"-----BEGIN PRIVATE KEY-----",
@proteye
proteye / rsa_pem.dart
Last active July 17, 2025 20:21
How to encode/decode RSA private/public keys to PEM format in Dart with asn1lib and pointycastle
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';
import "package:pointycastle/export.dart";
import "package:asn1lib/asn1lib.dart";
List<int> decodePEM(String pem) {
var startsWith = [
"-----BEGIN PUBLIC KEY-----",
"-----BEGIN PRIVATE KEY-----",
@jen20
jen20 / HexDumpUtil.java
Created May 19, 2015 14:33
Dump byte array in hex dump format in Java
import java.io.UnsupportedEncodingException;
public final class HexDumpUtil {
public static String formatHexDump(byte[] array, int offset, int length) {
final int width = 16;
StringBuilder builder = new StringBuilder();
for (int rowOffset = offset; rowOffset < offset + length; rowOffset += width) {
builder.append(String.format("%06d: ", rowOffset));
@marc-hughes
marc-hughes / main.html
Created January 2, 2014 17:50
Dynamically drawing on a canvas with an angular.dart component.
<div class="game_container" >
<game-timeline></game-timeline>
</div>