Skip to content

Instantly share code, notes, and snippets.

View colkito's full-sized avatar

colkito

View GitHub Profile
@colkito
colkito / docker-npm.js
Last active July 7, 2018 05:40 — forked from jokeyrhyme/docker-npm.js
execute `npm` within a Docker container, within the host's working directory
// ideal for use with AWS Lambda and native Node.js modules
// requires Docker: https://docs.docker.com/engine/installation/
/*
Usage:
node docker-npm.js install
node docker-npm.js rebuild
*/
@colkito
colkito / generate-ssh-key.sh
Created January 14, 2021 03:10 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@colkito
colkito / smtp_tester.py
Last active June 25, 2024 18:44
SMTP Tester
# Code generated by Claude 3.5 Sonnet, an AI assistant created by Anthropic.
import smtplib
import ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from typing import Optional
def test_smtp_connection(
sendgrid_username: str,