Skip to content

Instantly share code, notes, and snippets.

Robert Allen zircote

Block or report user

Report or block zircote

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 USER.cfg.start-citizen-3.1.0.cfg
r_DisplayInfo = 3
; —————————————————————————————————————————————
; Custom USER.cfg – This is a command in needed to Unlock the Console to accept Commands
Con_Restricted = 0
; This Setting reduces some of the aggressive Bloom Effects that 2.5 has, recommended set to 0 for less blinding lights.
r_OpticsBloom = 0
; This Setting basically sets the basis for your config (1-4) 1 is Low but best performance & 4 is Very High Graphics but most intensive. It sets loads of settings & it’s important it’s at the top of the .cfg so that anything below it overwrites parts of it, 3 gives great quality and performance.
sys_spec = 1
; Remove Maxfps to have a less stable max framerate (but it will be at it’s highest), I suggest setting at an achievable level, slower PCs go for 30, Fast PCs set at your monitors Refresh rate. If unsure delete the line it.
sys_maxfps = 60
@zircote
zircote / task.aurora.py
Created Feb 21, 2018
A proposed implementation of DiscoveryInfo in an Apache Aurora Job.
View task.aurora.py
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@zircote
zircote / telegraf.d-vault-statsd.conf
Created May 24, 2017
A InfluxDB/StatsD configuration for Hashicorp Vault
View telegraf.d-vault-statsd.conf
# Statsd Server
[[inputs.statsd]]
## Address and port to host UDP listener on
service_address = "127.0.0.1:8126"
## The following configuration options control when telegraf clears it's cache
## of previous values. If set to false, then telegraf will only clear it's
## cache when the daemon is restarted.
## Reset gauges every interval (default=true)
delete_gauges = true
@zircote
zircote / aurora.py
Last active Jul 4, 2017
WIP DataDog check for Apache Aurora
View aurora.py
"""
Aurora Scheduler check
Collects metrics from aurora scheduler.
"""
import requests
from checks import AgentCheck, CheckException
class AuroraCheck(AgentCheck):
@zircote
zircote / notes.md
Created Apr 14, 2015
OSX mesos notes
View notes.md
brew install gcc48
../configure CXX=g++-4.8 CC=gcc-4.8 PYTHON=/usr/local/bin/python
@zircote
zircote / AuroraStuff.md
Last active Aug 22, 2016
My early gotchas with Apache Aurora
View AuroraStuff.md

The mustache gotcha

When using “bound” objects in an .aurora file it is an absolute that you do not have spaces in the “mustaches”.

Examples:

  • Bad: {{ profile.my_var }}
  • Good: {{profile.my_var}}

Docker Container Snafus

When running a docker container, you must ensure that all of the dependent library for the thermos_executor.pex are present in the docker container itself. The thermos_executor runs in the container not the mesos slaves environment.

@zircote
zircote / run_dynamodb_local.sh
Created Feb 8, 2015
A quick run script to get a AWS DynamoDB Local instance going
View run_dynamodb_local.sh
#!/bin/sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
RUN_DIR=${DIR}/.dynamodb
DYNAMODB_LOCAL="http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz"
PORT=8000
ARGS="-inMemory -port ${PORT}"
install_dynamo_db(){
mkdir -p $1
curl -L $2 | tar xvz -C $1
View osx-10.9-setup.md

Mac from scratch

Install Software

Install from App Store

Install from Third-Party Websites

@zircote
zircote / docker-regsitry-migrate.py
Created Sep 8, 2014
Quick hack to setup the database for docker-registry thats not a sqlite bla blah
View docker-regsitry-migrate.py
import sqlalchemy
import sqlalchemy.exc
import sqlalchemy.ext.declarative
import sqlalchemy.orm
import sqlalchemy.sql.functions
from sqlalchemy import create_engine
engine = create_engine('postgresql://user:pass@my.host.post/db_name')
Base = sqlalchemy.ext.declarative.declarative_base(bind=engine)
You can’t perform that action at this time.