A one-liner that pulls an AAC stream, pipes it into ffmpeg which transcodes it to mp3, then pipes it into ezstream with your settings (in the xml file) which streams it your radio.
sudo apt-get install ficy ffmpeg ezstream
# Clubhouse / git / deploy utility functions | |
# | |
# API docs: https://clubhouse.io/api | |
# | |
# Assuming the following: | |
# 1. We have a range of git commits that represent the changes being deployed | |
# 2. Our git branches and pull requests use the username/ch123/story-name format, | |
# so that "ch123" ends up in a commit message | |
# 3. We have a Clubhouse API token set to the $CLUBHOUSE_API_TOKEN environment variable | |
# |
TL;DR* Here's what the license entails:
1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
import contextlib | |
import OpenSSL.crypto | |
import os | |
import requests | |
import ssl | |
import tempfile | |
@contextlib.contextmanager | |
def pfx_to_pem(pfx_path, pfx_password): | |
''' Decrypts the .pfx file to be used with requests. ''' |
# !/usr/bin/env bash | |
# File path should be ./bin/post_compile | |
# (.sh extension added in Gist just to enable shell syntax highlighting. | |
# https://discussion.heroku.com/t/django-automaticlly-run-syncdb-and-migrations-after-heroku-deploy-with-a-buildpack-or-otherwise/466/7 | |
echo "=> Performing database migrations..." | |
python manage.py migrate |
To show your active Git branch in your command prompt, you will need to do the following:
.bash_profile
file..bashrc
file.parse_git_branch() {
The easiest way to get the ClamAV package is using Homebrew
$ brew install clamav
Before trying to start the clamd
process, you'll need a copy of the ClamAV databases.
Create a freshclam.conf
file and configure as so
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
This is work in progress! I need to added titles and descriptions fro each link, and organize them in categories