Skip to content

Instantly share code, notes, and snippets.

bluebaroncanada

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: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: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))
{
fs.CopyTo(ms);
}
View gist:f6d433cef23b72c8fa6601da7a3c7811
>> ssh -v ouruser@vs-ssh.visualstudio.com
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 vs-ssh.visualstudio.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to vs-ssh.visualstudio.com [65.52.8.37] 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: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/CN=admin.plexuselearning.com"
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:619ea2f84a757f6940e1cceebf995366
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
@script = <<SCRIPT
# Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250
if ! grep -q "ubuntu-xenial" /etc/hosts; then
echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts
fi
View gist:62daf16c7379a85c2bba9fb96d93c799
<?php
namespace Plexus\SSO\Resource;
use GuzzleHttp\Client;
use Plexus\SSO\Resource\Sign\ISign;
class SSOSession
{
private $baseServerUri;
View gist:a12f78ed5516666cb336ccc04f2f3f98
// ==UserScript==
// @name Check Course Availability
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://student.uwo.ca/psp/heprdweb/EMPLOYEE/HRMS/c/UWO_WISG.WSA_STDNT_CENTER.GBL
// @grant none
// ==/UserScript==
You can’t perform that action at this time.