Skip to content

Instantly share code, notes, and snippets.

@fritsstegmann
fritsstegmann / Setup Redis 6 with TLS on Ubuntu 18.04.md
Last active January 26, 2025 18:28
Setup Redis 6 with TLS
On Ubuntu 18.04
@umutyerebakmaz
umutyerebakmaz / laravel-websockets-ssl-lets-encrypt-certbot-supervisor-ubuntu.md
Last active January 8, 2025 17:03
Laravel-Websockets Deploy Nginx Virtualhost with SSL

Laravel-websockets, SSL Certificate, Let's Encrypt, Certbot, Supervisor, Digitalocean Ubuntu

I did two days work to run laravel-websockets on my server. It will be nice to share with you.

Steps

Step1 - Laravel Websockets Installation with composer

Laravel WebSockets can be installed via composer:

@choyno
choyno / nginxsetup.txt
Last active August 16, 2024 18:49
RESTART NGINX AMAZON LINUX AMI
Try to run the following two commands:
sudo fuser -k 80/tcp
sudo fuser -k 443/tcp
NGINX BASIC COMMAND
sudo service nginx restart
sudo service nginx start
sudo service nginx stop
@maxmilian
maxmilian / EFS-filesystem.md
Last active March 26, 2024 01:46
unknown filesystem type 'efs'
sudo apt-get update
sudo apt-get install -y git binutils make
git clone https://github.com/aws/efs-utils
cd efs-utils
make deb
sudo apt-get install -y ./build/amazon-efs-utils*deb
@npearce
npearce / install-docker.md
Last active January 28, 2026 11:06
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@Mahedi-61
Mahedi-61 / cuda_11.8_installation_on_Ubuntu_22.04
Last active January 17, 2026 07:58
Instructions for CUDA v11.8 and cuDNN 8.9.7 installation on Ubuntu 22.04 for PyTorch 2.1.2
#!/bin/bash
### steps ####
# Verify the system has a cuda-capable gpu
# Download and install the nvidia cuda toolkit and cudnn
# Setup environmental variables
# Verify the installation
###
### to verify your gpu is cuda enable check
@dideler
dideler / bot.rb
Last active February 4, 2026 23:07
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@sgomez84
sgomez84 / nginx.conf
Last active September 4, 2023 00:34
Nginx Proxy Pass to PHP-FPM
upstream phpfpm {
#server unix:/var/run/php5-fpm.sock;
#avoid sockets for nginx-fpm on Linux, they are good for BSD
server 127.0.0.1:9000;
}
server {
listen 8080;
server_name sumhr.com;
rewrite ^(.*) $scheme://www.sumhr.com$1 permanent;
# [
# {rabbit,
# [##
## Network Connectivity
## ====================
##
## By default, RabbitMQ will listen on all interfaces, using
## the standard (reserved) AMQP port.
##
## {tcp_listeners, [5672]},
@cespare
cespare / example.conf
Created September 27, 2014 23:08
example nginx reverse proxy config
server {
listen 80;
server_name mysite.example.com;
access_log /path/to/mysite.example.com.log;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# app server listens on localhost:9876