Skip to content

Instantly share code, notes, and snippets.

View legoktm's full-sized avatar

Kunal Mehta legoktm

View GitHub Profile
Format: 1.0
Source: ossec-server
Binary: ossec-server
Architecture: amd64 source
Version: 3.6.0+focal
Checksums-Md5:
737eb70e70207b687b4bd96d50542d4b 562 ossec-server_3.6.0+focal.dsc
a0600e86739ee6afb811e0567cc4d3e8 4087172 ossec-server-dbgsym_3.6.0+focal_amd64.ddeb
4d94e3de10b2ded5d170d9baa9fe77d8 624104 ossec-server_3.6.0+focal_amd64.deb
Checksums-Sha1:
#0 0x00007864231cf0cd in __gnu_cxx::__exchange_and_add (__val=-1, __mem=0x11)
at /usr/include/c++/10/ext/atomicity.h:50
#1 __gnu_cxx::__exchange_and_add_dispatch (__val=-1, __mem=0x11) at /usr/include/c++/10/ext/atomicity.h:84
#2 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x9)
at /usr/include/c++/10/bits/shared_ptr_base.h:155
#3 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x7ffdcf0b1f18,
__in_chrg=<optimized out>) at /usr/include/c++/10/bits/shared_ptr_base.h:733
#4 std::__shared_ptr<zim::Buffer const, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x7ffdcf0b1f10,
__in_chrg=<optimized out>) at /usr/include/c++/10/bits/shared_ptr_base.h:1183
#5 std::shared_ptr<zim::Buffer const>::~shared_ptr (this=0x7ffdcf0b1f10, __in_chrg=<optimized out>)
user@dev ~/p/c/out> ./container-diff diff remote://anarcat/debian-airsonic remote://registry.gitlab.com/anarcat/debian-airsonic --type=file --type=apt
2020/05/03 23:23:39 Unable to read "/home/user/.docker/config.json": open /home/user/.docker/config.json: no such file or directory
2020/05/03 23:23:39 Unable to read "/home/user/.docker/config.json": open /home/user/.docker/config.json: no such file or directory
ERRO[0002] Could not obtain size for /home/user/.container-diff/cache/remote_registry.gitlab.comanarcatdebian-airsonic/etc/alternatives/jfr: stat /home/user/.container-diff/cache/remote_registry.gitlab.comanarcatdebian-airsonic/etc/alternatives/jfr: no such file or directory
ERRO[0002] Could not obtain size for /home/user/.container-diff/cache/remote_registry.gitlab.comanarcatdebian-airsonic/usr/bin/jfr: stat /home/user/.container-diff/cache/remote_registry.gitlab.comanarcatdebian-airsonic/usr/bin/jfr: no such file or directory
-----Apt-----
Packages found only in anarcat/debian-airsonic: None
user@dev ~> sudo docker run --rm -it --entrypoint=bash docker-registry.wikimedia.org/releng/tox:0.4.2
nobody@4b70ed23eebd:/src$ git clone https://gerrit.wikimedia.org/r/labs/tools/apt-browser
Cloning into 'apt-browser'...
remote: Total 44 (delta 0), reused 44 (delta 0)
Unpacking objects: 100% (44/44), done.
nobody@4b70ed23eebd:/src$ cd apt-browser/
nobody@4b70ed23eebd:/src/apt-browser$ tox
.tox create: /src/apt-browser/.tox/.tox
.tox installdeps: tox-wikimedia, tox >= 3.10.0
py37-flake8 create: /src/apt-browser/.tox/py37-flake8
#!/bin/sh
# From Gerrit Code Review 2.8.1-4-ga1048ce
#
# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#!/usr/bin/env python3
import os
import subprocess
def shell_exec(args):
print(' '.join(args))
return subprocess.check_output(args).decode()
import os
family = os.environ.get('FAMILY', 'wikipedia')
mylang = os.environ.get('LANGUAGE', 'en')
if os.environ.get('TRAVIS_REPO_SLUG', None) == 'wikimedia/pywikibot-core':
usernames[family][mylang] = 'Pywikibot-test'
usernames['wikipedia']['en'] = 'Pywikibot-test'
password_file = os.path.expanduser('~/.pywikibot/passwordfile')
diff --git a/manifests/role/extdist.pp b/manifests/role/extdist.pp
new file mode 100644
index 0000000..30956f4
--- /dev/null
+++ b/manifests/role/extdist.pp
@@ -0,0 +1,27 @@
+# = Class: role::extdist
+#
+# This class sets up the Extension Distributor tarball generator
+#
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# CentralAuth broken accounts detector script
# Released under GPL v2 / MIT License
#
# By Legoktm, with contributions from Roan Kattouw, wctaiwan and Earwig
#
# Detects "broken" accounts. See
# <https://bugzilla.wikimedia.org/show_bug.cgi?id=61876>
#
@legoktm
legoktm / thingy.py
Last active August 29, 2015 14:03
thingy
# -*- coding: utf-8 -*-
# SUL audit thingy
# GPL v2 / MIT License
import calendar
import datetime
from collections import defaultdict, OrderedDict
import os
import time
import MySQLdb