Skip to content

Instantly share code, notes, and snippets.

View robertz's full-sized avatar

Robert Zehnder robertz

View GitHub Profile
param([string] $userName = "coh",
[string] $userPassword = "coh")
$ErrorActionPreference = "STOP"
function Get-Adler32 {
param(
[string] $data
)
@robertz
robertz / create.php
Created April 30, 2019 12:28
Sets up a user game account on a score server
<html lang="en">
<head>
<meta charset="utf-8">
<title>score</title>
<meta name="description" content="Score Server">
<meta name="author" content="score">
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="//code.jquery.com/jquery-3.4.0.min.js"></script>
@robertz
robertz / create.php
Created April 29, 2019 21:06
Easily create user account
<html lang="en">
<head>
<meta charset="utf-8">
<title>Create Account</title>
<meta name="description" content="Create Account">
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="//code.jquery.com/jquery-3.4.0.min.js"></script>
</head>
#!/bin/bash
script='csvinator.sh'
# There date param and country should always be passed in
if [ $# -lt 2 ];
then
echo Usage ${script} rundate country
exit 1;
fi
import { mapState } from 'vuex'
import mobData from '../5e-SRD-Monsters.json'
import gameData from '../gameData.json'
export default {
name: 'combat',
data () {
return {
mobs: mobData.filter((mob) => { return ('name' in mob) }),
alive: true,
export default {
data () {
return {
offset: 0,
tz: 'America/New_York',
}
},
computed: {
payees () { // may be referenced as this.payees
return this.$store.state.payees;
@robertz
robertz / .eslintrc.json
Created March 29, 2018 17:01 — forked from leny/.eslintrc.json
ESLint config file for node.js + ES6 projects.
{
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParameters": true,
@robertz
robertz / nginx.vh.default.conf
Last active April 10, 2018 23:33
Production nginx config
upstream backend {
server fullstack-node:3000;
}
server {
listen 80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
@robertz
robertz / nginx.vh.default.conf
Last active April 10, 2018 23:33
Development nginx configuration
upstream backend {
server dev-node:3000;
}
upstream webpack {
server dev-webpack:8080;
}
server {
listen 80;
version: '2'
services:
fullstack-nginx:
build:
context: ./.docker/prod/nginx
container_name: fullstack-nginx
links:
- fullstack-node
ports:
- "80:80"