Skip to content

Instantly share code, notes, and snippets.

@abailly
abailly / githoney-bugbounty.md
Created August 2, 2025 07:38
Using githoney.io as bug bounty platform

GitHoney as Bug Bounty platform

  • GitHoney is a dApp developed by TxPipe providing a mechanism to tie specific tasks in a github project's repository (eg. Issues) to bounties
  • The currently implemented simple workflow is the following:
    • Maintainers create a set of bounty tokens, locked into a smart contract, with some amount of Ada attached
    • A contributor can "claim a bounty" on-chain, attaching some wallet/address id to the bounty for future reward
    • The maintainer can either close the bounty, reclaiming the attached reward, or "merge" it, delivering the reward to the contributor
    • More details available in the docs
  • There's an off-chain "oracle" that ties into the GitHub API and drives the bounty claims:
  • When a PR fixing the Issue is merged, it unlocks the reward
@abailly
abailly / Pharma.idr
Created April 4, 2025 15:35
Tentative de modélisation de prescriptions pharmaceutiques en Idris
data Actif : Type where
Paracetamol : Actif
Morphine : Actif
record Substance where
constructor MkSubstance
principeActif : Actif
dosageMg : Nat

Keybase proof

I hereby claim:

  • I am abailly on github.
  • I am dr_c0d3 (https://keybase.io/dr_c0d3) on keybase.
  • I have a public key ASD86WDkjx0YyL2R82hHkE2LJzHfpWcJDjCD7oYVnt33Xgo

To claim this, I am signing this object:

||| A proof of the validity of matching algorithm for
||| regular expressions
|||
||| From https://arxiv.org/abs/2003.06458
module re
import Decidable.Equality
%default total
module Substitution where
import Data.Maybe
import Data.List(findIndex)
newtype Message = Msg { unMsg :: [Int] }
deriving (Eq, Show)
type SubstitutionTable = Int -> Int
module Subway where
import Control.Arrow((>>>))
import Data.List(sort)
data Subway = Sub [Subway]
deriving (Show, Eq, Ord)
fromString' :: [Subway] -> String -> Subway
{-# LANGUAGE DeriveFunctor #-}
module Main where
import Data.List(group, sort)
data Tree a = E | N a (Tree a) (Tree a)
deriving (Eq, Ord, Show, Functor)
insert :: (Ord a) => [a] -> Tree a
insert list = insert' list E
package org.jparsec.examples.dsl;
import org.jparsec.Parser;
import org.jparsec.Parsers;
import org.jparsec.Scanners;
import org.jparsec.Terminals;
import java.util.Arrays;
public class DSL {
||| A proof of the validity of matching algorithm for
||| regular expressions
|||
||| From https://arxiv.org/abs/2003.06458
module re
%default total
infix 7 .|
infix 6 ..
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, PolyKinds,
ScopedTypeVariables, TypeFamilies, TypeOperators, UndecidableInstances #-}
module Gorilla.Auth.Roles where
import Control.Monad.Trans (liftIO)
import Control.Monad.Trans.Except (runExceptT)
import Data.Proxy (Proxy (Proxy))
import Data.Typeable (Typeable)
import GHC.Generics (Generic)
import Network.Wai (Request)