View twotwo-wayland.sh
#!/bin/bash | |
# vi: ts=4:sw=4:et | |
# | |
# twotwo.sh | |
# This script allows you to install/update Enlightenment 22 git version on | |
# Ubuntu 18.04 or Debian buster (testing), or remove E22 git from your system. | |
# ******************************************************************** | |
# * This version builds enlightenment with wayland. * | |
# * That means this requires a very recent Ubuntu or Debian version. * | |
# * This may not work properly! You've been warned! * |
View debug-dnsmasq.sh
#!/bin/bash | |
echo 'log-queries' > /etc/dnsmasq.conf | |
service network-manager restart | |
tail -f /var/log/syslog |
View tail.php
<?php | |
if (isset($_GET['ajax'])) { | |
session_start(); | |
$handle = fopen('/private/var/log/system.log', 'r'); | |
if (isset($_SESSION['offset'])) { | |
$data = stream_get_contents($handle, -1, $_SESSION['offset']); | |
echo nl2br($data); | |
} else { | |
fseek($handle, 0, SEEK_END); | |
$_SESSION['offset'] = ftell($handle); |