Skip to content

Instantly share code, notes, and snippets.

View scholi's full-sized avatar

Olivier Scholder scholi

  • Switzerland
View GitHub Profile
@scholi
scholi / mem_watchdog.py
Last active December 20, 2018 12:10
Memory watchdog for python process.
"""
Python 64bit on windows can potentially use all your RAM and freeze your computer.
Here is a small watchdog which will automatically kill the python process which use
the highest amount of RAM if the RAM consumption is higher than 95%
"""
import psutil
import time
import sys
def get_max_ram_proc():
This file has been truncated, but you can view the full file.
@scholi
scholi / FunWAutostereogram.ipynb
Last active May 8, 2017 20:54
Revert 3D-autostereogram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scholi
scholi / rc.lua
Last active August 29, 2015 14:05
Config file for awesome WM
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library