Skip to content

Instantly share code, notes, and snippets.

View ahmadbasarudin's full-sized avatar

BASAR ahmadbasarudin

  • semesta alam
  • Ngunut
View GitHub Profile
@ahmadbasarudin
ahmadbasarudin / notes.md
Created August 18, 2020 09:19 — forked from inecmc/notes.md
Compile mosquitto-auth-plug on Ubuntu 16.04
sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto         # Install the latest version

sudo apt-get install build-essential libc-ares-dev libc-ares2 libcurl4-openssl-dev libmysqlclient-dev
curl -O http://mosquitto.org/files/source/mosquitto-1.4.11.tar.gz
tar zxf mosquitto-1.4.11.tar.gz
cd mosquito-1.4.11
nano config.mk # Edit: disable SRV
@ahmadbasarudin
ahmadbasarudin / pengumuman.php
Created June 12, 2019 05:44
grabbing berita pertanian
<?php
function renderRSS($a_item)
{
header("Content-Type: application/rss+xml; charset=UTF-8");
$xml = new SimpleXMLElement('<rss/>');
$xml->addAttribute("version", "2.0");
$channel = $xml->addChild("channel");
$channel->addChild("title", "Your feed title");
#deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
#deb-src http://packages.deepin.com/deepin panda main contrib non-free
deb http://kartolo.sby.datautama.net.id/deepin unstable main contrib non-free