Skip to content

Instantly share code, notes, and snippets.

View ericmann's full-sized avatar
⚒️
Creating ...

Eric Mann ericmann

⚒️
Creating ...
View GitHub Profile
php-8.3.0beta3.tar.bz2
SHA256 hash: 5eb68715570583d9fb7ba1c713223c580b313835f16bef64e53bb913e865465a
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEESx/A2d+SMhztn2FdvsVV4ioUNVMFAmTb0tMACgkQvsVV4ioU
NVNkjw//b+RjklyCcRrBFGPOLCfvSZzsopU0K5MOB0EVPZRmoGsUF9XINKvCJBNH
Y7oigJthkoTTLUrj2IA8aG3lwFPkmKSsQvbVGADdCru+O72lj9GZq1gCumOKNJ0s
Yj+0jok07BrcoxtRaNU5YB4qBpcc8h4PqDai1tkmnJNeYsUFGiCytdwgoybnJZzf
ECd7//61unYgBoHszIlScBRNHup6j4ZOwNfkKb6lDIVhR6LJiiy2xbqfYsTI/qw8
php-8.3.0beta1.tar.bz2
SHA256 hash: b0396cd69708d1b370d21ff0b2cc20114e00318d43b4ae4c1039755508cee671
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEESx/A2d+SMhztn2FdvsVV4ioUNVMFAmS3FlcACgkQvsVV4ioU
NVMyDQ//X+cGRPKd6I6tar67t1Fwso+FH8di0395VLiT/nG91x10ZZPIEU8tsv0S
3w4lygsfge37tZTukWabuDI/PH04Vz76yLKP9B5QlWGY3Sf+KcKugfuDv/EIon6r
vC7t5vwxlpQ1CC3q3WwCHgf4Wzipud508n9XJnnaRv1RkKSbM579CwTHsdvotOYo
oU9md+MT/IdhF2bRJ5ZRn2iniKiYYcswUfKSh5wca58F/80jG49tDLj7K6EvwEWf
php-8.3.0alpha2.tar.bz2
SHA256 hash: 96bc4ba7f0664810ae72d12f31dd322bcac19639b2d2c9949d51e7e8b6b7822e
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEESx/A2d+SMhztn2FdvsVV4ioUNVMFAmSR0MgACgkQvsVV4ioU
NVMJrQ/+IzWl+Hpo6BAyOv19Gg3ggQgR2n017DT9AzKwXGugxrBSDIpBpAk+tBSh
efezJ3NWPgRjQu/n4XleDjY7B5qPs6pe8O+494IQO6R+eDsxlFB/GeuRVpzdm+ir
iV5Mx//eu7Nd4WMf1HalJAhAUNRlegQTf9PvqlvtOXYnNBRw6IuNZ2heEn+nBIKh
zenaCJhQSZ6y5fPmm8iEeDYwgbs/KH/qEtYuVtSvtpYSNcQFO9kaKrKpIdNgBhzF
@ericmann
ericmann / Fortress.Options.php
Last active September 20, 2023 04:13
Encrypted Options
<?php
/**
* Encryption operations for working with WordPress options to store data
* in the options table. Not all options will be encrypted. You will need
* to wire up selection of options to be protected separately.
*
* @package Fortress
*/
namespace DisplaceTech\Fortress\Options;
@ericmann
ericmann / umap_sparse.py
Created August 23, 2018 18:32 — forked from johnhw/umap_sparse.py
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@ericmann
ericmann / cryptopals_set_8.md
Created July 17, 2018 22:29 — forked from arkadiyt/cryptopals_set_8.md
Cryptopals Set 8

Cryptopals is a set of cryptographic challenges, originally published here: https://cryptopals.com

Set 8 of the challenges was never published publicly, until late March 2018. However the cryptopals website was not updated to include the challenges. This gist compiles the 8th set of the Cryptopals challenges.

title link
57. Diffie-Hellman Revisited: Small Subgroup Confinement https://toadstyle.org/cryptopals/513b590b41d19eff3a0aa028023349fd.txt
58. Pollard's Method for Catching Kangaroos https://toadstyle.org/cryptopals/3e17c7b35fcf491d08c989081ed18c9a.txt
59. Elliptic Curve Diffie-Hellman and Invalid-Curve Attacks https://toadstyle.org/cryptopals/a0833e607878a80fdc0808f889c721b1.txt
@ericmann
ericmann / yubikey-reset.sh
Created July 6, 2018 03:37 — forked from pkirkovsky/yubikey-reset.sh
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
@ericmann
ericmann / pr.md
Created June 22, 2017 21:05 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ericmann
ericmann / temp-testing-curl.php
Last active August 29, 2015 14:28
Temporary Test Code
/**
* Gets the PURL from the Friendbuy API.
*
* @param string e-mail address
* @returns object API Response
*/
function friendbuy_get_purl( $email ) {
// Verify param is actually an e-mail
if ( ! is_email( $email ) ) {
@ericmann
ericmann / Customfile
Created August 21, 2015 18:23
Hyper-V and Samba Customfile
config.vm.provider :hyperv do |v, override|
override.vm.box = "ericmann/trusty64"
end
config.vm.synced_folders.each do |id, options|
# Make sure we use SMB for file mounts on Windows
if ! options[:type] && Vagrant::Util::Platform.windows?
options[:type] = "smb"
end
end