Skip to content

Instantly share code, notes, and snippets.

@shortstack
shortstack / create-users.yml
Last active October 30, 2019 23:16
AWS Cognito Test Users
#############################################
# USAGE: ansible-playbook create-users.yml #
#############################################
---
- name: Set up Cognito test users
hosts: localhost
vars:
user_pool_id:
client_id:
@DaVukovic
DaVukovic / tvh.sh
Last active November 30, 2018 07:10
Installs tvheadend on Ubuntu machines
#!/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
@larencejg
larencejg / new_guac_builder_0.9.9.sh
Created April 24, 2016 17:15
Guacamole 0.9.9 install script working on UBUNTU 15.10 with TOMCAT8, NGINX/1.9.3, MYSQL 5.6.30
#!/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
@SierraNL
SierraNL / NUC.md
Last active September 15, 2021 20:31
Intel NUC DN2820FYKH: KodiBuntu, Netflix through ChromeLauncher, Steam (in-home streaming), PS3 Sixaxis (DS) controllers

##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:

@saihtaM
saihtaM / tv_grab_url-setup.py
Last active August 7, 2024 07:39
TVHeadend tv_grab_url - with automatic setup script for Linux Newbies.
#!/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