Skip to content

Instantly share code, notes, and snippets.

@psy-q
psy-q / debug.log
Created May 28, 2014 12:49
Ladle 1.0.0 fails to start ApacheDS on non-interactive shell
2014-05-28 12:40:05 DEBUG BaseRecordManager:449 - BaseRecordManager.fetch() recid 131090 length 259
2014-05-28 12:40:05 DEBUG BaseRecordManager:391 - BaseRecordManager.update() recid 131110 length 82
2014-05-28 12:40:05 DEBUG AbstractBTreePartition:520 - Closed 1.3.6.1.4.1.18060.0.4.1.2.5 system index for dc=example,dc=org partition.
2014-05-28 12:40:05 DEBUG BaseRecordManager:449 - BaseRecordManager.fetch() recid 131090 length 254
2014-05-28 12:40:05 DEBUG BaseRecordManager:391 - BaseRecordManager.update() recid 131110 length 82
2014-05-28 12:40:05 DEBUG AbstractBTreePartition:532 - ERR_125 Closed master table for dc=example,dc=org partition.
2014-05-28 12:40:05 DEBUG JdbmPartition:492 - Closed record manager for dc=example,dc=org partition.
2014-05-28 12:40:05 DEBUG DefaultDnFactory:123 - Dn 2.5.4.11=schema found in the cache
2014-05-28 12:40:05 DEBUG DefaultSchemaObjectRegistry:181 - Found attributetype ( 1.3.6.1.4.1.1466.101.120.5 NAME 'namingContexts'
DESC 'RFC2252: naming contexts'
@psy-q
psy-q / site.yml
Last active August 29, 2015 14:02
ansible-playbook traceback
---
- include: authentication.yml
- include: webservers.yml
- include: wordpress_servers.yml
- include: owncloud_servers.yml
- include: mariadb_servers.yml
- include: ci_masters.yml
- include: ci_slaves.yml
- include: rails_servers.yml
- include: madek_servers.yml
@psy-q
psy-q / keybase.md
Created October 2, 2014 13:56
keybase.md

Keybase proof

I hereby claim:

  • I am psy-q on github.
  • I am psyq (https://keybase.io/psyq) on keybase.
  • I have a public key whose fingerprint is 2DB7 5FE3 3D56 858F 68B0 A237 2DE8 1C17 4CE1 2F06

To claim this, I am signing this object:

@psy-q
psy-q / mysql.yml
Created April 17, 2015 08:56
MySQL installation on Ansible
---
- name: Install MySQL and associated dev files
apt: pkg={{ item }} state=present
with_items:
- python-mysqldb
- libmysqlclient-dev
- mysql-server
- mysql-client
- name: Create MySQL root password
mysql_user: name=root priv=*.*:ALL,GRANT password={{ mysql_root_password }} login_user=root login_password={{ mysql_root_password }} check_implicit_admin=True
@psy-q
psy-q / visual_studio_code.txt
Created April 30, 2015 06:09
Visual Studio Code silently tries to connect via SSH to my machines?
[3974:0430/080134:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[3974:0430/080134:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:0430/080134:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:0430/080135:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:0430/080135:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:0430/080135:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:0430/080219:ERROR:channel.cc(305)] RawChannel read error (connection broken)
[3974:0430/080219:ERROR:bus.cc(431)] Failed to connect to the bus: '=' character not found or has no value following it
[3974:04
@psy-q
psy-q / ansible_log.txt
Created May 11, 2015 10:53
Unexpected result of ternary evaluation
TASK: [leihs_instance | debug msg="{{ ansible_user_id }}"] ********************
ok: [192.168.122.235] => {
"msg": "root"
}
TASK: [leihs_instance | debug msg="{{ansible_user_id == 'root' | ternary(True,False)}}"] ***
ok: [192.168.122.235] => {
"msg": "False"
}
{# "if ... and" means to test if it's true, not just if it's defined #}
production:
adapter: mysql2
encoding: utf8
database: {{ mysql_database }}
username: {{ mysql_user }}
password: {{ mysql_password }}
{% if local_database is defined and local_database -%}
host: localhost
{% else -%}
@psy-q
psy-q / conf.d.rca_15-lda.conf
Last active August 29, 2015 14:23
Dovecot LDA logs to /var/log/syslog instead of the mail facility
protocol lda {
mail_plugins = $mail_plugins sieve
log_path =
info_log_path =
# You can also override the default syslog_facility:
syslog_facility = mail
}
@psy-q
psy-q / the_story_unfolds.txt
Created June 27, 2015 10:13
Bug in Iceweasel when changing passwords on GitHub?
This requires that you have a GitHub account.
Try the following:
1. Start Iceweasel (I've tried 38.0.1 on Debian testing) in safe mode:
MOZILLA_DISABLE_PLUGINS=1 iceweasel -safe-mode
2. Navigate to https://github.com and log in.
3. Navigate to https://github.com/settings/admin
@psy-q
psy-q / random_picker_2000.rb
Created July 1, 2015 18:58
random_picker_2000
require 'rubygems'
require 'json'
require 'pry'
require 'open-uri'
url = ARGV[0]
if !url or url == ""
puts "Give an URL to the comments in the form https://www.reddit.com/r/patientgamers/comments/3bqoq8 as first argument."
exit 1