This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Libxmlsec1 definition for 1.2.37. This includes the bottles for this version. | |
class Libxmlsec1 < Formula | |
desc "XML security library" | |
homepage "https://www.aleksey.com/xmlsec/" | |
url "https://www.aleksey.com/xmlsec/download/older-releases/xmlsec1-1.2.37.tar.gz" | |
sha256 "5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c" | |
license "MIT" | |
livecheck do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the list of pinned packages | |
pinned_packages=$(opam list --pinned --short) | |
# Iterate through the list of pinned packages and unpin each one | |
for package in $pinned_packages; do | |
echo $package | |
opam unpin $package --yes | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build | |
WORKDIR /app | |
# Copy source code and compile | |
COPY ./ ./ | |
RUN dotnet restore | |
RUN dotnet publish --configuration Release -o bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Store binaries here to <folder path> | |
export PATH=$PATH:<folder bath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* package.json | |
* { "type": "module" } | |
*/ | |
import fs from 'fs/promises' | |
import path from 'path' | |
import { promisify } from 'util' | |
import { exec as cbExec } from 'child_process' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This example requires Tailwind CSS v2.0+ */ | |
import { Fragment, useRef, useState } from 'react' | |
import { Dialog, Transition } from '@headlessui/react' | |
import { CheckIcon } from '@heroicons/react/outline' | |
export default function Example() { | |
const [open, setOpen] = useState(true) | |
const cancelButtonRef = useRef(null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This example requires Tailwind CSS v2.0+ */ | |
import { Fragment, useState } from 'react' | |
import { Listbox, Transition } from '@headlessui/react' | |
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid' | |
const people = [ | |
{ id: 1, name: 'Wade Cooper' }, | |
{ id: 2, name: 'Arlene Mccoy' }, | |
{ id: 3, name: 'Devon Webb' }, | |
{ id: 4, name: 'Tom Cook' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code taken from https://gist.github.com/miguelmota/092da99bc8a8416ed7756c472dc253c4 | |
import { | |
GetPublicKeyCommand, | |
KMSClient, | |
SignCommand, | |
} from "@aws-sdk/client-kms"; | |
import { BigNumber, ethers, Signer, UnsignedTransaction } from "ethers"; | |
import * as asn1 from "asn1.js"; | |
import { AlchemyProvider } from "@ethersproject/providers"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"github.com/gin-gonic/gin" | |
"github.com/onflow/flow-go-sdk" |
NewerOlder