Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://gist.githack.com/johnd0e/a3647bebc3a65440d2f7ea470998816b/raw/leaflet.css" />
// ==UserScript==
// @id iitc-plugin-draw-resonators@xelio
// @name IITC plugin: Draw resonators
// @category Layer
// @version 0.4.0.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Draw resonators on map. With stylers to highlight resonators with specific criteria.
// @include https://intel.ingress.com/intel*
@modos189
modos189 / root-ro
Created December 29, 2017 17:14 — forked from kidapu/root-ro
Read-only Root-FS with overlayfs for Raspian
#!/bin/sh
#
# Read-only Root-FS for Raspian
#
# Modified 2016 by Stefan Bonfert to make it compatible with Raspbian
# Jessie (vanilla).
#
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with
# overlayfs integrated in Linux Kernel >= 3.18.
#
@modos189
modos189 / root-ro
Created December 29, 2017 16:09 — forked from niun/root-ro
Read-only Root-FS with overlayfs for Raspian
#!/bin/sh
#
# Read-only Root-FS for Raspian
#
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with
# overlayfs integrated in Linux Kernel >= 3.18.
#
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10.
# This version can be found here:
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs
@modos189
modos189 / гостевая книга.php
Created April 5, 2013 15:31
не забудь базу данных подготовить
<?php
if (!empty($_GET['name']) and !empty($_GET['mail']) and !empty($_GET['text'])) {
$hostname = 'localhost';
$username = 'root';
$password = 'root';
$db = 'test';
// Подключаемся к серверу MySQL
$db = mysql_connect($hostname, $username, $password)
<?php
function get_ip()
{
if ($ip = getenv("HTTP_CLIENT_IP")) return $ip;
if ($ip = getenv("HTTP_X_FORWARDED_FOR"))
{
if ($ip == '' || $ip == "unknown")
{