Skip to content

Instantly share code, notes, and snippets.

@unifispot
unifispot / index.html
Last active February 21, 2018 08:27
auto direct guest to site after login
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://<SITEADDRES>">
<script type="text/javascript">
window.location.href = "http://<SITEADDRES>"
</script>
<title>Page Redirection</title>
</head>
@unifispot
unifispot / uninstall.sh
Last active June 9, 2016 18:53
Commands to fully uninstall poppet
#completely uninstall poppet
#WARNING it will delete all the data including the database
rm -rf /usr/share/nginx/poppet
rm -rf /etc/uwsgi
rm -rf /etc/supervisor/conf.d/unifispot_celery.conf
rm -rf rm -rf /etc/nginx/sites-enabled/wifiapp
mysqladmin -uroot -p drop poppet
#upgrading from an earlier version to 1.1.0 and bewyond
#location of uwsgi.ini have changed
ln -sf /usr/share/nginx/poppet/scripts/uwsgi.ini /etc/uwsgi/vassals/uwsgi.ini
cp /usr/share/nginx/poppet/scripts/uwsgi.conf /etc/init/
#supervisor may not have installed before
apt-get install supervisor
ln -sf /usr/share/nginx/poppet/scripts/supervisord.conf /etc/supervisor/conf.d/unifispot_celery.conf
@unifispot
unifispot / index.html
Created May 13, 2016 20:18
Unifi Portal Redirection Script
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://<SITEADDRES>/guest/s/<SITEID>/?ap=<unifi var="ap_mac" />&id=<unifi var="mac" />&ssid=<unifi var="ssid" />">
<script type="text/javascript">
window.location.href = "http://<SITEADDRES>/guest/s/<SITEID>?ap=<unifi var="ap_mac" />&id=<unifi var="mac" />&ssid=<unifi var="ssid" />"
</script>
<title>Page Redirection</title>
</head>