Skip to content

Instantly share code, notes, and snippets.

Avatar
🔐
B9DA2D22AD6AA00F20160303BD858072BF0C2CEB

Zachary Fogg zfogg

🔐
B9DA2D22AD6AA00F20160303BD858072BF0C2CEB
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
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 https://3Box.io/
@zfogg
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"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
@zfogg
zfogg / tcp_checker.sh
Created Oct 16, 2020
network testing on any UNIX system without calling any binaries
View tcp_checker.sh
#!/usr/bin/env sh
address=${1:-localhost}
port=${2:-53}
proto=${3:-tcp}
(echo > "/dev/$proto/$address/$port") >/dev/null 2>&1 \
&& echo "$address:$port is ONline ✅" \
|| echo "$address:$port is OFFline ⛔"
@zfogg
zfogg / 0.README.follow-github-org-members.md
Last active Oct 11, 2021
Follow everyone in a GitHub Organization
View 0.README.follow-github-org-members.md

GitHub Org - Follow Members

How to use it

Manually

  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
zfogg / apple.sh
Created Jul 30, 2020 — forked from 50percentgrey/apple.sh
Delete-Clean Unnecessary files / Apple / Xcode
View apple.sh
#!/bin/bash
# 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 https://explorer.blockstack.org/address/12Y9URumipMVGdnwTf6G2pVC2ZAaXRtcsH
View gist:38defa71b98a242b51bd74941f5e78d6
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48
defaults write com.apple.BluetoothAudioAgent "Stream - Flush Ring on Packet Drop (editable)" 30
defaults write com.apple.BluetoothAudioAgent "Stream - Max Outstanding Packets (editable)" 15
defaults write com.apple.BluetoothAudioAgent "Stream Resume Delay" "0.75"
View dotfiles.dotvim.tree.zsh
18:44:18 [:~] %
> cd .vim
18:44:21 [:~/.vim] master(+291/-219)+* ±
> pwd
/Users/zfogg/.vim
18:44:24 [:~/.vim] master(+291/-219)+* ±
> tree
.
├── [5.8k] after
│   ├── [1.1k] autoload
@zfogg
zfogg / base16.py
Created Dec 30, 2016 — forked from memeplex/base16.py
Base16 default theme for ipython + pygments + prompt toolkit closely matching vim base16 theme.
View base16.py
# -*- coding: utf-8 -*-
"""
Base16 Default Dark by Chris Kempson (http://chriskempson.com).
IPython Template by Carlos Pita (carlosjosepita@gmail.com).
Created with Base16 Builder by Chris Kempson.
"""
from prompt_toolkit.terminal.vt100_output import _256_colors