Skip to content

Instantly share code, notes, and snippets.

View darxtrix's full-sized avatar

Ankush Sharma darxtrix

View GitHub Profile

Syslog-ng release automation elements

Controlling complexity is the essence of computer programming. (Brian Kernigan)

Let me remind you, I have been working with Syslog-Ng on their release automation project as part of GSoC'16. You can get more information about the project by lurking over here I will try to summarize my experiences during GSoC'16 and the deliverables.

Breaking down the project

syslog-ng is hosted at Github and does releases using the Github Releases. The underlying algorithm I used for the release automation follows:

OBS API

We need the following functionality:

  • co/init package
  • add files
  • remove files
  • commit
  • get build results
  • get repo urls
@darxtrix
darxtrix / changelog.md
Created June 18, 2016 21:01
Changelog

bugfix

  • Deprecate old configuration parameters in MongoDB destination Link Tamas Nagy
  • The output of pdbtool is scrambled Link László Várady
  • @ in format json is absorbed Link László Várady
  • jni.h: No such file or directory Link László Várady
  • IPv6 Pattern Parser and trailing colons Link László Várady
  • 3.8 journal source problem Link Tibor Benke
  • Duplicate symbols (_TLSSslOptions and _last_parser) break build of syslog-ng 3.7.2 on OS X Link Tamas Nagy

Change Log

v1.0.0 (2016-03-06)

Full Changelog

Implemented enhancements:

  • suggestion: select default theme to run #5

Fixed bugs:

client.lists().listId("list_1.domain1.org").filter(“count”,"25”).filter(“pages”,"1")
@darxtrix
darxtrix / call_chaining.js
Last active August 29, 2015 14:17
Call chaining
// chaining methods
client.lists().auth().listId("list_1.localhost.org").members()
.get(callback);
// chaining filters
client.lists().auth().listId("list_1.localhost.org").members()
.filter("count",25).filter("page",1).get(callback) ;
@darxtrix
darxtrix / call_usage.js
Created March 22, 2015 10:35
Call Usage
// callback usage
client.lists().auth().get(function(err,data) {
if ( err ) {
// handle the error
}
else {
console.log(data)
}
});
@darxtrix
darxtrix / hook_post.py
Created March 22, 2015 06:05
Hook post
import SimpleHTTPServer
import SocketServer
import logging
import cgi
import sys
PORT = 8080
sys.stdout = open('log.txt','a')
count = 0
@darxtrix
darxtrix / mailman-fix.md
Last active August 29, 2015 14:16
Mailman getting out of the `404 Not Found` error due to bug https://bugs.launchpad.net/postorius/+bug/1429366

Step by Step process

  • Kill mailman runners or any other process associated with mailman first.
  • Now go to /mailman/src/mailman and delete the var folder.
  • Now do mailman start at the same path.

Note

@darxtrix
darxtrix / Git_Workflow.sh
Last active August 29, 2015 14:01
Some basic git commands list and their working.
# Git Commands and their working
# remotes are the copy of your local files at somewhere else on the we
# git listing all the remotes of a repo in a verbose mode
git remote -v
# adding a new remote
git remote add <remote-name> <repo-url>
# git remove a remote branch