Skip to content

Instantly share code, notes, and snippets.

View dawsbot's full-sized avatar
Bringing web3 to emerging markets - web3perf

Dawson Botsford dawsbot

Bringing web3 to emerging markets - web3perf
View GitHub Profile


dawsbot / charm.abi.js
Last active January 26, 2022 21:46
JSON ABI for FTM Charm Token (team has not verified on-chain, so you'll need this to interact with the contract)
// ABI for
inputs: [
internalType: "address",
name: "_authority",
type: "address",
# Wget's all episodes of the podcast hosted by Wes Bos and Scott Tolinkski
# Fetch full episode list
curl |
jq -c '.[] | {url: .url, number: .number, title: .title, displayDate: .displayDate}' |
while read row; do
url=$(echo $row | jq -r '.url')
number=$(echo $row | jq -r '.number')
dawsbot / vscode-insiders-syntax-breaker.tsx
Created March 22, 2020 14:42
Breaks vscode insiders syntax highlighting in relation to
import Skeleton from 'antd/lib/skeleton';
import * as React from 'react';
import InfiniteScroll from 'react-infinite-scroll-component';
import { defineMessages, FormattedMessage as FM } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators, Dispatch } from 'redux';
import styled from '@emotion/styled';
import { ActivityActions } from '../../actions/activities';
import { ArticleActions } from '../../actions/articles';
import { ProfilesActions } from '../../actions/profiles';

Keybase proof

I hereby claim:

To claim this, I am signing this object:

dawsbot /
Last active December 20, 2019 16:40
Lossless image compression for all images in current directory
# Minify all jpg and png images in current directory recursively
command_exists () {
type "$1" &> /dev/null ;
# Learn more about optipng at
if command_exists optipng ; then
optipng -o2 -strip all **/*.png
dawsbot /
Last active March 24, 2017 19:16
Add uber eslint to a project (assumes you don't have a `.eslintrc` to begin)
yarn add eslint eslint-config-uber-es2015
echo '{\n "extends": ["eslint-config-uber-es2015"]\n}' > .eslintrc
const tmpDir = path.join(os.tmpdir(), Math.random().toString().slice(8), basename);
dawsbot / curl.js
Last active March 23, 2017 22:32
es6AF way to curl to tempfile
const url = '';
const pify = require('pify');
const fs = pify(require('fs'));
const fetch = require('node-fetch');
const tempfile = require('tempfile');
const curl = (package, version) => {
.then(res => res.text())
dawsbot /
Created December 14, 2016 00:22
Give npm owner permissions to a team of people instantly
users=(npmusername1 npmusername2 npmusername3)
for user in "${users[@]}"
npm owner add "$user"