Skip to content

Instantly share code, notes, and snippets.

View zfogg's full-sized avatar
🔐
24BD65F25E5D7311F5FFB2D3EDDAE1DA7360D7F4

Zachary Fogg zfogg

🔐
24BD65F25E5D7311F5FFB2D3EDDAE1DA7360D7F4
View GitHub Profile
@zfogg
zfogg / ellydeez-remote-ring.FINAL.ino
Created January 4, 2023 20:45
Ellydeez - Remote Control LED Ring FINAL
#include <Adafruit_NeoPixel.h>
#include <IRremote.hpp>
#include <FastLED.h>
#define LED_PIN 7
#define IRRECV_PIN 8
#define FPS_MILLIS 17
#define NUM_LEDS 12
unsigned int brightness = 32;
@zfogg
zfogg / ellydeez-ir.ino
Created January 4, 2023 20:05
Ellydeez - Infrared Receiver logging
#include <IRremote.hpp>
#define IRRECV_PIN 8
void setup() {
// Open a serial connection for printing logs.
Serial.begin(9600);
// Turn on the infrared receiver.
// 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 February 28, 2021 07:41
3box verification
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 October 18, 2020 10:13
Reverse Prime Xorg config
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
@zfogg
zfogg / tcp_checker.sh
Created October 16, 2020 20:10
network testing on any UNIX system without calling any binaries
#!/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 October 11, 2021 14:45
Follow everyone in a GitHub Organization

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 July 30, 2020 12:29 — forked from 50percentgrey/apple.sh
Delete-Clean Unnecessary files / Apple / Xcode
#!/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/*/*/
@zfogg
zfogg / blockstack-verification.txt
Created April 9, 2018 11:07
Blockstack verification
Verifying my Blockstack ID is secured with the address 12Y9URumipMVGdnwTf6G2pVC2ZAaXRtcsH https://explorer.blockstack.org/address/12Y9URumipMVGdnwTf6G2pVC2ZAaXRtcsH
@zfogg
zfogg / gist:38defa71b98a242b51bd74941f5e78d6
Created December 8, 2017 05:02 — forked from strathmeyer/gist:4990173
Improve OSX Bluetooth quality
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"