Skip to content

Instantly share code, notes, and snippets.

View mr-rigden's full-sized avatar

Jason Rigden mr-rigden

View GitHub Profile
from dateutil.parser import *
from nested_lookup import nested_lookup
import requests
import requests_cache
from slugify import slugify
import xmltodict
requests_cache.install_cache('demo_cache')
# This is a dict mapping ISO 639-1 lanuage codes to english.
# Each code maps to a name so some information has been lost.
# This is basically intented for programicall generating phrases and sentences more naturally.
languages = {
'aa': 'Afar',
'ab': 'Abkhazian',
'ae': 'Avestan',
'af': 'Afrikaans',
'ak': 'Akan',
'am': 'Amharic',
<iframe style="border: none" src="//html5-player.libsyn.com/embed/episode/id/9023279/height/90/theme/custom/thumbnail/yes/direction/backward/render-playlist/no/custom-color/87A93A/" height="90" width="100%" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
---
title: "This is the template with all features"
description: "This is the template posst."
feature_image: "feature.jpg"
tags: ["Code", "TSests", "Questions"]
categories: ["Podcast"]
date: "1976-07-04"
author: "Jason Rigden"
author_link: "https://jasonrigden.com/about/"
youtube: "QILiHiTD3uc"
#!/bin/bash
read -p "Should we change our MAC address?" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "change MAC"
fi
sudo wifi-menu
sudo mount 192.168.1.12:/mnt/MyBook/Teletraan_I /home/jason/temp/disk6
#!/bin/bash
tmux new-session -d -s syncthing syncthing
tmux new-session -d -s mopidy mopidy
apt-get update
apt-get upgrade
apt-get install git tmux htop
sudo nano /etc/hostname
sudo nano /etc/hosts
adduser jason
@mr-rigden
mr-rigden / dolly.py
Created February 20, 2018 16:18
Dolly
##############################
# Builders
##############################
def build_PlainSpeech(body):
speech = {}
speech['type'] = 'PlainText'
speech['text'] = body
return speech
##############################
# Program Entry
##############################
def lambda_handler(event, context):
if event['request']['type'] == "LaunchRequest":
return on_launch(event, context)
elif event['request']['type'] == "IntentRequest":
return intent_router(event, context)
##############################
# Builders
##############################
def build_PlainSpeech(body):
speech = {}
speech['type'] = 'PlainText'
speech['text'] = body
return speech