Skip to content

Instantly share code, notes, and snippets.

View immannino's full-sized avatar
💁‍♂️
fabulous

Tony immannino

💁‍♂️
fabulous
View GitHub Profile
@bennylope
bennylope / migrate.py
Last active July 18, 2023 05:43
PostgreSQL migration script, Heroku -> Crunchy
#!/usr/bin/env python
import argparse
import os
import subprocess
import sys
import time
# Required so we don't generate tons of logs during restore
disable_logging_sql = "ALTER USER postgres RESET pgaudit.log;"
@noopkat
noopkat / comm_books.txt
Created June 9, 2021 03:58
Communication books
Recommended by my teachers:
'Casing a Promised Land' by Goodall
'Credibility' by Kouzes & Posner
'Leading Change' by O’Toole
'Inviting Transformation' by Sonja Foss and Karen Foss
'Difficult Conversations: How to Discuss What Matters Most' by Douglas Stone
'Gendered Lives' by Julia Wood and Natalie Fixmer-Oraiz
'Visual Communication for Cyber Security - Beyond Awareness' by Van Deursen
'The Handbook of Communication and Security' by Hamilton and Bean
@QuinnyPig
QuinnyPig / resignation.txt
Last active January 31, 2023 06:51
Templated resignation letter
Dear BOSS,
Please accept this letter as formal notification that I am resigning from my position as JOB TITLE with COMPANY. My last day will be DATE OF LAST DAY.
Thank you so much for the opportunity to work in this position for the past DURATION. I’ve greatly enjoyed and appreciated the opportunities I’ve had to WTF DID YOU DO, and I’ve learned many things, all of which I will take with me throughout my career.
During my last two weeks, I’ll do everything possible to wrap up my duties and train other team members. Please let me know if there’s anything else I can do to aid during the transition.
I wish COMPANY continued success, and I hope to stay in touch in the future.
Sincerely,
@netsensei
netsensei / gist:7c71b3215bbf440746151aafc4cfd84f
Last active May 6, 2024 22:37
Setting up a PI-Hole FTL DNS on a local network

Setuping PI-Hole FTL DNS on a local network

pihole comes with it's own lightweight DNS server called FTL. It's geared towards easy of use. Even so, setting up this feature can be hard. Here are some lessons I've learned.

In this example:

  • Your network is setup on 192.168.1.0/24
  • 192.168.1.1 is your DHCP server and IP gateway. (usually your router)
  • 192.168.1.254 is the host running pi-hole
@immannino
immannino / vue-template.html
Last active March 15, 2022 03:01
Small vue + new.css template with SEO Meta tags for side projects.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Site Behavior tags -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Basic site info-->
<meta name="title" data-hid="title" content="">
@samclane
samclane / AAAA.pde
Created July 21, 2019 06:33
Recreating /u/f-x-p-x's AAA animation. All credit goes to them.
/*
Recreating /u/f-x-p-x's AAA animation.
Requires OpenSimplexNoise.java:
https://github.com/CodingTrain/website/blob/master/CodingChallenges/CC_137_4D_Noise_Loop/Processing/CC_137_4D_Noise_Loop/OpenSimplexNoise.java
*/
PGraphics pg;
float fontSize;
int cols = 30;
@calebporzio
calebporzio / pure_html_css_modal.css
Last active February 28, 2022 18:15
The CSS for the pure HTML/CSS modal I tweeted about.
details summary {
cursor: pointer;
outline: none !important;
display: inline-block;
padding: 8px 12px;
padding-top: 10px;
border-radius: 4px;
overflow: hidden;
background: #F09825;
color: white;
@jarifibrahim
jarifibrahim / cleaner.go
Last active February 9, 2024 16:37
Database cleanup hook using GORM
// DeleteCreatedEntities sets up GORM `onCreate` hook and return a function that can be deferred to
// remove all the entities created after the hook was set up
// You can use it as
//
// func TestSomething(t *testing.T){
// db, _ := gorm.Open(...)
//
// cleaner := DeleteCreatedEntities(db)
// defer cleaner()
//
@maoueh
maoueh / main.go
Last active December 20, 2023 01:04
golang gorilla mux sub/router + specific middleware per subrouter
package main
import (
"time"
"fmt"
"net/http"
"github.com/gorilla/mux"
)
func main() {
@mjgartendev
mjgartendev / nuxt.config.js
Created May 25, 2018 04:36
An example nuxt.config.js file heavily commented from the nuxt and vue-meta documentation examples
module.exports = {
/*
Headers of the page
- Nuxt.js uses vue-meta to update the headers and html attributes of your application.
- Nuxt.js configures vue-meta with these options:
{
keyName: 'head', // the component option name that vue-meta looks for meta info on.
attribute: 'data-n-head', // the attribute name vue-meta adds to the tags it observes
ssrAttribute: 'data-n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered
tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag