Skip to content

Instantly share code, notes, and snippets.

View arshinalbab's full-sized avatar
🌴
Chilling!

Arshin Albab arshinalbab

🌴
Chilling!
View GitHub Profile
@211211
211211 / letsencrypt_2020.md
Created September 16, 2020 18:33 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@DarthSim
DarthSim / 00.imgproxy_vs_alternatives.md
Last active October 19, 2025 08:46
imgproxy vs alternatives benchmark

Important

These benchmark results are outdated.

Check out our blog post for the latest benchmark results.

imgproxy vs alternatives benchmark

Setup

  • c5.xlarge AWS instance: 4 CPUs, 8 GB RAM
@tsilvers
tsilvers / upload.go
Last active January 27, 2025 15:24
Upload files to a Go server using web sockets.
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"time"
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@caseywatts
caseywatts / 0 push to talk.md
Last active September 21, 2023 13:55
Push To Talk - Google Meet Bookmarklet

Short link to this page: http://caseywatts.com/ptt

Other gists & tricks: http://caseywatts.com/gists-and-tricks

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Push To Talk in a Google Hangout (Meet)

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: PTT (push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
@kocisov
kocisov / next_nginx.md
Last active February 3, 2025 07:27
How to setup next.js app on nginx with letsencrypt
@walm
walm / main.go
Last active September 21, 2025 16:52
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@johnthillaye
johnthillaye / mean_aws_deployment_process.MD
Last active October 28, 2022 18:03
MEAN.JS Full Stack Deployment Process to AWS EC2

MEAN.JS Full Stack Deployment Process to AWS EC2

Deploy AWS EC2 Instance

###Install & configure AWS CLI tools

$ sudo pip install awscli
$ aws configure
@Kevinlearynet
Kevinlearynet / solr.js
Created December 17, 2014 17:41
Example of using 'solr-client' in Node.js environment
// install solr client package: `npm install solr --save`
var solr = require( 'solr-client' );
// client connects to solr host
var client = solr.createClient({
host : host,
port : port,
core : core,
path : path,
agent : agent,
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active September 24, 2025 16:35
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html