Skip to content

Instantly share code, notes, and snippets.

Avatar

Smitop Smittyvb

View GitHub Profile
View Q42.ser.json
{
"id": {
"EntityId": 42
},
"claims": [
[
1005,
{
"data": {
"ExternalID": "68537"
View ttwstats.md
  • 112 total accounts

  • 89 total accounts have responded to at least one ping

  • 23 accounts have never responded to a ping

  • 1 users responded to a ping in the last 30 days

  • 1 users responded to a ping in the last 7 days

  • largest database is 166 pages (1.6% of max)

View nss-vuln.patch
This changes the NSS key generation to be terrible
diff --git a/cmd/certutil/keystuff.c b/cmd/certutil/keystuff.c
index 330284c61..219468adf 100644
--- a/cmd/certutil/keystuff.c
+++ b/cmd/certutil/keystuff.c
@@ -39,6 +39,19 @@ const SEC_ASN1Template SECKEY_PQGParamsTemplate[] = {
{ 0 }
};
+/* Rather than take key input, use a psuedo-RNG */
View demo.rs
// rustc -Z unpretty=mir-cfg -Z mir-opt-level=0 -C overflow-checks=off demo.rs | dot -Tsvg > o.png
fn incr() -> i32 {
let mut ret = if true {
7
} else if true {
8
} else {
9
};
@Smittyvb
Smittyvb / config.json
Last active Feb 8, 2021
TTW's public config
View config.json
{
"api-server": "https://ttwbackend.smitop.com",
"secure-cookie": true,
"api-listen-port": 80,
"root-domain": "https://ttw.smitop.com",
"db-max-size": 41943040,
"vapid-public": "BF6zYCkkXpv95vAqwE1dy3Me4iRwN31eyFTuquLwkCJwzHLclr6eW9CcFEVgUhM6412WvKAYb4HfkgHDR5eEbRI",
"contact-email": "ttw@smitop.com",
"extra-homepage-text": "I'm <a href='https://smitop.com'>Smitop</a>, I wrote TagTime Web. I hope you enjoy it!",
"enableSimpleAnalytics": true,
View ttwconfig.json
{
"api-server": "https://ttwbackend.smitop.com",
"secure-cookie": true,
"api-listen-port": 80,
"root-domain": "https://ttw.smitop.com",
"db-max-size": 41943040,
"vapid-public": "BF6zYCkkXpv95vAqwE1dy3Me4iRwN31eyFTuquLwkCJwzHLclr6eW9CcFEVgUhM6412WvKAYb4HfkgHDR5eEbRI",
"contact-email": "ttw@smitop.com",
"extra-homepage-text": "I'm <a href='https://smitop.com'>Smitop</a>, I wrote TagTime Web. I hope you enjoy it!",
"enableSimpleAnalytics": true,
View deploy.sh
echo Are you using the right config? If not, change it now!
yarn
NODE_ENV=production yarn build
cd dist
rm .gitkeep
mkdir graphs
mkdir graphs/trend
mkdir goals
cp index.html settings.html
cp index.html cntpings.html
View keybase-proof.md

Keybase proof

I hereby claim:

  • I am smittyvb on github.
  • I am actualsmitop (https://keybase.io/actualsmitop) on keybase.
  • I have a public key ASBWcEMfKiAan28UXC2PR22BADwL3d2h1aZpRG4cwy85kwo

To claim this, I am signing this object:

View gist:a9c33bab22df7b55682e0086ced53fb6
### Keybase proof
I hereby claim:
* I am smittyvb on github.
* I am actualsmitop (https://keybase.io/actualsmitop) on keybase.
* I have a public key ASBWcEMfKiAan28UXC2PR22BADwL3d2h1aZpRG4cwy85kwo
To claim this, I am signing this object:
View gist:8289d4a98fc777dd1717f1735f05d93e
### Keybase proof
I hereby claim:
* I am smittyvb on github.
* I am actualsmitop (https://keybase.io/actualsmitop) on keybase.
* I have a public key ASBWcEMfKiAan28UXC2PR22BADwL3d2h1aZpRG4cwy85kwo
To claim this, I am signing this object: