Skip to content

Instantly share code, notes, and snippets.

@abitrolly
abitrolly / box.svg
Last active August 29, 2015 14:25
SVG box with no explicit size
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abitrolly
abitrolly / foundation.css
Last active June 4, 2016 17:54
honest ads - tax service
*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box; }
html,
body {
font-size: 100%; }
Адамово Яблоко
- КиноШок
- Фильмкабаре
- Бульба...
- CPM
Synopsis:
- EN:Village robber gets relieved from material burden and returns back to the roots of naturalness.
- RU:Деревенский грабитель получает освобождение от материального груза и возвращается к природным корням.
@abitrolly
abitrolly / warncounter.py
Last active October 2, 2017 09:37
Count Rust compile warning from build log
#!/usr/bin/env python
logfile = 'log.txt?deansi=true'
import re
from collections import OrderedDict as odict
compiling = re.compile('^ *Compiling ([-\w]+) ([^\( ]+)')
warning = re.compile('^warning: (.*)')
@abitrolly
abitrolly / modlist.py
Created October 25, 2017 20:01
List ansible modules
#!/usr/bin/env python
from ansible.plugins.loader import module_loader
import os
# fill up module cache by looking for non-existing plugin
module_loader.find_plugin('cryptobiosis')
cache = module_loader._plugin_path_cache['']
names = set()
for name in sorted(cache):
if name[0] == '_': # deprecated plugin
@abitrolly
abitrolly / README.md
Created November 2, 2017 10:13
Get kubernetes dashboard version

The only way to extract it at Oct-2017 is from Docker image tag.

Partial Linux version:

kubectl get deploy --namespace kube-system -o json | grep netes-dashboard
@abitrolly
abitrolly / keybase.md
Created March 8, 2018 08:05
keybase.md

Keybase proof

I hereby claim:

  • I am abitrolly on github.
  • I am abitrolly (https://keybase.io/abitrolly) on keybase.
  • I have a public key ASD4cGafq15dasvCD9AsiYpKzws1FvT-keA_q_Ip8dzuswo

To claim this, I am signing this object:

@abitrolly
abitrolly / inspiration2.md
Last active June 17, 2018 10:43
Inspiration II
@abitrolly
abitrolly / anitya-refresh-updates.py
Created August 12, 2018 05:48
Refresh failed Anitya updates
#!/usr/bin/env python3
import requests
ANITYA = 'https://release-monitoring.org'
# projects seen in this session (should be equal to page size)
count = 0
# (GitHub) projects processed this session
processed = 0
# GitHub projects successfully processed with this script while debugging
@abitrolly
abitrolly / nmap-docker-compose.py
Last active November 6, 2018 17:30
Detect services running on docker-compose ports with Nmap
#!/usr/bin/env python
"""
Parse docker-compose.yml port definitions and run NMAP service
scan on them to discover actual services running.
Needs nmap and Python pyyaml installed.
For now only "3000" and "8000:8000" syntax is supported.