Skip to content

Instantly share code, notes, and snippets.

@Xeyame
Xeyame / convert.sh
Created September 11, 2020 22:54
Telegram sticker maker
#!/bin/bash
# convert webp to png
for file in ./*.webp;
do
./dwebp.exe -scale 512 512 "$file" -o "$file.png";
done
@Xeyame
Xeyame / mosquitto
Created November 9, 2019 21:28
Mosquitto UFW application file
[Mosquitto]
title=Mosquitto
description=Mosquitto mqtt broker port 1883/tcp
ports=1883/tcp
[Mosquitto-TLS]
title=Mosquitto TLS Only
description=Mosquitto secure mqtt broker port 8883/tcp
ports=8883/tcp
@Xeyame
Xeyame / unifi
Created November 9, 2019 16:03
Unifi controller UFW firewall profile
[Unifi L3]
title=Unifi controller L3 Management
description=Unifi controller for L3 Management over internet, for example when running on a VPS.
ports=8080,8443,8880,8843,6789/tcp|3478/udp
[Unifi Local]
title=Unifi controller for local network
description=Unifi controller for local network (includes device discovery and AP-EDU ports)
ports=8080,8443,8880,8843,6789/tcp|3478,5656:5699,10001,1900/udp
@Xeyame
Xeyame / ovpnstatus.php
Last active April 17, 2019 13:02
Crappy openvpn status web viewer in php
<html>
<head>
<style>
body {
margin: 50px;
font-family: arial, sans-serif;
}
table, th, td {
border: 1px solid black;
}

Keybase proof

I hereby claim:

  • I am Xeyame on github.
  • I am xeyame (https://keybase.io/xeyame) on keybase.
  • I have a public key whose fingerprint is D015 B81F 1D78 60C2 8B00 00D4 9CEC B1F4 8D92 F8BE

To claim this, I am signing this object: