Skip to content

Instantly share code, notes, and snippets.

View clayrisser's full-sized avatar
🤓
coding

Clay Risser clayrisser

🤓
coding
View GitHub Profile
@senthilcodr
senthilcodr / zalando_standby_minio.md
Created September 13, 2019 07:38
Zalando Standby Cluster using MinIO

To set-up wal shipping in primary cluster:

  1. In the file manifests/configmap.yaml, uncomment the line containing wal_s3_bucket and set it to the bucket name created in MinIO.
  2. And then, add the following lines to the same file:
  pod_environment_configmap: postgres-pod-config
---
apiVersion: v1
kind: ConfigMap
metadata:
@hmenn
hmenn / android-studio.desktop
Last active May 10, 2023 12:27
android studio desktop shortcut file
[Desktop Entry]
Encoding=UTF-8
Version=2.2.3
Type=Application
Terminal=false
Exec="/opt/android-studio/bin/studio.sh"
Name=Android Studio
Comment=Android Studio
Categories=Programming;
Icon=/opt/android-studio/bin/studio.png
@thealexcons
thealexcons / jwt_golang_example.go
Last active April 16, 2023 03:04
JSON Web Tokens in Go
package main
import (
"io/ioutil"
"log"
"strings"
"net/http"
"encoding/json"
"fmt"
"time"
@stephenlb
stephenlb / https.py
Last active January 25, 2024 12:24
HTTPS Server - All-in-One Secure HTTPS Server
#!/usr/bin/python
# server
# python https.py
#
# browser
# https://0.0.0.0:4443
import BaseHTTPServer
import SimpleHTTPServer
@demisx
demisx / sites-available_angularjs_html5
Last active March 28, 2020 18:23
Nginx config for HTML5 AngularJS applications
server {
listen 8000;
server_name localhost;
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build;
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log";
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log";
error_page 404 /app/404.html;
error_page 403 /app/403.html;
daemon off;
error_log /dev/stdout error;
worker_processes 4;
events {
worker_connections 1024;
}