$ docker
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 | |
| # SPDX-License-Identifier: MIT | |
| ## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com> | |
| ## | |
| ## This script is licensed under the terms of the MIT license. | |
| ## https://opensource.org/licenses/MIT | |
| # | |
| # Lockable script boilerplate | |
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
| 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 |
(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 deployAnd Update the new password
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 | |
| # | |
| # 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. |
# 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
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
| cmake_minimum_required(VERSION 3.16) | |
| include(ExternalProject) | |
| project(OpenGL_Practice) | |
| set(CMAKE_CXX_STANDARD 14) | |
| add_executable(OpenGL_Practice main.cpp) | |
| # GLEW | |
| find_package(OpenGL REQUIRED) |
##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
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
| import 'package:flutter/material.dart'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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
| [program:bridged] | |
| command=/opt/dmoj/venv/bin/python manage.py runbridged | |
| directory=/opt/dmoj/site | |
| stopsignal=INT | |
| # You should create a dedicated user for the bridged to run under. | |
| user=dmoj | |
| group=dmoj | |
| stdout_logfile=/opt/dmoj/bridge.stdout.log | |
| stderr_logfile=/opt/dmoj/bridge.stderr.log |
OlderNewer