Skip to content

Instantly share code, notes, and snippets.

---
version: "2"
services:
emby:
image: linuxserver/emby
container_name: emby
environment:
- PUID=998
- PGID=100
- TZ=America/Denver
@pradiptabasu
pradiptabasu / emby.conf
Created January 30, 2022 12:53
Nginx configuration for Emby Server
server {
listen 80;
server_name
media.yourdomain.com
media.int.yourdomain.com
;
root /var/www/html;
return 301 https://$server_name$request_uri;
@pradiptabasu
pradiptabasu / ngrok-selfhosting-setup.md
Created January 28, 2022 12:16 — forked from lyoshenka/ngrok-selfhosting-setup.md
How to setup Ngrok with a self-signed SSL cert

Intro

The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.

DNS

Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.

Different Operating Systems

@pradiptabasu
pradiptabasu / Pipeline.groovy
Created October 16, 2018 07:25 — forked from moinsam/Pipeline.groovy
Jenkins Pipeline Build script
node {
def mvnHome
stage('Preparation') {
git url: 'GIT_REPO_URL', branch: 'BRANCH_NAME', credentialsId: 'CREDENTIALS_ID'
mvnHome = tool 'Maven-3.3.9'
}
stage('Build') {
// Run the maven build
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' clean package -DskipTests docker:build"
@pradiptabasu
pradiptabasu / Jenkinsfile
Created October 16, 2018 07:01 — forked from bmvakili/Jenkinsfile
Liferay example Jenkinsfile
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '21', artifactNumToKeepStr: '50'))
timestamps()
timeout(time: 5, unit: 'MINUTES')
}
parameters{
string(name: 'JAVA_HOME', defaultValue: '/var/jenkins_home/tools/hudson.model.JDK/JDK_7u80/', description: 'JDK', )
}
@pradiptabasu
pradiptabasu / ubuntu-1404-preseed
Created March 7, 2016 08:33 — forked from scottslowe/ubuntu-1404-preseed
This is a preseed file, written for Ubuntu Server 14.04.2, that provides a fully automated installation (assuming the presence of a PXE boot infrastructure and a local HTTP server to provide the installation files).
# Ubuntu Server automated installation
# by Scott Lowe (scott.lowe@scottlowe.org)
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i netcfg/choose_interface select eth0
d-i netcfg/get_hostname string hostname
d-i netcfg/get_domain string domain.com
d-i netcfg/wireless_wep string
@pradiptabasu
pradiptabasu / default
Created March 7, 2016 08:33 — forked from hitsumabushi/default
Preseed Files : working with Wheezy & Ubuntu 14.04
# D-I config version 2.0
default debian/7.4/amd64/boot-screens/vesamenu.c32
prompt 1
timeout 300
menu title - Boop Menu -
label Debian-7.4
menu label ^0 Debian 7.4
#include debian/7.4/amd64/boot-screens/menu.cfg
kernel debian/7.4/amd64/linux