Skip to content

Instantly share code, notes, and snippets.

View Compy's full-sized avatar

Jimmy Lipham Compy

View GitHub Profile
@Compy
Compy / install.js
Created August 24, 2019 21:34
Gravity Package.json
const fs = require('fs');
const path = require('path');
function copyFileSync( source, target ) {
var targetFile = target;
if ( fs.existsSync( target ) ) {
if ( fs.lstatSync( target ).isDirectory() ) {
targetFile = path.join( target, path.basename( source ) );
} else {
return 0;
@Compy
Compy / ELAAuthController.php
Created July 13, 2019 16:28
Elastos DID Auth for Laravel
<?php
namespace App\Http\Controllers;
use App\DIDAuthRequest;
use App\User;
use DateTime;
use Illuminate\Http\Request;
use Elliptic\EC;
use Illuminate\Support\Facades\Auth;
@Compy
Compy / randompicker.py
Created July 7, 2019 17:36
Python Random Winner Picker
"""
Random picker that uses system provided hardware random number generation
"""
from random import SystemRandom
import time
import csv
import subprocess as sp
rng = SystemRandom()
info font="CarnivalMF" size=128 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=2,2,2,2 spacing=2,2
common lineHeight=152 base=129 scaleW=1024 scaleH=512 pages=1 packed=0
page id=0 file="Carnival128.png"
chars count=42
char id=47 x=2 y=2 width=83 height=126 xoffset=5 yoffset=21 xadvance=78 page=0 chnl=0 letter="/"
char id=56 x=87 y=2 width=76 height=107 xoffset=4 yoffset=27 xadvance=73 page=0 chnl=0 letter="8"
char id=63 x=165 y=2 width=56 height=107 xoffset=3 yoffset=25 xadvance=50 page=0 chnl=0 letter="?"
char id=71 x=223 y=2 width=92 height=107 xoffset=6 yoffset=27 xadvance=85 page=0 chnl=0 letter="G"
char id=33 x=317 y=2 width=38 height=106 xoffset=3 yoffset=25 xadvance=34 page=0 chnl=0 letter="!"
char id=81 x=357 y=2 width=90 height=106 xoffset=5 yoffset=28 xadvance=88 page=0 chnl=0 letter="Q"
@Compy
Compy / gist:2972374
Created June 22, 2012 12:09
Pinproc NSIS Script
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "libpinproc"
!define PRODUCT_VERSION "1.1"
!define PRODUCT_PUBLISHER "Gerry Stellenberg"
!define PRODUCT_WEB_SITE "http://www.pinballcontrollers.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\DPInst.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"