Skip to content

Instantly share code, notes, and snippets.

View kriiv's full-sized avatar
🎯
Focusing

Martin Krivosija kriiv

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python
"""
check-dnsbl.py: checks a list of DNS blocklists for hosts and IPs.
Given any hostname or IP address, this will try to resolve the matching
IP/hostname, and check for both in all blocklists. For every match that
is found, a warning is written to STDERR, and the return code will be 1.
Gevent is used for concurrent lookups, the number of active greenlets
is limited to PARALLELISM.
All credit to: https://github.com/andreasf
@kriiv
kriiv / README.md
Created October 5, 2020 06:59 — forked from valeryan/README.md
WSL Startup Script

USAGE

  1. Save the services.sh file to your computer in a location like C:/tools/wsl-startup/.
  2. Download the WSL Statup.xml and import it into Task Scheduler.
  3. Modify as needed for you personal use.
@kriiv
kriiv / alpine.html
Created September 28, 2020 12:48
AlpineJS show button example
<div x-data="{ open{{ base64_encode($review->reviewId) }}: false }">
<button @click="open{{ base64_encode($review->reviewId) }} = true">Open Dropdown</button>
<ul x-show="open{{ base64_encode($review->reviewId) }}" @click.away="open{{ base64_encode($review->reviewId) }} = false">
Dropdown Body
</ul>
</div>