Skip to content

Instantly share code, notes, and snippets.

View pizzapanther's full-sized avatar
🍕
Crushing it daily

Paul Bailey pizzapanther

🍕
Crushing it daily
View GitHub Profile
@markuman
markuman / README.md
Last active September 18, 2024 12:21
🗺️ OSM - self host the entire planet 🌎 in ~30 minutes 🚀

🗺️ OSM - self host the entire planet 🌎 in ~30 minutes 🚀

TL;DR

mkdir osm
wget -O osm/planet.mbtiles https://hidrive.ionos.com/api/sharelink/download?id=SYEgScrRe
podman run -ti --rm -p 9000:9000 --name sms -v $(pwd)/osm/:/data/ registry.gitlab.com/markuman/sms:latest
firefox http://localhost:9000
@pizzapanther
pizzapanther / zulip-notes.md
Last active April 14, 2021 21:34
Fix Zulip Avatars

Problem

Boto doesn't handle gov cloud S3 urls correctly

Fix

Open file like: sudo nano -iw /home/zulip/deployments/{date}/zulip-py3-venv/lib/python3.6/site-packages/boto/s3/connection.py

Edit Lines:

Disable Device Enrollment Notification on MacOS Catalina

Restart the Mac in Recovery Mode by holding Command-R during restart

Open Terminal in the recovery screen and type:

csrutil disable

Restart Computer Normally

@pizzapanther
pizzapanther / .tmux.conf
Created October 12, 2018 22:50
My Tmux Conf
set -g mouse on
@pizzapanther
pizzapanther / bashrc
Last active July 26, 2021 13:57
My Bash Shortcuts
source /usr/share/autojump/autojump.bash
PS1='\W\$ '
eval $(thefuck --alias)
export GOROOT=$HOME/go
export GOPATH=$HOME/go/packages
export GPG_TTY=$(tty)
export EDITOR=/bin/nano
export PATH=$PATH:/home/paulmbailey/bin:/usr/local/go/bin:$GOROOT/bin:./node_modules/.bin
@mfuzailzubari
mfuzailzubari / nginx.conf
Created June 27, 2018 12:31
NGINX RTMP Configurations
worker_processes auto;
events {
# Allows up to 1024 connections, can be adjusted
worker_connections 1024;
}
# RTMP configuration
rtmp {
server {
listen 1935; # Listen on standard RTMP port
@dhruvpathak
dhruvpathak / bash_thanos.sh
Created May 5, 2018 10:20
Thanos bash script : Kill half of the universe randomly
kill -9 `ps aux | awk '{print $2}' | shuf | awk '!(NR%2)'`

Bad Reasons to Start A Company

  1. You want people to like you / want to be in charge of people / think you're a "leader"
  2. You think you're smarter than everyone else
  3. You think you have some technical "secret sauce" that no one else has and that this has intrinsic value
  4. You think your PhD thesis is a product
  5. Mummy and Daddy are giving you a seed round because they want to get you out of the house
  6. You live in LA or New York and you're jealous of San Francisco
  7. You heard that $fad (Big Data/IoT/Adtech/Fintech/whatever) was big
@Miserlou
Miserlou / cities.json
Created April 30, 2015 06:58
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@tmeers
tmeers / gist:8701826
Last active August 29, 2015 13:55
Rules for generating Pinewood Derby Race Heats in a "Chaotic-Rotation Method"
Get number of heats based on LaneCount and RacerCount: totalHeats
Add a Race per Den
For each Heat found above:
Select random racers for the lineup based on a "Chaotic-Rotation Method"
Each Racer must race at least 3 times
Each racer must race the same number of times
Racers should be held in a race through as many heats as possible
Racers cannot compete against themselves
Racers should compete against as many different opponents as possible