Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell
View GitHub Profile

AJ's Blog Template (ex: Markdown Cheat Sheet)

"Markdown Cheatsheet Background Image"

Markdown is a standardized format for creating web pages and documentation, modeled after the way that people stylize plain-text.

TL;DR

"TL;DR" is a technical term that means "Too Long; Didn't Read". I recommend adding a TL;DR section to all documentation that you create, with the most concise instructions, without much or any explanation, as a quick copy-and-paste or quick-reference example.

Restore the default spctl database:

sudo spctl --reset-defaults
sudo cp /var/db/.SystemPolicy-default /var/db/SystemPolicy
# reboot may be required

Add the quarantine back:

@coolaj86
coolaj86 / README.md
Last active September 26, 2021 13:51
Backup Telebit

How to Backup Telebit Config, Service, and App

If you need to re-install Telebit (which you probably do, if you're reading this), you should backup up your old config.

Here's how:

Mac Users

# Stop and unload the current telebit process
#!/bin/bash
# Block all of APNIC
ufw deny from 43.224.0.0/13
ufw deny from 43.236.0.0/14
ufw deny from 43.240.0.0/14
ufw deny from 43.245.0.0/16
ufw deny from 43.246.0.0/15
ufw deny from 43.248.0.0/14
ufw deny from 43.252.0.0/16
title tags
Back to Basics: How to 'deploy' an Express app
node

How to Create a Web App

  • Infrastructure
  • Web App
  • HTTP & REST

He said, "Bono, do you know the Senegalese proverb 'If you want to cut a man's hair, it is better if he is in the room'?" He said it in a loving way, but we didn't miss the message:

Be careful if you think you know what we want. Because we know what we want. You're not African, and this messiah complex hasn't always turned out so well.

@coolaj86
coolaj86 / tabletest.go
Created May 27, 2020 03:54 — forked from mvndaai/tabletest.go
Go table test
package tabletest
import "errors"
//ForceError will return an error if the boolean is true
func ForceError(force bool) error {
if force {
return errors.New("forced error")
}
return nil