Skip to content

Instantly share code, notes, and snippets.

@franciscsimon
franciscsimon / unifi_fedora.sh
Created October 4, 2021 20:28
install the unifi controller on fedora 34
#!/bin/bash
# get requried mongodb version from upstream
wget https://repo.mongodb.org/yum/redhat/8Server/mongodb-org/4.4/x86_64/RPMS/mongodb-org-server-4.4.4-1.el8.x86_64.rpm
# install mongodb
sudo dnf install \
./mongodb-org-server-4.4.4-1.el8.x86_64.rpm
# enable rpmfusion
sudo dnf install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
@franciscsimon
franciscsimon / echo_websocket_test.go
Last active May 28, 2020 06:12
echo websocket connection unit test
package evmsg
import (
"bytes"
hijack "github.com/getlantern/httptest"
echo "github.com/labstack/echo/v4"
"golang.org/x/net/websocket"
"net/http"
"net/http/httptest"
"testing"
@franciscsimon
franciscsimon / hetzner_dns_list_zones.sh
Last active April 26, 2020 13:03
hetzner dns list zones
#!/bin/bash
TOKEN="YOUR-HETZNER-DNS-TOKEN"
VERSION="v0.0.1-alpha"
# for windows you need to set OS="windows" and EXT=".exe"
# for darwin change OS="linux" to OS="darwin"
# for linux just use it :-)
OS="linux"
EXT=""