Skip to content

Instantly share code, notes, and snippets.

@martbhell
martbhell / paw.view.user.js
Last active April 15, 2016 04:02
paw.view.user.js
// ==UserScript==
// @name paw - more stats into View page in politicsandwar
// @namespace pawns1
// @include http*://politicsandwar.com/nation/id=*
// @include http*://politicsandwar.com/nation/
// @grant none
// @version 1.04
// @author martbhell
// @description Add how much % of total score is military and display all cities from the start.
// ==/UserScript==
@martbhell
martbhell / dcache_logback_syslog
Created April 28, 2015 12:01
dCache + logback syslog
Add two entries into /etc/dcache/dcache.conf:
my.log.format.syslog=dcache: \\(%X{cells.cell}\\) [%X{org.dcache.ndc}] %m%n
my.log.host.syslog=syslog.server.ip.address
my.log.level.syslog=error
/etc/dcache/logback.xml:
Add an appender
@martbhell
martbhell / dropbox.service
Created November 10, 2015 17:25
dropbox systemd with dropbox.py script for debian 8 jessie
[Unit]
Description=Dropbox Service
After=network.target
[Service]
ExecStart=/bin/sh -c '/usr/local/bin/dropbox.py start'
ExecStop=/bin/sh -c '/usr/local/bin/dropbox.py stop'
PIDFile=/home/USER/.dropbox/dropbox.pid
User=USER
Group=USER

Keybase proof

I hereby claim:

  • I am martbhell on github.
  • I am martbhell (https://keybase.io/martbhell) on keybase.
  • I have a public key ASD62iGf4Eki1c8BaDdwBuQgdjxRaus0i2Bs7kTXMRT5xAo

To claim this, I am signing this object:

@martbhell
martbhell / facts.py.patch
Created December 29, 2015 06:02
facts.py and docker and travis-ci fix attempt
--- lib/ansible/module_utils/facts.py.org 2015-12-29 07:50:57.178262553 +0200
+++ lib/ansible/module_utils/facts.py 2015-12-29 07:58:39.263313953 +0200
@@ -558,6 +558,8 @@
if proc_1 in ['init', '/sbin/init', 'bash']:
# many systems return init, so this cannot be trusted, bash is from docker
proc_1 = None
+ self.facts['service_mgr'] = 'systemd'
+
# if not init/None it should be an identifiable or custom init, so we are done!
--- grub.cfg.org 2016-02-09 09:00:06.535863226 +0200
+++ grub.cfg 2016-02-09 09:08:11.716782060 +0200
@@ -57,7 +57,9 @@
fi
}
-terminal_output console
+serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
+terminal_input console serial
@martbhell
martbhell / fgci-inventory.py
Created July 5, 2016 19:19
An inventory script that can show groups of groups
#!/usr/bin/python
import argparse
# for parsing the existing inventory
from ansible.inventory import Inventory
from ansible.parsing.dataloader import DataLoader
from ansible.vars import VariableManager
###args
parser = argparse.ArgumentParser(description='Different inventory script')
---
- name: play
hosts: localhost
connection: local
vars:
user_list:
- user1
- root
@martbhell
martbhell / test.txt
Created April 11, 2018 05:03
test123
This is just a test
@martbhell
martbhell / easybuild_test_report_easyconfigs_pr6140_20181411-UTC-05-14-14.md
Created April 11, 2018 05:18
EasyBuild test report for easyconfigs PR #6140

Test report for easybuilders/easybuild-easyconfigs#6140

Test result

Build succeeded for 1 out of 1 (1 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS GPAW-1.3.0-foss-2017b-Python-3.6.3.eb

Time info

  • start: Wed, 11 Apr 2018 05:13:18 +0000 (UTC)