Skip to content

Instantly share code, notes, and snippets.

@clementi
clementi / is_constitutional.py
Created March 1, 2017 21:51
Determines whether the supplied bill is constitutional according to the US Constitution.
import time
import random
import sys
import os.path
def main():
if len(sys.argv) < 2:
print("File required.")
else:
@bthompson-nd
bthompson-nd / activemq.service
Created February 6, 2017 15:14
A systemd ActiveMQ service file for CentOS 7 and Red Hat 7
[Unit]
Description=ActiveMQ Message Broker
After=syslog.target network.target
[Service]
Type=forking
PIDFile="/opt/activemq/data/activemq.pid"
ExecStart="/opt/activemq/bin/start"
ExecStop="/opt/activemq/bin/stop"
ExecReload="/opt/activemq/bin/restart"
@danielcbaldwin
danielcbaldwin / arch_console_font.sh
Last active August 20, 2026 21:13
Change Console Fonts, Arch Linux
# Install terminus font
yaourt terminus-font
# Set your default font
# NOTE: You can setup the font size and codepage mappings using the font
# definition as shown below.
#
# ter-<X><SIZE><STYLE>
# where <X> is a character identifying the code page as listed bellow