Skip to content

Instantly share code, notes, and snippets.

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 / ssh.sh
Created September 26, 2011 21:45
Convert a AWS PEM into a ssh pub key
ssh-keygen -y -f private_key1.pem > public_key1.pub

Mac from scratch

Install Software

Install from App Store

Install from Third-Party Websites

@zircote
zircote / reports.txt
Created May 10, 2011 18:39
phpcs report types
phpcs --standard=tests/build/phpcs.xml --report=summary .
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
/usr/local/zend/apache2/htdocs/project/application/Bootstrap.php 1 4
...2/htdocs/Project/application/controllers/ActivityController.php 3 1
...
@zircote
zircote / monitor.py
Last active March 6, 2022 22:05
AWS/Celery Monitor
from boto.ec2.cloudwatch import CloudWatchConnection
from datetime import datetime
from main.settings import AWS_CREDENTIALS, CLOUDWATCH_NAMESPACE
def monitor(app):
cloudwatch = CloudWatchConnection(**AWS_CREDENTIALS)
state = app.events.State()
def get_task(event):
@zircote
zircote / README.md
Created May 22, 2020 17:45 — forked from Ceralor/README.md
Simple Thermometer

thermostat

Simple elegant thermometer card for Home Assistant. Tweak as-needed!

@zircote
zircote / munin-plugin-redis_
Last active May 21, 2020 02:51
Munin Plugin for redis requiring only `redis-cli`
#!/usr/bin/env bash
#
# Copyright 2013 Robert Allen
#
# 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
@zircote
zircote / AWS.js
Last active January 31, 2020 03:00
Google Script for Excel and AWS instance pricing + Reserved Instances
/**=
* User: zircote
* Date: 16/10/2013
* Time: 08:59
*/
var SERVICE_HOST = 'http://aws.amazon.com'
var data_sources = {
"linux-od": {
@zircote
zircote / init_ansible_role.sh
Last active January 8, 2020 04:54
bash function to create a boilerplate ansible role (I am lazy)
#!/bin/sh
function init_ansible_role {
if [[ ! -n $1 ]]; then
echo no init
return
fi
mkdir -p roles/${1}/{defaults,tasks,files,templates,vars,handlers,meta}
for i in defaults tasks vars handlers meta; do
if [[ ! -f roles/${1}/${i}/main.yaml ]]; then
echo creating file: roles/${1}/${i}/main.yaml
@zircote
zircote / index.php
Created April 28, 2012 11:51
Bootstrapping Zend Framework 1.x with composer namespaces
<?php
/**
* Bootstrap the App in an annonymous function preserving global namespace.
*/
call_user_func(function(){
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH',
realpath(dirname(__FILE__) . '/../application'));