Skip to content

Instantly share code, notes, and snippets.

View main.dart
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
celesteking / pm2-myuser.service
Last active Apr 29, 2020
PM2 systemd unit file - under SCL
View pm2-myuser.service
# put this into /etc/systemd/system/pm2-myuser.service , then `systemctl daemon-reload`
# `myuser` should be replaced with your username and `ExecXXX` params adjusted to relevant paths.
# This systemd unit file will spawn nodejs PM2 process manager.
# It's an adapted version of `pm2 startup` and contains proper things to use with latest systemd.
# This one uses nodejs from SCL (centos/redhat software collections) and allows you to get rid of error:
# systemd[1]: New main PID XXX does not belong to service, and PID file is not owned by root. Refusing.
# If you don't use SCL, just adjust `ExecXXX` params accordingly.
celesteking /
Last active Feb 21, 2020
Can't SSH out of gitlab/docker instance to remote host? "can't open /dev/tty: No such device or address"

Look no further! It's not a problem with you, it's a problem with SSH client. The issue is that your private key file is missing the trailing newline and ssh just can't understand that file thinking that it's been encrypted with a passprhase -- what a dork!

your debug output would be like this:

debug1: read_passphrase: can't open /dev/tty: No such device or address
debug2: no passphrase given, try next key
celesteking /
Last active May 12, 2020
spamassassin: what you need to know.

Fucking SA can't get their shitty doc right. Here's the proper doc.


score SYMBOLIC_TEST_NAME n.nn [ n.nn n.nn n.nn ]

Here's what these scores actually mean:

View gist:edb30d464c7b231ed801
hw-time system-time freq-offset-ppm tick
1429697045 1429697047.050365
1429697055 1429697057.051019 65 1
1429697065 1429697067.051488 56 1
1429697075 1429697077.051977 54 1
1429697085 1429697087.052447 52 1
1429697095 1429697097.052935 51 1
1429697105 1429697107.053420 51 1
1429697115 1429697117.053929 51 1
1429697125 1429697127.054369 50 1
View gist:5a431a777d2657281443
$ mco rpc --no-progress --quiet mcb clear_expired -I /stage/ -v
warn 2014/11/17 15:15:44: base.rb:104:in `validate_requirements' DDL requirements validation being skipped in development
warn 2014/11/17 15:15:45: base.rb:104:in `validate_requirements' DDL requirements validation being skipped in development
Discovering hosts using the mc method for 2 second(s) .... 5
View hiera.bck.rb
case override
when Array, String
hierarchy.insert(0, override)
when Hash
hierarchy.insert(override['position'].to_i, override['datasource'])
View gist:5339733
class bacula::config::common {
# run after all packages have been installed
Package <| tag == 'bacula' |>
anchor { 'bacula::config::common::begin': }
View gist:4637480
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3c3ac3d in malloc_consolidate () from /lib64/
(gdb) bt
#0 0x00007ffff3c3ac3d in malloc_consolidate () from /lib64/
#1 0x00007ffff3c3ce69 in _int_malloc () from /lib64/
#2 0x00007ffff3c3f2f9 in malloc () from /lib64/
#3 0x00007ffff5679056 in QByteArray::QByteArray(char const*, int) () from /usr/lib64/qt4/
#4 0x00007ffff567ad92 in QByteArray::mid(int, int) const () from /usr/lib64/qt4/
#5 0x00007ffff7ae0f52 in bt::Torrent::load(QByteArray const&, bool) () from /usr/lib64/
#6 0x00007ffff7ae15ea in bt::Torrent::load(QString const&, bool) () from /usr/lib64/