Skip to content

Instantly share code, notes, and snippets.

@danielpclin
danielpclin / frp systemd.md
Last active December 26, 2023 05:15 — forked from ihipop/frp systemd.md
FRP systemd
@danielpclin
danielpclin / custom_ssl_unifi_controller.md
Created January 28, 2021 14:43 — forked from hdml/custom_ssl_unifi_controller.md
Installing a custom SSL cert on a Unifi Controller

##Installing a custom SSL cert on Unifi Controller

Requirements:

  • Domain certificate (*.crt)
  • Certificate key (*.key)
  • Intermediate certificate from CA (*.crt, *.pem)
  • Permissions to restart the unifi service
  • Debian or Ubuntu Unifi Controller installation
@danielpclin
danielpclin / README.md
Last active June 8, 2022 13:53 — forked from justincjahn/README.md
Minecraft server(s) using systemd and screen.

Install

# Install dependencies
sudo apt-get install -y wget apt-transport-https gnupg screen

wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /usr/share/keyrings/adoptium.asc
echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update # update if you haven't already
sudo apt-get install temurin-17-jdk
@danielpclin
danielpclin / nginx
Created December 23, 2019 05:42 — forked from markdl/nginx
Nginx init script for AWS barely modified from http://theglassicon.com/computing/web-servers/install-nginx-amazon-linux-ami.
#!/bin/sh
#
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
@danielpclin
danielpclin / deployUser.md
Created December 21, 2019 10:00 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@danielpclin
danielpclin / readline.rb
Created August 1, 2019 07:11
brew install url_to_this_raw_file to install readline 7 if you need it, brew update will remove old versions of readline that existing libs depend on
class Readline < Formula
# from https://github.com/Homebrew/homebrew-core/pull/36782
desc "Library for command-line editing"
homepage "https://tiswww.case.edu/php/chet/readline/rltop.html"
url "https://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz"
mirror "https://ftpmirror.gnu.org/readline/readline-7.0.tar.gz"
version "7.0.5"
sha256 "750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334"
keg_only :versioned_formula
@danielpclin
danielpclin / docker-help.md
Last active March 8, 2020 13:50 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

#!/bin/bash
# SPDX-License-Identifier: MIT
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate