Skip to content

Instantly share code, notes, and snippets.


Zachary Fogg zfogg

View GitHub Profile
View BetEscrow.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import {IERC20} from "../interfaces/IERC20.sol";
contract BetEscrow {
event BetOffered(uint betId);
enum Status {
zfogg / 3box
Created Feb 28, 2021
3box verification
View 3box
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreibdbideyyqal6jg6othyvzpa2at5x35ejudk2pr3uabugp3fvjczm ✅
Create your profile today to start building social connection and trust online at
zfogg / _etc_X11_xorg.conf
Created Oct 18, 2020
Reverse Prime Xorg config
View _etc_X11_xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
Section "Device"
Identifier "nvidia"
Driver "nvidia"
zfogg /
Created Oct 16, 2020
network testing on any UNIX system without calling any binaries
#!/usr/bin/env sh
(echo > "/dev/$proto/$address/$port") >/dev/null 2>&1 \
&& echo "$address:$port is ONline ✅" \
|| echo "$address:$port is OFFline ⛔"
zfogg /
Last active Oct 11, 2021
Follow everyone in a GitHub Organization

GitHub Org - Follow Members

How to use it


  1. Navigate to a GitHub organization's member page.
  2. Open your browser devtools and go to the JavaScript console tab.
  3. Copy 1.follow-github-org-members.js to your clipboard.
  4. Paste the script into the JavaScript console and run it, once per page of organization members.
zfogg /
Created Jul 30, 2020 — forked from 50percentgrey/
Delete-Clean Unnecessary files / Apple / Xcode
# Delete Archived Applications
rm -r ~/Library/Developer/Xcode/Archives/*/
# Delete Devired Data
rm -r ~/Library/Developer/Xcode/DerivedData/*/
# Delete Apple cached files
rm -r ~/Library/Developer/CoreSimulator/Caches/dyld/*/*/
View blockstack-verification.txt
Verifying my Blockstack ID is secured with the address 12Y9URumipMVGdnwTf6G2pVC2ZAaXRtcsH
View gist:38defa71b98a242b51bd74941f5e78d6
defaults write "Apple Bitpool Max (editable)" 80
defaults write "Apple Bitpool Min (editable)" 48
defaults write "Apple Initial Bitpool (editable)" 40
defaults write "Negotiated Bitpool" 48
defaults write "Negotiated Bitpool Max" 53
defaults write "Negotiated Bitpool Min" 48
defaults write "Stream - Flush Ring on Packet Drop (editable)" 30
defaults write "Stream - Max Outstanding Packets (editable)" 15
defaults write "Stream Resume Delay" "0.75"
View dotfiles.dotvim.tree.zsh
18:44:18 [:~] %
> cd .vim
18:44:21 [:~/.vim] master(+291/-219)+* ±
> pwd
18:44:24 [:~/.vim] master(+291/-219)+* ±
> tree
├── [5.8k] after
│   ├── [1.1k] autoload
zfogg /
Created Dec 30, 2016 — forked from memeplex/
Base16 default theme for ipython + pygments + prompt toolkit closely matching vim base16 theme.
# -*- coding: utf-8 -*-
Base16 Default Dark by Chris Kempson (
IPython Template by Carlos Pita (
Created with Base16 Builder by Chris Kempson.
from prompt_toolkit.terminal.vt100_output import _256_colors