Skip to content

Instantly share code, notes, and snippets.

View ironbishop's full-sized avatar
💭
kick bugs and chew bubblegum

ironbishop

💭
kick bugs and chew bubblegum
View GitHub Profile
@ironbishop
ironbishop / gist:72d7bf79fb618f4820d60358014bbec9
Created April 12, 2021 17:05
convert a black and white JPG to a TuxPaint starter
* download file
* create transparent layer
```bash
for f in Super-Mario-Bros_30.jpg Super-Mario-Bros_37.jpg ; do
echo "***** $f *********** "
convert "$f" -fuzz 20% -transparent white "nuove/${f%.jpg}.png"
#sleep 1
done
```
@ironbishop
ironbishop / download_HSL_list.sh
Last active January 10, 2021 08:25
download HSL stream list
#!/bin/bash
i=0
URL[$i]="https://.../.../....m3u8"
TITLE[$i]="... - S01E01 ..." // no extension
i=$((i+1))
URL[$i]="..."
TITLE[$i]="..."
i=$((i+1))
...
@ironbishop
ironbishop / recursive_template_get.py
Created May 30, 2019 11:51
zabbix recursive template inclusion list
from pyzabbix import ZabbixAPI
def get(z, templateid):
res = templateid
for t in templateid:
template = z.template.get(templateids=t, selectTemplates='extend')
parent_templates = [x['templateid'] for x in template[0]['templates']]
if parent_templates:
res = res + template_get(z, parent_templates)
return res
@ironbishop
ironbishop / zabbix_full_queue.md
Created May 30, 2019 07:00
zabbix full queue content from cache / db into csv

Issue

"Queue Details" in Zabbix web interface is capped to 500 items.

Workaround

To obtain full queue (Zabbix web interface):

  • change value QUEUE_DETAIL_ITEM_COUNT in file frontends\php\include\defines.inc.php

More details:

@ironbishop
ironbishop / galleria_tag.rb
Last active October 7, 2016 07:51 — forked from alexbevi/galleria_tag.rb
Galleria Tag for Jekyll/Octopress
# Title: Galleria Tag for Jekyll
# Authors: Alex Bevilacqua
# Description: incorporate the Galleria gallery jquery plugin
#
# Adaption of "Photos tag for Jekyll" by Devin Weaver, and the derived
# "Gallery Tag for Jekyll" by Kevin Brown.
#
# Multiple gallery in same page, added by @ironbishop .
#
# Installation: