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 | |
PCSpeakerModuleInstalled=$(lsmod | grep pcspkr) | |
if [ ! "$PCSpeakerModuleInstalled" ]; then | |
sudo modprobe pcspkr | |
fi | |
BeepInstalled=$(which beep) | |
if [ ! "$BeepInstalled" ]; then | |
sudo apt install beep |
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 | |
mkdir stdeb-pubsub | |
pushd stdeb-pubsub | |
virtualenv env | |
git clone https://github.com/nehz/pubsub | |
pushd pubsub | |
../env/bin/pip install stdeb |
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/env python | |
# An example of decoding/encoding datetime values in JSON data in Python. | |
# Code adapted from: http://broadcast.oreilly.com/2009/05/pymotw-json.html | |
# Copyright (c) 2023, Abhinav Upadhyay | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |