Skip to content

Instantly share code, notes, and snippets.

View Pavel-Sayekat's full-sized avatar
💭
What's the weather?

Pavel Sayekat Pavel-Sayekat

💭
What's the weather?
  • Nowhere
  • Bangladesh
View GitHub Profile
@Pavel-Sayekat
Pavel-Sayekat / nginx.conf
Created April 13, 2020 11:20 — forked from stevenringo/nginx.conf
Nginx conf for solid SSL/TLS
# Thin serving Rails.
upstream app_server {
server 127.0.0.1:3050 fail_timeout=0;
}
# SSL/TLS certificates - the key should be 4096 bit generated with: 'openssl genrsa -des3 -out server.key 4096'
ssl_certificate_key /var/app/deploy/www.thisisatest.com.key;
ssl_certificate /var/app/deploy/www.thisisatest.com.chained.crt;
# Ideally we'd have only TLSv1.2, but that compromises client support significantly
@Pavel-Sayekat
Pavel-Sayekat / nginx.conf
Created April 11, 2020 04:57 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@Pavel-Sayekat
Pavel-Sayekat / irc.md
Created September 22, 2018 15:20 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@Pavel-Sayekat
Pavel-Sayekat / Python IRC Bot
Created November 7, 2016 12:51
Basic python irc bot that responds to irc server pings, can op/deop, voice/devoice, ban/unban, change topic, send notices, etc.
#!/usr/bin/env python
# victorvortex.py - A simple Python IRC bot
# Authors: mrtux and OldCoder
# License: CC BY-NC-SA 3.0
# Revision: see git rev.
#---------------------------------------------------------------------
# Suggestions.
# These are just suggestions:
@Pavel-Sayekat
Pavel-Sayekat / gist:77f5c9ab28a31afa90c3b891c74df6a2
Created October 11, 2016 07:58 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt