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
| ############################################# | |
| # USAGE: ansible-playbook create-users.yml # | |
| ############################################# | |
| --- | |
| - name: Set up Cognito test users | |
| hosts: localhost | |
| vars: | |
| user_pool_id: | |
| client_id: |
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/sh | |
| # This script installs TVHeadend on your Ubuntu 16.04.x machine | |
| # | |
| # Exit-codes: | |
| # exit 1 = no root rights | |
| # exit 2 = not using Ubuntu 16.04 | |
| # exit 3 = TVHeadend already installed (exit in install-function) | |
| # exit 4 = TVHeadend is not installed (exit in deinstall-function) | |
| # exit 5 = TVHeadend repo already exists |
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 | |
| # define some variables | |
| guac_version=0.9.9 | |
| mysql_version=5.1.38 | |
| mysql_root_password="MYSQL_ROOT_PWD" # change this password | |
| mysql_user_password="MYSQL_USER_PWD" # change this password | |
| server_name="HOSTNAME!" #Change HOSTNAME! below in two places, when creating the ssl cert and setting up NGINX |
##Introduction
This is basicly a note to self, on how I setup my NUC. But I like to share it, since there is no complete step-by-step tutorial that combines all these features.
This Gist is based on tons of tutorials and forumposts, which I will try to mention all in this list:
- The whole idea and starting point: http://tweakers.net/productreview/100715/intel-nuc-kit-dn2820fykh.html
- Steam setup: http://forum.kodi.tv/showthread.php?tid=157499&page=44
- Retroarch: http://ubuntuhandbook.org/index.php/2013/11/install-retroarch-emulator-ppa-ubuntu/
- PS3 controller support: https://help.ubuntu.com/community/Sixaxis
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 | |
| # coding=utf-8 | |
| import os | |
| import sys,stat | |
| import urllib2 | |
| installto = "/usr/bin/tv_grab_url" | |
| def replace_line(file_name, line_num, text): | |
| #Stolen from http://stackoverflow.com/questions/4719438/editing-specific-line-in-text-file-in-python |