Skip to content

Instantly share code, notes, and snippets.

View jperras's full-sized avatar
💨
what what is this where am I

Joël Perras jperras

💨
what what is this where am I
View GitHub Profile
@jprjr
jprjr / weechat.md
Last active June 6, 2022 10:10 — forked from zer4tul/weechat.md

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl
@jasonprado
jasonprado / main.rs
Created September 18, 2014 05:15
Sketch of an IRC BNC in Rust
use std::comm::Sender;
use std::io::net::tcp::TcpStream;
use std::io::{Listener, Acceptor};
use std::io::net::tcp::TcpListener;
use std::io::timer;
use std::time::duration::Duration;
// A sketch of the architecture for an IRC BNC that supports multiple client connections.
// I am curious if this is the optimal way to architect this kind of program.
@fritzy
fritzy / create_documentstore.sql
Last active August 29, 2015 14:05
Using Posgres as an Indexed Document Store
CREATE TABLE document_store (key CHAR(100) PRIMARY KEY, bucket CHAR(100), value JSON);
@cczona
cczona / zerovm-talks
Last active August 29, 2015 14:04
videos of talks about ZeroVM
[ZeroVM talk proposals to OpenStack Summit Paris 2014](https://www.openstack.org/vote-paris/SearchForm?Search=ZeroVM)
[2014-08-05] "ZeroVM Architecture and ZVM Runtime (ZRT)" by Ryan McKinney at University of Texas San Antonio Cloud & Big Data Laboratory
[slides (work in progress)](http://www.slideshare.net/sgt_mac/zero-vm-architecture)
[2014-08-01] "Changing the world with ZeroVM and Swift" Jakub Krajcovic at PyConAU OpenStack Miniconf
@staltz
staltz / introrx.md
Last active May 12, 2025 23:22
The introduction to Reactive Programming you've been missing
@carljm
carljm / db.py
Last active March 18, 2025 15:37
SQLAlchemy and Postgres autocommit
"""
SQLAlchemy, PostgreSQL (psycopg2), and autocommit
See blog post: http://oddbird.net/2014/06/14/sqlalchemy-postgres-autocommit/
"""
from contextlib import contextmanager
from sqlalchemy import create_engine, event
from sqlalchemy.orm import sessionmaker, Session as BaseSession
@zeekay
zeekay / app.py
Last active September 9, 2019 12:57
Management command for Flask + uWSGI , restarts uWSGI on file changes.
from flask import Flask
def configure_uwsgi(app):
# Setup debugging, logging for uwsgi.
try:
import uwsgi
except ImportError:
return
from time import strftime
@pascalpoitras
pascalpoitras / 1.md
Last active May 1, 2025 10:42
My WeeChat configuration

This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.

import os
import pytest
from alembic.command import upgrade
from alembic.config import Config
from project.factory import create_app
from project.database import db as _db
@dkubb
dkubb / ssl.nginxconf
Last active April 11, 2019 03:56
Nginx SSL configuration (PFS, HSTS, SPDY, BREACH mitigation, FIPS compliant)
ssl_certificate cert.pem;
ssl_certificate_key cert.key.pem;
ssl_trusted_certificate cert.ca.pem;
ssl_dhparam cert.dh.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;