sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -\n
sudo apt -y update
sudo apt -y install postgresql-14
sudo systemctl status postgresql
sudo systemctl enable postgresql
sudo -u postgres psql -c "SELECT version();"
sudo nano /etc/postgresql/14/main/postgresql.conf
This file contains 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
//main | |
ServerToClient: SMSG_GUILD_ROSTER (0x008A) Length: 1349 ConnIdx: 0 Time: 02/02/2019 22:57:47.000 Number: 144 | |
Number Of Members: 28 | |
MOTD: Please remember that it is expected from every gm to be active and pay in mind that Yggr is handsome | |
Info: Click here to set message | |
Number Of Ranks: 5 | |
[0] Rights: 913919 (GuildChatListen, GuildChatSpeak, OfficerChatListen, OfficerChatSpeak, Invite, Remove, Roster, Promote, Demote, SetMOTD, EditPublicNote, ViewOfficerNote, EditOfficerNote, ModifyGuildInfo, WithdrawRepair, WithdrawGold) | |
[0] Money Per Day: -1 | |
[0] [0] Tab Rights: 255 (255) | |
[0] [0] Tab Slots: -1 |
This file contains 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
public class CustomFragmentsPresenter : MvxFragmentsPresenter | |
{ | |
public interface IMvxFragmentHostEx : IMvxFragmentHost | |
{ | |
void Close(IMvxViewModel viewModel); | |
void ChangePresentation (MvxPresentationHint hint); | |
} | |
private IMvxNavigationSerializer _serializer; |
This file contains 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
using Microsoft.Extensions.Configuration; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.OpenSsl; | |
using Org.BouncyCastle.Security; | |
using System.IO; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
namespace PostgreEFCore |
This file contains 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
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
# DEBUG | |
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS debug | |
WORKDIR /app |
This file contains 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
// ==UserScript== | |
// @name noVNC Paste for Proxmox | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2a | |
// @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
// @author Chester Enright | |
// @match https://* | |
// @include /^.*novnc.*/ | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none |
This file contains 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
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables. | |
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding. | |
Network configuration | |
Here’s how it’s done: | |
Create a virtual interface that serves as the gateway for your VMs: |
This file contains 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
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM | |
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946) | |
$ sudo systemctl enable serial-getty@ttyS0.service | |
$ sudo systemctl start serial-getty@ttyS0.service | |
3. Done! You can now select xterm.js in the PVE Web GUI |
https://docs.azul.com/core/zulu-openjdk/install/debian
java -version
ARTEMIS_VER=2.27.1
CLUSTER=discordlogbot-cluster
wget https://dlcdn.apache.org/activemq/activemq-artemis/$ARTEMIS_VER/apache-artemis-$ARTEMIS_VER-bin.tar.gz
sudo tar -xvzf apache-artemis-$ARTEMIS_VER-bin.tar.gz
This file contains 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 | |
sudo apt install build-essential cmake cmake-data debhelper dbus google-mock \ | |
libboost-dev libboost-filesystem-dev libboost-log-dev libboost-iostreams-dev \ | |
libboost-program-options-dev libboost-system-dev libboost-test-dev \ | |
libboost-thread-dev libcap-dev libexpat1-dev libsystemd-dev libegl1-mesa-dev \ | |
libgles2-mesa-dev libglm-dev libgtest-dev liblxc1 \ | |
libproperties-cpp-dev libprotobuf-dev libsdl2-dev libsdl2-image-dev lxc-dev \ | |
pkg-config protobuf-compiler python3-minimal | |
OlderNewer