Skip to content

Instantly share code, notes, and snippets.

View benzerbett's full-sized avatar

Benzer benzerbett

  • KE
View GitHub Profile
FROM php:8.3-bookworm
RUN apt update -q && apt upgrade -y \
&& apt-get install -y build-essential git libnode-dev
RUN cp -s /usr/lib/`uname -m`-linux-gnu/libv8* /usr/local/lib/ \
&& cp -rs /usr/include/node/* /usr/local/include/
# TODO: Use PECL
@benzerbett
benzerbett / README.md
Created May 16, 2025 18:23 — forked from pigeonflight/README.md
This is an ugly script to just extract/unpack the ICD-11 codes from a local docker instance of the ICD-11 api

Assumptions

You have Python. You've installed the requests library. You have docker on your machine.

Usage

  1. Launch the ICD-11 docker container
docker run -p 80:80  --env "acceptLicense=true" --env "saveAnalytics=true" --env "includeIp=false" whoicd/icd11_sw_1904_mms_en
@benzerbett
benzerbett / sync.md
Created July 19, 2023 06:05 — forked from xin053/sync.md
[go sync] go sync #go #sync

sync.WaitGroup

package main

import (
	"log"
	"math/rand"
	"sync"
	"time"
@benzerbett
benzerbett / nginx.conf
Created April 4, 2023 13:00 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration
@benzerbett
benzerbett / nginx.conf
Created October 24, 2022 12:05 — forked from Maximization/nginx.conf
Basic Nginx configuration for serving multiple websites at different domains
# `events` block is required so we add an empty one for validity
events {}
http {
# Configuration block for weatherapp.com
server {
listen 80; # HTTP
server_name weatherapp.com; # match all requests originating from "weatherapp.com" domain
# Route all requests to port 3000 on localhost
@benzerbett
benzerbett / nextjs-deploy.md
Created March 10, 2022 14:34 — forked from jjcodes78/nextjs-deploy.md
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@benzerbett
benzerbett / dnsmasq OS X.md
Created February 3, 2022 07:44 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@benzerbett
benzerbett / macos_big_sur_homebrew_apache_php_mariadb_2020.md
Created February 2, 2022 09:24 — forked from karlhillx/macos_big_sur_homebrew_apache_php_mariadb_2020.md
macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB (Regularly updated)

macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB

This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.

@benzerbett
benzerbett / postgres-brew.md
Created September 6, 2021 17:05 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@benzerbett
benzerbett / SessionPersistence.js
Created April 17, 2021 21:49 — forked from HarshithaKP/SessionPersistence.js
Demonstration of how user session can be persisted across redirects, with an express server and request client.
var express = require('express')
var session = require('express-session')
var app = express()
var r = require('request')
// By default cookies are disabled, switch it on
var request = r.defaults( { jar:true } )
app.use(session({ secret: 'keyboard cat',saveUninitialized : false, resave : false, cookie: { maxAge: 60000 }}))