Skip to content

Instantly share code, notes, and snippets.

View yun14u's full-sized avatar

P T Nguyen yun14u

  • texas
View GitHub Profile
@cgswong
cgswong / logstash.conf
Last active June 24, 2021 18:08
Logstash configuration file.
# #####################################################################
# DESC: Logstash configuration file. Typically forwarding logs to
# Elasticsearch instance.
# #####################################################################
# Where to get input
input {
# Get input from standard input device/interface
stdin {
type => "stdin-type"
@Stono
Stono / create-docker-tls.sh
Last active February 27, 2024 08:17
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#
@dataBaseError
dataBaseError / PVR.md
Last active September 18, 2018 14:03
Setup details for installing MythTV with HDhomerun for Kodi

Prerequisites

In order to install the PVR system you must have:

  1. An antenna for capturing the broadcasted TV signal.

  2. HDHomeRun hardware such as the HDHomeRun DUAL. This system will connect to both the antenna and the LAN to make the broadcasted TV available to MythTV.

  3. Backend - A device which can run MythTV. This guide was tested using a Desktop computer running on Xubuntu 14.04. This device must connect to the LAN network.

@P7h
P7h / jdk_download.sh
Last active February 20, 2024 11:29
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@aputs
aputs / logrotate-nginx
Created June 12, 2010 03:04
logrotate config for nginx
/var/log/nginx_*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
postrotate
test ! -f /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid`