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
import pywikibot
import sys
template = """{{catmore|Wikipedia:Authority control}}
{{Wikipedia category}}
"""
main_cat = """[[Category:Pages with authority control information|{0}]]"""
hidden = """{{catmore|Wikipedia:Authority control}}
@legoktm
legoktm / BLANK_ALL_THE_MESSAGES.py
Last active December 30, 2015 05:19
This will probably work.
#!/usr/bin/python
# Public domain
import wikitools
username = 'Legoktm'
password = 'hunter2'
messages = ['Signupstart', 'Signupend']
reason = '...'
def matrix(wiki):
#!/usr/bin/env python
# Authors: Legoktm, Betacommand
# License: MIT License
import datetime
import functools
import logging
import mwparserfromhell
import pywikibot
@legoktm
legoktm / dal.py
Created September 29, 2013 06:37
import requests
import re
regex=re.compile('<em>(\d*?) members total,')
with open('dalpass') as f:
adminpass = f.read()
s = requests.Session()
d = {'adminpw': adminpass, 'admlogin': 'Let me in...'}
s.post('https://lists.wikimedia.org/mailman/admin/daily-article-l/', data=d)
#!/usr/bin/env python
"""
Copyright (C) 2013 Legoktm
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions: