Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / application.py
Created November 14, 2017 16:00
Health check for python application via unix sockets
import os
import time
import socket
from threading import Timer
SOCKET_PATH="/var/run/appname_health/socket"
state = 0
def main():
@jeantil
jeantil / algorithm.sql
Last active May 26, 2020 20:37
Code source d’Admission post-bac
--
-- le code ci-dessous a a été fortement amélioré par un effor collaboratif sur
-- https://github.com/jeantil/admission_post_bac
-- Pull requests, issues et contributions wiki sont les bienvenues.
-- Une partie du code a été rétro analysé a partir de diverses sources cf https://github.com/jeantil/admission_post_bac/wiki
--
FUNCTION gen class alea V1 relatif grp(
o_g_ea_cod_ins IN VARCHAR2,
o_g_ti_cod IN NUMBER,
@bobbygrace
bobbygrace / trello-css-guide.md
Last active April 22, 2024 10:15
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

anonymous
anonymous / README
Created October 1, 2013 11:56
Juniper SSL Network Connect VPN Route Monitor (Split Tunelling) Hack
First you must replace these constants:
MYHOMEDIR - eg: '/home/rusty'
MYVPNUSER - eg: 'rusty.venture'
MYVPNURL - 'http://something.com/..../index.cgi
MYVPNHOST - 'something.com'
MYVPNREALM - your realm
MYPIN - your pin if using RSA token
MYROUTE1 - routes to add and delete
MYROUTE2 - routes to add and delete