Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block bluebaroncanada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a12f78ed5516666cb336ccc04f2f3f98
// ==UserScript==
// @name Check Course Availability
// @namespace
// @version 0.1
// @description try to take over the world!
// @author You
// @match
// @grant none
// ==/UserScript==
View gist:62daf16c7379a85c2bba9fb96d93c799
namespace Plexus\SSO\Resource;
use GuzzleHttp\Client;
use Plexus\SSO\Resource\Sign\ISign;
class SSOSession
private $baseServerUri;
View gist:619ea2f84a757f6940e1cceebf995366
# -*- mode: ruby -*-
# vi: set ft=ruby :
@script = <<SCRIPT
# Fix for
if ! grep -q "ubuntu-xenial" /etc/hosts; then
echo " ubuntu-xenial" >> /etc/hosts
View gist:d7e22ba746c966a83cd05f04c1a8b144
openssl genrsa -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt -subj "/C=CA/ST=Ontario/L=London/O=Plexus International/CN=Plexus International Admin Certificate Authority"
# Create server key and cert
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr -subj "/C=CA/ST=Ontario/L=London/O=Plexus International/"
openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt
openssl genrsa -out admin-interface-client.key 2048
openssl req -new -key admin-interface-client.key -out admin-interface-client.csr -subj "/C=CA/ST=Ontario/L=London/O=Plexus International/CN=Legacy User Management Client"
View gist:f6d433cef23b72c8fa6601da7a3c7811
>> ssh -v
OpenSSH_7.7p1, OpenSSL 1.0.2o 27 Mar 2018
debug1: Reading configuration data /c/Users/james/.ssh/config
debug1: /c/Users/james/.ssh/config line 28: Applying options for
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/james/.ssh/git.privatekey type -1
debug1: key_load_public: No such file or directory
View gist:cb5ac24e9063118619bac4a50bea1c2e
public void FillWarrantyCertificate(string blankWarrantyCertificatePath, string pdfDestinationPath, Application application)
PdfReader pdfReader = new PdfReader(blankWarrantyCertificatePath);
using (var ms = new MemoryStream())
using (var fs = new FileStream(blankWarrantyCertificatePath, FileMode.Open, FileAccess.Read))
View gist:35691be567fcc41d61300f21094233b8
using Config.Net;
using Config.Net.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using System.Text.RegularExpressions;
namespace Settings
View gist:fcd8527395140292fe1ca1740c786e1f
struct union_find {
std::any value;
unsigned int rank;
struct union_find p;
} union_find;
View gist:fc51570fcfdabc258683acacd609e911
return db.Application.Where(x => x.ApplicationId == applicationId).Where(
//inactive warranty types
z => z.Warranty.WarrantyStatusId != 2 &&
z.WarrantyStatusId != 3 &&
z.WarrantyStatusId != 8 &&
z.WarrantyStatusId != 10)
.Include(x => x.Lienholder)
.Include(x => x.Warranty.Select(y => y.Coverage.CoverageGroup))
.Include(x => x.Vehicle)
.Include(x => x.Vendor)
View gist:c4b613baff85c5d5da2ecb5349d49546
updateRebates(vendorId: number) {
this.dealerService.VendorRetrieveDealsRebates(vendorId).subscribe(rebates => {
let currentCoverageGroup = "";
this.groupedDealsRebates = [];
for (let rebateA of rebates) {
if (rebateA.coverageGroup === currentCoverageGroup) {
You can’t perform that action at this time.