Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
kick bugs and chew bubblegum

ironbishop

💭
kick bugs and chew bubblegum
View GitHub Profile
@ironbishop
ironbishop / gist:72d7bf79fb618f4820d60358014bbec9
Created Apr 12, 2021
convert a black and white JPG to a TuxPaint starter
View gist:72d7bf79fb618f4820d60358014bbec9
* 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 Jan 10, 2021
download HSL stream list
View download_HSL_list.sh
#!/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
zabbix recursive template inclusion list
View recursive_template_get.py
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
zabbix full queue content from cache / db into csv
View zabbix_full_queue.md

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 Oct 7, 2016 — forked from alexbevi/galleria_tag.rb
Galleria Tag for Jekyll/Octopress
View galleria_tag.rb
# 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: