Skip to content

Instantly share code, notes, and snippets.

View thebongy's full-sized avatar
🎯
Focusing

Rishit Bansal thebongy

🎯
Focusing
View GitHub Profile
@palewire
palewire / README.md
Last active May 7, 2024 02:29
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation

@theProgrammerDavid
theProgrammerDavid / Mailinabox.md
Last active March 5, 2020 06:07
Adventures with Mail-in-a-box

Mail-in-a-box Guide based on hours of errors/troubleshooting.

The official maintainence guide for Mail-in-a-box can be found here

Note: You should always make regular backups of files.

Help! My emails are going to spam

  • If you have just created/bought a domain and setup Main-in-a-box to be your mail server but realise that all of your emails are going to spam, this may help you out.
  • An A record alone is not sufficient for your mail server. You need several TXT records so that GMail or any other email provider can verify the integrity of your mail server. DMARC, DKIM need a TXT record each.
  • Consider using many free online tools to check your emails. email-tester is a popular online tool that i use often.
@mbchoa
mbchoa / main.go
Created December 25, 2018 21:32
Example usage of MongoDB's official Go Driver with nested struct types
package main
import (
"context"
"fmt"
"log"
"github.com/mongodb/mongo-go-driver/bson"
"github.com/mongodb/mongo-go-driver/mongo"
"github.com/mongodb/mongo-go-driver/mongo/options"
@lunks
lunks / gruvbox-dark.conf
Last active April 25, 2024 04:21
gruvbox-dark theme for kitty - the fast, featureful, GPU based terminal emulator
# gruvbox-dark colorscheme for kitty
# snazzy theme used as base
foreground #ebdbb2
background #272727
selection_foreground #655b53
selection_background #ebdbb2
url_color #d65c0d
# black
@obscurerichard
obscurerichard / README.md
Created September 17, 2012 22:35
Simulates a low bandwidth, high-latency network connection

slow

This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.

slow 3G                   # Slow network on default eth0 down to 3G wireless speeds
slow reset                # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet  with a high latency
slow dsl -b 1mbps         # Simulate DSL with a slower speed than the default

slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.