Skip to content

Instantly share code, notes, and snippets.

View sonnyp's full-sized avatar
🛠️

Sonny sonnyp

🛠️
View GitHub Profile
@sonnyp
sonnyp / XHTML5.xhtml
Last active April 18, 2019 08:48
XHTML5 template
<?xml version="1.0" encoding="utf-8"?>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8"/>
<title>TITLE</title>
<meta name="description" content="$DESCRIPTION"/>
<meta name="author" content="$AUTHOR"/>
import {AppState} from 'react-native';
import xml from './xmpp/packages/xml';
// https://xmpp.org/extensions/xep-0352.html
// https://facebook.github.io/react-native/docs/appstate
module.exports = function csi({entity}) {
let supported = false;
let inactive = false;
#!/usr/bin/env gjs
const { GLib, GUPnP } = imports.gi;
const { MainLoop } = GLib;
const mainloop = new MainLoop(null, true);
function getExternalIpAddress() {
// does it work with interface: null or without