Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# block torrent traffic by iptable/firewall for VPN/Proxy server
# [email protected]
# forked by roland
# Delete all existing rules
iptables -F
iptables -X
# Set default chain policies
@micti
micti / example.markup.html
Created March 29, 2019 06:31
Display name of file for Bulma Input File
<!-- https://bulma.io/documentation/form/file/ -->
<div class="file has-name">
<label class="file-label">
<input class="file-input" type="file" name="resume">
<span class="file-cta">
<span class="file-icon">
<i class="fas fa-upload"></i>
</span>
<span class="file-label">
@littmus
littmus / ppt2png.py
Last active March 27, 2024 14:58
Python snippet for converting ppt/pptx file to png files. Works only in PowerPoint installed Windows!
import sys
import os
try:
from comtypes import client
except:
print "Install comtypes from http://sourceforge.net/projects/comtypes/"
sys.exit(-1)
if __name__ == '__main__':