Skip to content

Instantly share code, notes, and snippets.

@bnewbold
bnewbold / atproto_crypography_march2023.md
Last active May 18, 2023 04:19
atproto Cryptography Notes (Spring 2023)

Cryptography in atproto and did:plc

Public key cryptography is used in several aspects of atproto ("AT Protocol"). This short, informal, not-very-official document clarifies some details of which specific systems, keys, serialization formats, and signing/verification procedures are used.

For folks who are already familiar with atproto, the quick things to note are:

  • yes, it is expected for everybody to support two curve types
  • take the SHA-256 hash of repo commit nodes before signing/verifying them
  • depending on library/language used, p256 may have quirks with "compressed" encoding
  • yes, DID documents do require two similar-but-different encodings for public keys (did:web and multibase)
@fiatjaf
fiatjaf / activity-nostr-bridge-bounty.md
Last active September 30, 2023 05:48
ActivityPub bridge Nostr relay bounty
@ardyantohermawan
ardyantohermawan / install-java.sh
Last active July 31, 2019 12:19
Install openjdk 8 on ubuntu 14.04
#!/bin/bash
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get -y update
sudo apt-get install -y openjdk-8-jdk
@bcomnes
bcomnes / git-gpg.md
Last active February 13, 2024 07:33
my version of gpg on the mac
  1. brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    
@aaronpk
aaronpk / ruby-setup.txt
Last active August 29, 2015 14:25
setting up Ruby on a new OSX computer
brew install ruby-install
ruby-install ruby 2.1.6
gem install bundler
brew install libxml2 libxslt # usually required for some ruby libraries
brew install chruby
# this sets the paths for ruby and bundle to the newly installed ruby
chruby 2.1.6
# now you can install other rubies:
ruby-install ruby 2.2.2
@peterwilsoncc
peterwilsoncc / micropubfilter.php
Created February 11, 2015 02:50
Include trashed posts in url_to_postid
<?php
function micropub_url_to_postid($url) {
global $wp_rewrite;
/**
* Filter the URL to derive the post ID from.
*
* @since 2.2.0
*

Setup

1. Run software update

Make sure everything is up to date.

2. Install Xcode and/or "Command Line Tools"

"Command Line Tools" can be downloaded separate from Xcode at

@tallus
tallus / IndieTumblrTheme
Last active May 28, 2023 10:49
An IndieWebify-ied Tumblr Theme
<!doctype html>
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<head>
<!-- Meta tags -->
@werkshy
werkshy / cr
Created October 22, 2013 18:49
Asana code review CLI
#!/usr/bin/env ruby
# cr: send an Asana ticket for code review
# It will add (or re-open) a sub-task called 'Code Review' owned
# by the specified user.
# Usage:
# cr [-a ASANA_ID] [-g GIT_COMMIT] username
#
# - If the Asana ticket ID is given, use that.
@huyhong
huyhong / .slate
Last active December 24, 2015 22:39
.slate config for https://github.com/jigish/slate, replaces Divvy for me
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config orderScreensLeftToRight false
default color resolutions:1920x1200;1200x1920;1200x1920
# Old Divvy Setup
# bind 1:ctrl;cmd move 0;0 screenSizeX/1.75;screenSizeY
# bind 2:ctrl;cmd move (screenSizeX-(screenSizeX/1.75));0 screenSizeX/1.75;screenSizeY