This file contains hidden or 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
#!/bin/bash | |
/usr/bin/logger -t "sendmail" "'$*'" | |
/usr/bin/logger -t sendmail <&0 |
This file contains hidden or 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
import sys | |
import subprocess | |
import threading | |
import codecs | |
import selectors | |
from typing import BinaryIO, TextIO | |
UTF8Reader = codecs.getreader("utf-8") |
This file contains hidden or 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
#!/usr/bin/python | |
""" | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2017 Vinzenz Johann Sinapius <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
This file contains hidden or 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
#!usr/bin/python3 | |
import os | |
from PIL import Image | |
from rectpack import newPacker | |
IMAGES = [] | |
# to lazy to handle rotation right now | |
PACKER = newPacker(rotation=False) |
This file contains hidden or 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
adjectives = { | |
'A': 'International', | |
'B': 'Coporate', | |
'C': 'National', | |
'D': 'Lead', | |
'E': 'Executive', | |
'F': 'Acting', | |
'G': 'District', | |
'H': 'Internal', | |
'I': 'Central', |
This file contains hidden or 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
class Process(object): | |
def __init__(self, name, duration, next_processes=[]): | |
self.name = name | |
self.duration = duration | |
self.previous_processes = [] | |
self.next_processes = next_processes | |
for process in next_processes: | |
process.previous_processes.append(self) | |
def earliest_starting_point(self): |