Skip to content

Instantly share code, notes, and snippets.

Dealing with stuck GitHub Pages deployments

Problem

When publishing a GitHub page for a repo, the deploy action might fail with an HTTP-400 error:

Failed to create deployment (status: 400) with build version <build version hash>.
Responded with: Deployment request failed for <build version hash> due to in progress deployment.
Please cancel  first or wait for it to complete.
@franziskuskiefer
franziskuskiefer / uint8.rs
Created April 4, 2021 08:19
range integers
use std::ops::{Add, Div, Mul, Sub};
struct Uint8<const MIN: u8, const MAX: u8> {
val: u8,
}
impl<const MIN: u8, const MAX: u8> Uint8<MIN, MAX> {
const MIN: u8 = MIN;
const MAX: u8 = MAX;
@franziskuskiefer
franziskuskiefer / evercrypt
Created September 2, 2020 14:30
Hacspec Benchmarks
SHA1 time: [37.673 us 37.760 us 37.861 us]
change: [-0.9373% -0.3104% +0.1528%] (p = 0.31 > 0.05)
No change in performance detected.
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severe
SHA224 time: [46.138 us 46.201 us 46.273 us]
change: [-0.6403% -0.3001% -0.0023%] (p = 0.07 > 0.05)
No change in performance detected.
@franziskuskiefer
franziskuskiefer / vs32
Created May 8, 2018 08:29
VS environment
export PATH="$PATH:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/HostX86/x86:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/VC/VCPackages:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TestWindow:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/bin/Roslyn:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/Team Tools/Performance Tools:/c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/:/c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/:/c/Program Files (x86)/Windows Kits/10/bin/10.0.16299.0/x86:/c/Program Files (x86)/Windows Kits/10/bin/x86:/c/Program Files (x86)/Microsoft Visual Studio/2017/Community//MSBuild/15.0/bin:/c/WINDOWS/Microsoft.NET/Framework/v4.0.30319:/
@franziskuskiefer
franziskuskiefer / export_pwds.js
Last active June 13, 2019 13:09
export passwords from Firefox password manager
var {
classes: Cc,
interfaces: Ci
}
= Components;
var tokendb = Cc['@mozilla.org/security/pk11tokendb;1'].createInstance(Ci.nsIPK11TokenDB);
var token = tokendb.getInternalKeyToken();
try {
token.login(true);
} catch (e) {
@franziskuskiefer
franziskuskiefer / readme.md
Last active November 3, 2016 14:08
NSS readme

Network Security Services

Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. NSS supports SSL v3-TLS 1.2 (experimental TLS 1.3), PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards.

Getting started

In order to get started create a new directory on that you will be uses as your local work area, and check out NSS and NSPR. (Note that there's no git mirror of NSPR and you require mercurial to get the latest NSPR source.)

git clone https://github.com/nss-dev/nss.git
hg clone https://hg.mozilla.org/projects/nspr
@franziskuskiefer
franziskuskiefer / arm.patch
Last active August 6, 2016 13:00
NSS arm gyp
diff -r 5d99ef9b5cb6 coreconf/config.gypi
--- a/coreconf/config.gypi Wed Aug 03 21:42:31 2016 -0400
+++ b/coreconf/config.gypi Sat Aug 06 12:57:33 2016 +0000
@@ -64,7 +64,6 @@
['OS=="linux"', {
'cflags': [
'-fPIC',
- '-m64',
'-pipe',
'-ffunction-sections',
@franziskuskiefer
franziskuskiefer / mod_nss.patch
Last active July 16, 2016 13:28
TLS 1.3 for mod_nss
diff --git a/Makefile.am b/Makefile.am
index c57cd09..b3e8451 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,7 @@ libmodnss_la_LDFLAGS = -module -avoid-version
## Set the includes and libraries needed
AM_CPPFLAGS = -I@apache_inc@ @nspr_inc@ @nss_inc@ @apr_inc@
-LIBS = @nspr_lib@ @nss_lib@ -lssl3 -lsmime3 -lnss3 -lplc4 -lplds4 -lnspr4
+LIBS = @nspr_lib@ @nss_lib@ -lssl3 -lsmime3 -lnss3 -lplc4 -lplds4 -lnspr4 -lnssutil3
commit 60653010a812d77fb22882c3c0fee14370855e9c
Author: Franziskus Kiefer <franziskuskiefer@gmail.com>
Date: Tue May 24 10:33:48 2016 +0200
NSS appveyor
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..0c84cde
--- /dev/null
@franziskuskiefer
franziskuskiefer / gist:7975482
Created December 15, 2013 17:13
LNCS Keywords
\newenvironment{keywords}{
\list{}{\advance\topsep by0.35cm\relax\small
\leftmargin=1cm
\labelwidth=0.35cm
\listparindent=0.35cm
\itemindent\listparindent
\rightmargin\leftmargin}\item[\hskip\labelsep\bfseries Keywords:]}
{\endlist}