Skip to content

Instantly share code, notes, and snippets.

const passport = require('passport');
const PassportEveOnline = require('passport-eveonline');
const express = require('express');
const fs = require('promisify-fs');
let file = require('./config.json');
let router = express();
router.use(passport.initialize());
router.use(passport.session());
@trichner
trichner / ramdisk.sh
Created May 30, 2017 19:44 — forked from rxin/ramdisk.sh
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@trichner
trichner / sha1.gs
Created October 4, 2016 17:58
Google Script SHA-1
/*
A JavaScript implementation of the SHA family of hashes, as
defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding
HMAC implementation as defined in FIPS PUB 198a
Copyright Brian Turek 2008-2016
Distributed under the BSD License
See http://caligatio.github.com/jsSHA/ for more information
Several functions taken from Paul Johnston
*/
function import(){
@trichner
trichner / main.c
Created September 4, 2016 23:19
RPN (Reverse Polnish Notation) Calculator
/*
* Simple reverse polnish notation calculator.
*
* Copyright (c) 2016 Thomas Richner
* MIT License, https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>