Skip to content

Instantly share code, notes, and snippets.

View aal89's full-sized avatar
🎯
Focusing

Alex Burghardt aal89

🎯
Focusing
View GitHub Profile
@aal89
aal89 / 10kb.txt
Created July 18, 2019 08:49
10kb in text
89075337635954647102216077828334038179638965680796041208684221958292459041499210220101176726750119361506928946801115768179724
42244632672758898527798766326186965189573496725417576843236332384515325066967967084729236662659424427203830789178855960389888
59671607161000645588293584669984665020199777828148967747970527020608102921980556435899241646582421992569038754973449362160805
31239955776017464552148435666505635723861800404618684226812752076597749931057757306056294943547000781262839809899923354086591
58421004045160720410218892782153917915938163263152750197199304506126821048289291640271668334925747202569241057032162874410383
13229406649061136455569503589840650992763870062625721531357020224282471379189564485235429826481871222615972206141109473569331
50068277012583532229033541176707338889365478924968936854152065761173915111644345900669149625078722916074227614326832708754591
53533652284306970616530322571286936751979637851359030657540649747647283544275697965879550870371044054664298592239900461215946
7600905955755449
@aal89
aal89 / 1kb.txt
Created July 18, 2019 08:50
1kb in text
66125646655438184824034357503490176636099264991633465762201498014519123891859268733983653039388726432642995143358504569007771
58598693402496866943402835041634570224118066330404568236483221494076492917098844866249914290879929866424562331479470484929530
47981071980750177177087538144356263522627349597567256092672809627220185268573884037546233149941048425721886017397002493771038
59789493522946388742872159309483907924798646897590296799087138432035293041592297258616156208443607672462374144231313952523825
41214722436789521357506910806784385239131212667915286065697223577192349536631069819291852420161751071280762096700317526464632
90928765621229518421461199169418959317189370377096223039048075197848769839858594855143546758093458201630388955491473164903161
19029733685356457419092050823362333977133993758927393621966880365414110809808625711116204972494708604941468381375412202718800
30757276143464395289644876909915866493212206250053550400385293673376701537468360960764657913786708380781323834871961191069325
5294339716425075
@aal89
aal89 / 100kb.txt
Last active January 11, 2024 21:27
100kb in text
90008179737137449057850374296041230231448818231836430412891860501369559957934170566478171795337452573291424987820066966816786
11421932734664050282853577818350442368737025841021682351565157149258626742693172908157392514275953021340373789403811298198112
98078491418506031705393320777252539769380080434092015114759613380134199900073766190656627700475488778765198284763526475740644
27316250203873295755542616481830176762741844790191881961666387319684382599128392790817587468185935956109594742996822851456430
69484825595272003071580933663162309410919484264168162456415987660087356646694839288039098048397766765190012006438103559476605
88069969501403804546943579852833051109937002040256969349389081744254318024154760523379227341047257631357870025582656575655762
80287299653975203684260833623532172260301953877104948974634491969795223647429108528213960088039791160860481243853022341993839
24991718535415280310113584497118196223057217585054424117851185779066465713336737557959912721815816999403404005977799509009387
9410563589763257
@aal89
aal89 / pba.cs
Created July 30, 2019 22:35
Print byte array in c#
public void PrintByteArray(byte[] bytes)
{
var sb = new StringBuilder("new byte[] { ");
foreach (var b in bytes)
{
sb.Append(b + ", ");
}
sb.Append("}");
Console.WriteLine(sb.ToString());
}
@aal89
aal89 / faketypes.cs
Last active April 23, 2023 14:11
UInt128 and UInt256 data types in c# to compare string hashes with one and another.
using System;
using System.Globalization;
using System.Text.RegularExpressions;
namespace FakeTypes
{
// All types within this namespace are considered fakes. A UInt128 is a struct
// containing two ulongs, their primary reason for existence is for quick calculation
// and comparisons of hash strings as numbers. Allocation should be on the stack.
@aal89
aal89 / stretchy_header.swift
Created October 22, 2018 07:47
Simple stretchy header example for Swift.
//
// ViewController.swift
// stretchy header example
//
// Created by Alex on 07/03/2018.
// Copyright © 2018. All rights reserved.
//
import UIKit
@aal89
aal89 / profile
Last active October 1, 2020 18:41
Terminal coloring with git branch if one is found
print_git_data() {
if [ $(parse_git_branch) ]; then
printf ' ('
printf $(parse_git_branch)
printf ' '
printf $(parse_latest_commit_hash)
printf ')'
fi
}
@aal89
aal89 / bitbucket-pr-totals.js
Last active June 30, 2020 12:10
Show total changed lines of code for all files combined in a PR (new view) on Bitbucket. This is a TamperMonkey script.
// ==UserScript==
// @name Bitbucket totals in PR
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show total changed lines of code
// @author You
// @match https://bitbucket.org/*/*/pull-requests/*
// @grant none
// ==/UserScript==
@aal89
aal89 / boot.ts
Last active January 29, 2020 09:54
Bootstrapper (chassis pattern) with a restarting capabilities for TypeScript/Javascript using 'top-level' async/await.
// random bootstrapper for any theoretical ts/js application
const timeout = (millis: number, fn: () => void) => new Promise(c => setTimeout(c, millis)).then(fn);
(async function boot() {
// this try-catch is an additional safety net used for (poorly) written applications in which errors
// are not properly caught
try {
// some random loading of initial components
@aal89
aal89 / .bash_profile
Last active December 17, 2019 16:34
Profile alias to quickly execute Python scripts from anywhere on some random path with regard to sys.argv, for *nix systems. Alias gp stands for globalpython.
alias gp='function __gp() { (python3 ~/Documents/python/$1.py $(shift;printf "$*") 2>/dev/null) || echo "File not found or errors occurred."; unset -f __gp; }; __gp'
# (assumption hiworld.py is an actual file)
#
# usage: gp hiworld
# usage: gp sub/dir/hiworld arg0 arg1
#