Skip to content

Instantly share code, notes, and snippets.

@phani92
phani92 / get_intermediate_certificate.rb
Last active November 30, 2023 18:34
Fix (action) for the fastlane's issue of downloading intermediate certificate with match [issue](https://github.com/fastlane/fastlane/issues/20902)
require 'tempfile'
require 'open3'
INTERMEDIATE_CERTIFICATES = [
{
OU: 'G1',
url: 'https://www.apple.com/certificateauthority/DeveloperIDCA.cer'
},
{
OU: 'G2',
@Druah
Druah / Emotes.md
Last active May 5, 2024 02:47
How to Enable 7TV, BetterTTV, and FrankerFaceZ Emotes for Newbs

This guide is slightly deprecated as V3 of 7TV's browser add-on now supports 7TV, BetterTTV, and FrankerFaceZ emotes out of the box, and has some great quality of life chat features that are currently not found in any other emote add-on. You should consider going to 7TV's website and downloading their browser add-on from there.

What even is this? FeelsDankMan

7TV, BetterTTV, and FrankerFaceZ, more commonly stylized as 7TV, BTTV, and FFZ, are 3rd party emote services for Twitch chat, which aim to enhance a viewer's chatting experience on Twitch by allowing for more emotes to be used in chat, free of charge. Think of it like Discord emojis.

If you're wondering what those weird phrases people in chat seem to be spamming are, it's probably an emote from one of the above mentioned 3rd party emote servi

@HexedHero
HexedHero / mc_client_performance_guide.md
Last active April 24, 2024 20:47
Performance guide for Minecraft 1.20.4+ Clients

Performance guide for Minecraft 1.20.4+ Clients

📜 Fabric

Fabric is the "modern" Minecraft modding software that is very modular.
We use Fabric in this guide so install it by going to https://fabricmc.net/use/ Download the .jar or .exe and run it.

Below is a list of performance and utility mods to make your Minecraft experience better and most importantly smooth.
The list is in order of most importance and they all work together including what they do with why to use them.

@adawolfs
adawolfs / strongswan.yaml
Created April 20, 2020 21:10
This deployment uses https://hub.docker.com/r/hanyifeng/alpine-ikev2-vpn container to deploy an IPsec server with strongswan on kubernetes and openshift.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: vpn
spec:
selector:
matchLabels:
app: vpn
serviceName: vpn
replicas: 1
@manics
manics / README.md
Last active March 18, 2024 23:57
Minio server with the Security Token Service (STS) and AssumeRole for temporary session tokens

MinIO Security Token Service (STS)

This is an example of setting up a Minio server with the Security Token Service (STS) and AssumeRole for temporary session tokens.

You must create a new Minio user to use STS, the default Minio access/secret won't work. The new user must have access to the objects you will be creating sessions for, the permissions of the created session are the intersection of the permissions of the STS user and the inline permissions requested when the session is created

Tested on 2020-04-06 with the current version of Minio. This is probably RELEASE.2020-04-04T05-39-31Z, though if using Homebrew on Mac OSX minio --version outputs DEVELOPMENT.GOGET so who knows.

@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:
@amitz
amitz / BUILD
Last active December 14, 2021 16:00
Building gRPC Gateway Binary Using Bazel using 'grpc-gateway'
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
##########
# Common #
##########
proto_library(
name = "project_proto",
srcs = [
"project.proto",
@112RG
112RG / microservice.md
Created October 21, 2018 04:09
Discord bot. Microservice a love hate

Please read this gist by DasWolke it goes into a much better explanation of why you should use microservice Discord bots.

This is about my experience in making a microservice discord bot.

To start let's look at the core design I was looking for in creating my bot

(https://i.imgur.com/bWxXyc3.png)

I was looking to have multiple gateways that serve different shards groups this design could allow for a beta or premium version of the bot to be hosted on the same service more easily. I also wanted plug and play workers that don't store any information and could be restarted or crash without having any downtime and be scaled just by changing the replica value in docker swarm.

@chrisstubbs93
chrisstubbs93 / ffmpeg.sh
Last active April 28, 2024 19:25
auto-restart FFMPEG when it stops sending frames to youtube
#!/bin/sh
sleep 5
ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log
@bdombro
bdombro / .gitlfstracks
Last active March 27, 2024 16:43
Git LFS Default Tracks - Common binary file extensions
"To include this, run `cat .gitlfstrack | xargs git lfs track`"
"*.3ds"
"*.3g2"
"*.3gp"
"*.7z"
"*.a"
"*.aac"
"*.adp"
"*.ai"
"*.aif"