Skip to content

Instantly share code, notes, and snippets.

View tedivm's full-sized avatar

Robert Hafner tedivm

View GitHub Profile
report_safe 0
lock_method flock
use_bayes 1
bayes_auto_learn 1
bayes_auto_expire 0
score ALL_TRUSTED -10.000
#skip_rbl_checks 1
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@tedivm
tedivm / gist:3a2a97c9f62f53f899de
Last active August 29, 2015 14:19 — forked from jedda/gist:4103604
OSX Yosemite Server RADIUS
# Configuring basic RADIUS on OS X 10.8 Server
# Jedda Wignall
# http://jedda.me
#
# Updated to 10.10 by Robert Hafner
# http://blog.tedivm.com
# Full writeup at: http://jedda.me/2012/11/configuring-basic-radius-os-108-server/
# create the SACL for access to RADIUS
@tedivm
tedivm / Caching Differences.md
Last active December 18, 2015 00:29
Caching Proposal Differences
@tedivm
tedivm / debug_output.txt
Last active March 31, 2017 04:36
Vagrant Issue #8429
Roberts-MacBook-Pro-2:puppet-ros rhafner$ vagrant up --debug
INFO global: Vagrant version: 1.9.3
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_PROJECT_FILENAME=".project"
INFO global: VAGRANT_OLD_ENV_HOME="/Users/rhafner"
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_WORKON_CD="1"
INFO global: VAGRANT_OLD_ENV__="/usr/local/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_SCRIPT="/usr/local/bin/virtualenvwrapper.sh"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
@tedivm
tedivm / Gruntfile.js
Created April 15, 2017 22:26
Gruntfile.js
module.exports = function (grunt) {
require('time-grunt')(grunt);
// Pull defaults (including username and password) from .screeps.json
var config = require('./.screeps.json')
if(!config.branch) {
config.branch = 'sim'
}
if(!config.ptr) {
@tedivm
tedivm / RoomVisual.js
Last active November 7, 2017 18:55 — forked from AlinaNova21/RoomVisual.js
RoomVisual structure rendering
const colors = {
gray: '#555555',
light: '#AAAAAA',
road: '#666', // >:D
energy: '#FFE87B',
power: '#F53547',
dark: '#181818',
outline: '#8FBB93',
speechText: '#000000',
speechBackground: '#2ccf3b'
#!/usr/bin/env bash
# Check if a value exists in an array
# @param $1 mixed Needle
# @param $2 array Haystack
# @return Success (0) if value exists, Failure (1) otherwise
# Usage: in_array "$needle" "${haystack[@]}"
# See: http://fvue.nl/wiki/Bash:_Check_if_array_element_exists
in_array() {
local hay needle=$1
INFO global: Vagrant version: 2.0.2
INFO global: Ruby version: 2.4.3
INFO global: RubyGems version: 2.6.14
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: resolv replacement has been enabled!
INFO global: Plugins:
@tedivm
tedivm / .screeps.yaml
Last active April 13, 2018 23:09
Screeps Standard Config File
connections:
main:
host: screeps.com
secure: true
token: '35a345b9-bc6b-4855-8566-66b341913f9b'
ptr:
host: screeps.com
secure: true
token: '35a345b9-bc6b-4855-8566-66b341913f9b'
ptr: true