Moved here:
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
import { | |
ContentTypeId, | |
EncodedContent, | |
JSContentCodec, | |
} from "@xmtp/react-native-sdk"; | |
export const ContentTypeTransactionReference: ContentTypeId = { | |
authorityId: "xmtp.org", | |
typeId: "transactionReference", | |
versionMajor: 1, |
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
-- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ | |
-- and https://gist.github.com/kjmph/5bd772b2c2df145aa645b837da7eca74 | |
create or replace function uuid_generate_v7() | |
returns uuid | |
as $$ | |
declare | |
unix_ts_ms bytea; | |
uuid_bytes bytea; | |
begin |
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
import React, { useEffect, useState } from "react"; | |
import { ethers } from "ethers"; | |
import './App.css'; | |
import wavePortal from './utils/WavePortal.json'; | |
const App = () => { | |
const [currentAccount, setCurrentAccount] = useState(""); | |
const [allWaves, setAllWaves] = useState([]); | |
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E"; |
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
tar czf - ./path/to/source | ssh user@host tar xvzfC - /path/to/target |
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
du -h --max-depth=4 * | sort -hr |
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
-- | |
-- Domoticz passes information to scripts through a number of global tables | |
-- | |
-- otherdevices, otherdevices_lastupdate and otherdevices_svalues are arrays for all devices: | |
-- otherdevices['yourotherdevicename'] = "On" | |
-- otherdevices_lastupdate['yourotherdevicename'] = "2015-12-27 14:26:40" | |
-- otherdevices_svalues['yourotherthermometer'] = string of svalues | |
-- | |
-- uservariables and uservariables_lastupdate are arrays for all user variables: | |
-- uservariables['yourvariablename'] = 'Test Value' |