Skip to content

Instantly share code, notes, and snippets.

View mikegioia's full-sized avatar

Mike Gioia mikegioia

View GitHub Profile
@arutkayb
arutkayb / README.md
Created June 23, 2026 06:41
Workaround for Claude Code API Error: Unable to connect to API (ECONNRESET)

claude-upload-limit-workaround

Fix for Claude Code (and any large HTTPS upload) failing with API Error: Unable to connect to API (ECONNRESET) on a specific home network.

Symptom

  • Short Claude requests always work; long sessions reset after ~5–13 min.
  • Works fine on a phone hotspot, fails on home Wi-Fi.
  • Debug log shows the same request retried 11 times, each dying at a
@DefrostedTuna
DefrostedTuna / Private Docker Registry on Digitalocean.md
Last active February 25, 2026 14:21
Setting up a Private Docker registry on DigitalOcean
@andrewgioia
andrewgioia / nighthawk.raven.css
Last active April 26, 2017 14:49
TeachBoost Night Theme: Raven
/* Global */
header {
background: #26292C;
}
body {
background: #4b4b4b;
color: #ddd;
}
@adliwahid
adliwahid / mirror.sh
Created April 17, 2016 10:27
httrack for mirroring site on archive.org (waybackmachine)
#this is useful for copying snapshotted sites at archive.org
#copied from http://superuser.com/questions/532036/trouble-using-wget-or-httrack-to-mirror-archived-website
#replace ${wayback_url} with the full URL i.e. http://web.archive.org/web/20020705161639/http://kict.iiu.edu.my/
#replace ${domain_name} with the domain name of the site you'r mirroring without the 'http', so kict.iiu.edu.my
httrack\
${wayback_url}\
'-*'\
'+*/${domain_name}/*'\
-N1005\
--advanced-progressinfo\
@grugq
grugq / gist:03167bed45e774551155
Last active August 27, 2026 05:42
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@plentz
plentz / nginx.conf
Last active November 8, 2026 01:36
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 17, 2026 12:38
A badass list of frontend development resources I collected over time.
@gustavohenrique
gustavohenrique / telnet-imap
Created June 6, 2013 14:00
playing with gmail via telnet
openssl s_client -crlf -connect imap.gmail.com:993
tag login user@gmail.com passwordhere
tag list "" "*"
tag select "inbox"
tag fetch 1:3 body[header]
tag fetch 3 body[header]
tag fetch 3 body[text]
tag fetch 2 all
tag fetch 2 fast
tag fetch 2 full
# Shell Script
# Installs specified nginx version with google SPDY patch
# Author: Deepak Kumar
# Twitter: @deepak_kumar
# March 2nd, 2013
# Nginx modules included here are as per my need. Feel free modify/add/remove. Cheers!
#!/bin/sh
@peterhost
peterhost / node_debian_init.sh
Created November 25, 2010 11:41
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28