This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ok5BTk9OSVNfVkVSU0lPTjoKMgo6U0NBTklUX1RZUEU6CiAgICAgICAgICAgICAgRkxPQVQgICAgICAgICAgICBNU0JGSVJTVAo6UkVDX0RBVEU6CiAxMC4wMy4yMDE2CjpSRUNfVElNRToKMDk6MzY6MDUKOlJFQ19URU1QOgogICAgICAyOTAuMDAwMDAwMDAwMAo6QUNRX1RJTUU6CiAgICAgICAyNTUuNgo6U0NBTl9QSVhFTFM6CiAgICAgICAyNTYgICAgICAgMjU2CjpTQ0FOX0ZJTEU6Ck46XFNQTV9EYXRhXDIwMTYtMDMtMTBcR29sZCAxMTEgLSBTVE0wMDQuc3htCjpTQ0FOX1RJTUU6CiAgICAgICAgICAgICA0Ljk5MkUtMSAgICAgICAgICAgICA0Ljk5MkUtMQo6U0NBTl9SQU5HRToKICAgICAgICAgICA1LjAwMDAwMEUtNiAgICAgICAgICAgNS4wMDAwMDBFLTYKOlNDQU5fT0ZGU0VUOgogICAgICAgICAgICAgMC4wMDAwMDBFKzAgICAgICAgICAwLjAwMDAwMEUrMAo6U0NBTl9BTkdMRToKICAgICAgICAgICAgMC4wMDBFKzAKOlNDQU5fRElSOgp1cAo6QklBUzoKICAgICAgICAgICAgMi4wMDBFLTEKOlotQ09OVFJPTExFUjoKCU5hbWUJb24JU2V0cG9pbnQJUC1nYWluCUktZ2FpbglULWNvbnN0Cglsb2cgQ3VycmVudAkxCTIuMDAwRS0xMCBBCTIuOTM3RS0xMSBtCTMuODY1RS03IG0vcwk3LjU5OUUtNSBzCjpDT01NRU5UOgppbml0aWFsIHNjYW4KOkRBVEFfSU5GTzoKCUNoYW5uZWwJTmFtZQlVbml0CURpcmVjdGlvbglDYWxpYnJhdGlvbglPZmZzZXQKCTE0CVoJbQlib3RoCTguODIwRS04CTAuMDAwRSswCgkwCUN1cnJlbnQJQQlib3RoCTEuMDAw |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |