Instantly share code, notes, and snippets.

View notes_import.py
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# encoding=utf8
import re
import pprint
import json
import requests
import base64
import sys
View freemem.sh
#!/bin/sh
###########################################################################
# use freemem [lvl] [limit to run /num//unit/] [limit to 0- total 1- cache] #
# example usage ./freemem 3 3G 0 #
# author Mikolaj 'Metatron' Niedbala #
# licenced GNU/ GPL #
###########################################################################
echo $1 $2 $3
if [ "$1" -gt "3" ]; then
echo "Cache cleaning level out of range"