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
namespace TelephonyServices.DataModels; | |
public class MailboxConfig | |
{ | |
public string MailboxNumber { get; set; } = ""; | |
public string MailboxSecret { get; set; } = ""; | |
public string MailboxName { get; set; } = ""; | |
public string MailboxEmail { get; set; } = ""; | |
public string MailboxPager { get; set; } = ""; | |
public string MailboxOptions { get; set; } = ""; |
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 | |
if [ -z "$1" ] | |
then | |
echo "Container name must be provided on first parameter" | |
echo "USAGE: install-dotnet.sh <containername>" | |
exit 1 | |
fi | |
lxc file push ./install-script $1/root/install.sh |
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 | |
if [ -z "$1" ] | |
then | |
echo "User name must be provided on first parameter" | |
echo "USAGE: createuser.sh <username> <containername>" | |
exit 1 | |
fi | |
if [ -z "$2" ] | |
then |
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
config: | |
user.user-data: | | |
#cloud-config | |
apt: | |
preserve_sources_list: true | |
sources: | |
microsoft: | |
keyserver: https://packages.microsoft.com/keys/microsoft.asc | |
keyid: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF |
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 | |
#Container is a new instance, so first thing we do is update the base software | |
apt update | |
apt upgrade -y | |
#Then we add the base tools we require along with the apache webserver | |
apt install mc -y | |
apt install gnupg -y | |
apt install apache2 -y |
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
create procedure [utils].[SqlTableToCSharp] | |
@tableName nvarchar(MAX) | |
as | |
begin | |
declare @classBody nvarchar(MAX) = ''; |
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.AspNetCore.Components | |
@using Microsoft.AspNetCore.Components.Web | |
@using MyProject.DataModels | |
@inject MyProject.Services.ClientGridData _gridDataService | |
@inject MyProject.Services.Clients _dropDownDataService | |
<div class="row d-flex align-items-center"> | |
<div class="col"> |
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
<script> | |
let errorElements = Array.from(document.getElementsByClassName("input-validation-error")); | |
errorElements.forEach(element => { | |
let inputElement = $(element); | |
let messageDiv = inputElement.next("div"); | |
if (messageDiv) { | |
messageDiv.text(inputElement.data("val-required")); |
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
******************************************************************************************************* | |
** PLEASE NOTE THAT THIS IS NOW SOMEWHAT OUT OF DATE, THE GENERAL APT-GET LINUX INSTALL INSTRUCTIONS ** | |
** FOR UBUNTU/DEBIAN NOW LARGLEY WORK ON RASBIAN ** | |
******************************************************************************************************* | |
First things first, make sure your Raspberry PI has the latest updates for Raspbian on by running | |
sudo apt-get -y update | |
sudo apt-get -y upgrade |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace IntranetV6.Client.Classes | |
{ | |
public static class StringExtensions | |
{ | |
public static int GetNextHighestMultiple(this int source, int multipicand) |