Skip to content

Instantly share code, notes, and snippets.

Avatar

Issa gamersalpha

  • Atlantis
View GitHub Profile
@gamersalpha
gamersalpha / twotwo-wayland.sh
Last active Jan 27, 2019 — forked from SteveClement/twotwo-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
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! *
@gamersalpha
gamersalpha / debug-dnsmasq.sh
Created Jan 2, 2018 — forked from shuhaowu/debug-dnsmasq.sh
Debug dnsmasq by logging its queries
View debug-dnsmasq.sh
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
@gamersalpha
gamersalpha / tail.php
Created Oct 2, 2017 — forked from deizel/tail.php
PHP log tail example
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);