Skip to content

Instantly share code, notes, and snippets.

# cat proxy.conf
proxy server {
default_fallback = no
}
realm example.com {
pool = acct_pool.example.com
nostrip
}
Polling for detail file /var/log/freeradius/radacct/detail.example.com/detail-*:*
Detail listener /var/log/freeradius/radacct/detail.example.com/detail-*:* state unopened waiting 0.986246 sec
Received Accounting-Request Id 219 from 192.168.1.10:55683 to 192.168.1.10:1813 length 147
Acct-Session-Id = '57722C84726B00'
User-Name = 'user-paid'
Acct-Status-Type = Interim-Update
Service-Type = Framed-User
Framed-Protocol = PPP
Acct-Authentic = RADIUS
Acct-Session-Time = 180
@dzinevich
dzinevich / gist:f1867584393e5f0267ea
Last active January 23, 2016 21:38 — forked from adymo/gist:7b1e6db801ed6ae5c36f
Kubuntu 15.04 Linux on Dell XPS 13 2015 High DPI Setup

Xorg resolution [works]

  • not detected automatically from edid
  • check physical screen dimensions with xrandr
  • put those into /etc/X11/xorg.conf.d/90-monitor.conf
      Section "Monitor"
        Identifier ""
        DisplaySize 293 165 # xrandr reports 294, but 293 makes it 277x277dpi instead of 276x277
      EndSection
    
    
@dzinevich
dzinevich / capplug-error
Created January 2, 2013 11:35
capabilites-plugin. nexus-2.3-SNAPSHOT
vm 1 | 2013-01-02 13:24:07 ERROR [tp1743134160-42] - org.sonatype.nexus.rest.NexusApplication - Unhandled exception or error intercepted
jvm 1 | java.lang.AbstractMethodError: null
jvm 1 | at org.sonatype.nexus.rest.formfield.AbstractFormFieldResource.formFieldToDTO(AbstractFormFieldResource.java:40) ~[nexus-restlet1x-plugin-2.3.1-SNAPSHOT.jar:2.3.1-SNAPSHOT]
jvm 1 | at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilityTypesPlexusResource.get(CapabilityTypesPlexusResource.java:105) ~[na:na]
jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:269) ~[plexus-restlet-bridge-1.24.jar:na]
jvm 1 | at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:43) ~[nexus-restlet1x-plugin-2.3.1-SNAPSHOT.jar:2.3.1-SNAPSHOT]
jvm 1 | at org.restlet.resource.Resource.getRepresentation(Resource.java:302) ~[org.restlet-1.1.6-SONATYPE-5348-V8.jar:na]
jvm 1 | at org.restlet.resource.Resource.handle
@dzinevich
dzinevich / gist:919376
Created April 14, 2011 12:32
web01-cfg
define host{
use generic-host ; Name of host template to use
host_name dwefdqwwe
alias web01-1
address 10.224.50.80
}
# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.
@dzinevich
dzinevich / gist:896498
Created March 31, 2011 14:52
rakefile
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
Platform::Application.load_tasks
@dzinevich
dzinevich / gist:891988
Created March 29, 2011 08:20
db role problem
- !ruby/object:Rubber::Configuration::RoleItem
name: "[db"
options:
primary: true]
- !ruby/object:Rubber::Configuration::RoleItem
name: memcached
options: {}
@dzinevich
dzinevich / gist:887150
Created March 25, 2011 16:39
gem_helper hang
** [out :: solr-somehost.com] .
** [out :: solr-somehost.com] .
** [out :: solr-somehost.com] Using /usr/local/rvm/gems/ruby-1.9.2-p180
** [out :: solr-somehost.com] Using /usr/local/rvm/gems/ruby-1.9.2-p180
** [out :: solr-somehost.com] Regenerating environments...
** [out :: solr-somehost.com] Regenerating environment file for 'ruby-1.9.2-p180@global'
** [out :: solr-somehost.com] Regenerating environment file for 'ruby-1.9.2-p180'
** [out :: solr-somehost.com] Environments regenerated
** [out :: solr-somehost.com] Using /usr/local/rvm/gems/ruby-1.9.2-p180
command finished in 2183749ms
@dzinevich
dzinevich / gist:864219
Created March 10, 2011 15:06
rubber.yml
# REQUIRED: The name of your application
app_name: streaming
# REQUIRED: The system user to run your app servers as
app_user: app
# REQUIRED: Notification emails (e.g. monit) get sent to this address
#
admin_email: mail@gmail.com
@dzinevich
dzinevich / gist:843988
Created February 25, 2011 15:57
rubber:create
triggering load callbacks
* executing `rubber:init'
/home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/rubber-1.10.2/lib/rubber/environment.rb:50:in `known_roles': undefined method `keys' for nil:NilClass (NoMethodError)
from /home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/rubber-1.10.2/lib/rubber/recipes/rubber.rb:76:in `load_roles'
from /home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/rubber-1.10.2/lib/rubber/recipes/rubber.rb:60:in `block (2 levels) in load'
from /home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/capistrano-2.5.19/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/capistrano-2.5.19/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /home/dzinevich/.rvm/gems/ruby-1.9.2-p136@dp2_streaming/gems/capistrano-2.5.19/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'