Skip to content

Instantly share code, notes, and snippets.

View JustinTimperio's full-sized avatar
💭
I may be slow to respond.

jtimperio JustinTimperio

💭
I may be slow to respond.
  • Seattle
View GitHub Profile
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
### Keybase proof
I hereby claim:
* I am justintimperio on github.
* I am the_torpedo (https://keybase.io/the_torpedo) on keybase.
* I have a public key ASDuqzsuv2KHKUZkSKmK_p4w9IZxU21_9nvJrkujzPjAtgo
To claim this, I am signing this object:
#!/usr/bin/env bash
sudo systemctl stop rocketchat
sudo rm -rf /opt/Rocket.Chat
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
cd /tmp/bundle/programs/server
npm install
npm audit fix
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: psp.flannel.unprivileged
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
@JustinTimperio
JustinTimperio / minio_wrapper.py
Created November 8, 2020 23:23
Simple Minio Python3 CLI Wrapper
#! /usr/bin/env python3
import os
import argparse
from minio import Minio
from minio.error import ResponseError
def download_file(session, bucket, minio_path, local_path):
"""
@JustinTimperio
JustinTimperio / download_from_minio.sh
Created November 4, 2020 19:23
Download a File to Minio with Curl and Zero External Libraries or Programs
#!/usr/bin/env sh
# Example: ./download_minio.sh example.url.com username password bucket-name minio/path/to/file.txt.zst /download/path/to/file.txt.zst
if [ -z $1 ]; then
echo "You have NOT specified a MINIO URL!"
exit 1
fi
if [ -z $2 ]; then
@JustinTimperio
JustinTimperio / upload_to_minio.sh
Last active October 30, 2024 16:18
Upload a File to Minio with Curl and Zero External Libraries or Programs
#!/usr/bin/env sh
# Example: ./upload_to_minio example.url.com username password bucket-name internal/minio/path /absolute/path/file.txt.zst
if [ -z $1 ]; then
echo "You have NOT specified a MINIO URL!"
exit 1
fi
if [ -z $2 ]; then
@JustinTimperio
JustinTimperio / gentoo-installer.sh
Last active September 29, 2020 18:45 — forked from sormy/gentoo-installer.sh
gentoo quick install script
#!/bin/bash
set -e
GENTOO_RELEASES_URL=http://distfiles.gentoo.org/releases
GENTOO_ARCH=amd64
GENTOO_VARIANT=amd64
TARGET_DISK=/dev/xvda