Skip to content

Instantly share code, notes, and snippets.

@soaxelbrooke
soaxelbrooke / fscache.py
Last active Jun 2, 2018
File System Cache Decorator in Python
View fscache.py
""" Caches expensive function calls in pickled bytes on disk. """
import os
import shutil
import subprocess
import dill
from functools import wraps
import hashlib
import base64
@Hexalon
Hexalon / Lock-Computer.ps1
Last active Aug 26, 2020
Uses C# to call an Win32 API to lock the computer
View Lock-Computer.ps1
<#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.117
Created on: 3/25/2016 17:33
Created by: Colin Squier <hexalon@gmail.com>
Filename: Lock-Computer.ps1
===========================================================================
.DESCRIPTION
Uses C# to call an Win32 API to lock the computer
@ellisgeek
ellisgeek / btsync.sh
Last active Aug 29, 2015 — forked from mendelgusmao/btsync
Proper init.d script for btsync. Comes with complete install instructions!
View btsync.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: daemonized version of btsync.
@jasonsperske
jasonsperske / MIT-LICENSE
Last active Jan 6, 2022
A simple Python program that can read DOOM.Hexen IWAD and PWAD files and render them as SVG see examples at http://jason.sperske.com/wad/
View MIT-LICENSE
MIT License
Copyright (c) 2018 Jason Sperske
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: