Skip to content

Instantly share code, notes, and snippets.

View buhtz's full-sized avatar
😇
Migrated to Codeberg.org

buhtz

😇
Migrated to Codeberg.org
View GitHub Profile
@richard512
richard512 / beepsongs.sh
Last active February 9, 2019 09:21
linux shell beep songs
#/bin/bash
PCSpeakerModuleInstalled=$(lsmod | grep pcspkr)
if [ ! "$PCSpeakerModuleInstalled" ]; then
sudo modprobe pcspkr
fi
BeepInstalled=$(which beep)
if [ ! "$BeepInstalled" ]; then
sudo apt install beep
@stuaxo
stuaxo / stdebize_pubsub.sh
Last active December 25, 2015 23:46
generate pubsub debs
#!/bin/bash
mkdir stdeb-pubsub
pushd stdeb-pubsub
virtualenv env
git clone https://github.com/nehz/pubsub
pushd pubsub
../env/bin/pip install stdeb
@abhinav-upadhyay
abhinav-upadhyay / DateTimeDecoder.py
Last active July 4, 2023 13:12
A JSON decoder/encoder implementation for parsing dates as datetime objects in Python
#!/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: