This file contains 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
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 file contains 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
# 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', |
This file contains 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
<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> |
This file contains 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
--- | |
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" |
This file contains 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 | |
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 |
This file contains 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 | |
tmux new-session -d -s syncthing syncthing | |
tmux new-session -d -s mopidy mopidy |
This file contains 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
apt-get update | |
apt-get upgrade | |
apt-get install git tmux htop | |
sudo nano /etc/hostname | |
sudo nano /etc/hosts | |
adduser jason |
This file contains 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
############################## | |
# Builders | |
############################## | |
def build_PlainSpeech(body): | |
speech = {} | |
speech['type'] = 'PlainText' | |
speech['text'] = body | |
return speech |
This file contains 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
############################## | |
# 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) |
This file contains 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
############################## | |
# Builders | |
############################## | |
def build_PlainSpeech(body): | |
speech = {} | |
speech['type'] = 'PlainText' | |
speech['text'] = body | |
return speech |
NewerOlder