Skip to content

Instantly share code, notes, and snippets.

Christian Aust datenimperator

Block or report user

Report or block datenimperator

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
@datenimperator
datenimperator / mail_report.rb
Last active Dec 29, 2018
Ruby Postfix log file report
View mail_report.rb
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'pp'
require 'time'
PROCESS = /^(?<process>[a-z]+)\/?(?<sub>[a-z]+)?\[?(?<pid>\d+)?\]?/
class Histo < Hash
def default(val)
View settings.json
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Agila Theme/Agila Monokai Extended.tmTheme",
"default_encoding": "UTF-8",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".git"
],
"font_face": "Office Code Pro",
@datenimperator
datenimperator / passenger
Created Dec 21, 2017
Passenger init script
View passenger
#!/bin/bash
### BEGIN INIT INFO
# Provides: passenger in standalone
# Required-Start: $network $syslog
# Should-Start: $mysql
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop rails web site
@datenimperator
datenimperator / cubesql.service
Created Aug 3, 2017
cubesql systemd service
View cubesql.service
[Unit]
Description=A fast and reliable SQL database engine based on sqlite.
After=network.target
[Service]
Type=simple
WorkingDirectory=/data/cubesql
ExecStart=/opt/cubesql/cubesql -x /data/cubesql -s /data/cubesql/cubesql.settings
Restart=on-failure
User=cubesql
@datenimperator
datenimperator / README.md
Last active Sep 7, 2016
Temporary fix for Gitlab sockets not working inside a LXC container on Proxmox 4.1
View README.md

This is a temporary fix for a problem running Gitlab on Proxmox 4.1 inside a LXC container. Symptom: UNIX sockets created inside containers get wrong permissions. This seems to be related to AppArmor and the Debian kernel used by Proxmox. See this thread on the Proxmox forum for details.

Run apt-get install inotify-tools if you haven't installed inotifywait yet.

Place the first file in /usr/local/sbin/fix_gitlab.sh and make it executable: chmod 755 /usr/local/sbin/fix_gitlab.sh. Edit etc/rc.local to include it during boot.

View debug.txt
root@v6:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 355 MB of archives.
After this operation, 78.8 kB of additional disk space will be used.
Do you want to continue [Y/n]?
View error.log
Process: com.apple.WebKit.WebContent [4427]
Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
Identifier: com.apple.WebKit.WebContent
Version: 10600 (10600.5.17)
Build Info: WebKit2-7600005017000000~3
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Safari [2458]
User ID: 1025
View authors.txt
user1 = Full Name <fullname@email.com>
user1_alias = Full Name <fullname@email.com>
user2 = Another Name <anothername@email.com>
@datenimperator
datenimperator / error.log
Created Aug 30, 2014
sidekiq/paperclip/delayed_paperclip error
View error.log
2014-08-30T13:50:22.477Z 36512 TID-ouv9kmve4 DelayedPaperclip::Jobs::Sidekiq JID-d5633dd7375cb03f87bf47dd INFO: fail: 0.481 sec
2014-08-30T13:50:22.478Z 36512 TID-ouv9kmve4 WARN: {"retry"=>true, "queue"=>"paperclip", "backtrace"=>true, "class"=>"DelayedPaperclip::Jobs::Sidekiq", "args"=>["ProductImage", 2644, "image"], "jid"=>"d5633dd7375cb03f87bf47dd", "enqueued_at"=>1409403315.5664058, "error_message"=>"Argument list too long - identify -format '%wx%h,%[exif:orientation]' '/var/folders/f3/j05ygbhx6cx4ykwbdv6m5nbh000101/T/2e309f3244e197b93dc741957dc7fa1520140830-36512-108qunp.jpg[0]' 2>/dev/null", "error_class"=>"Errno::E2BIG", "failed_at"=>1409403664.329591, "retry_count"=>2, "error_backtrace"=>["/Users/christian/.rvm/gems/ruby-2.1.2@dmh/gems/cocaine-0.5.4/lib/cocaine/command_line/runners/process_runner.rb:34:in `spawn'", "/Users/christian/.rvm/gems/ruby-2.1.2@dmh/gems/cocaine-0.5.4/lib/cocaine/command_line/runners/process_runner.rb:34:in `spawn'", "/Users/christian/.rvm/gems/ruby-2.1.2@dmh/gems/cocaine-0.5
View ping.sh
$ ping -c 20 88.198.100.84
PING 88.198.100.84 (88.198.100.84): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
You can’t perform that action at this time.