Skip to content

Instantly share code, notes, and snippets.

View H7-25's full-sized avatar

Filippo Cortigiani H7-25

View GitHub Profile
@H7-25
H7-25 / gist:80293bb1c32b6a8fc81c
Created May 8, 2014 23:31
Autohide memberlist for narrow view
// Determine if we have a narrow window (mobile/tablet/or even small desktop window)
if (el_kiwi.outerWidth() < 400) {
el_kiwi.addClass('narrow');
el_right_bar.addClass('disabled');
} else {
el_kiwi.removeClass('narrow');
el_right_bar.removeClass('disabled');
}
@H7-25
H7-25 / gist:9e86009530952f11ee0e
Created May 23, 2014 00:04
anope 1.8 ctcp version
#include "module.h"
#define AUTHOR "SGR"
#define VERSION "2.98"
#define MODNAME "ircd_ctcpversion"
/* -----------------------------------------------------------
* Name : ircd_ctcpserv
* Author: SGR <[email protected]>
* Date : 17/11/2003
* -----------------------------------------------------------
var kiwiModules = require('../server/modules');
var module = new kiwiModules.Module('Ident Cookie Module');
module.on('irc connecting', function(event, event_data) {
var cookies = event_data.connection.state.client.websocket.transport.request ?
event_data.connection.state.client.websocket.transport.request.headers.cookie || '' :
'';
console.log(cookies);
var cookie_val = cookies.match(/[ ;^]?cookie_name=([^;]+)/);
var kiwiModules = require('../server/modules');
var module = new kiwiModules.Module('Ident Cookie Module');
module.on('irc connecting', function(event, event_data) {
var cookies = event_data.connection.state.client.websocket.transport.req ?
event_data.connection.state.client.websocket.transport.req.headers.cookie || '' :
'';
//console.log(cookies);
var cookie_val = cookies.match(/[ ;^]?cookie_name=([^;]+)/);
<script>
var network = kiwi.components.Network();
function randString(n) {
if(!n)
{
n = 5;
}
var text = '';
if(is_single() AND get_post_type() == 'post' AND $pluginOptions['enabled'] == 1){
function my_metaTags($content){
global $post;
//echo '<pre>';print_r($post);echo '</pre>';
return $post->post_content.'<div class="social-meta-tags-container">
<div class="social-meta-tags-social social-meta-tags-facebook">
<a target="_blank" href="https://www.facebook.com/sharer.php?u='.urlencode(post_permalink($post->ID)).'">Facebook</a>
<span></span></div>
<div class="social-meta-tags-social social-meta-tags-twitter">
<a target="_blank" href="https://twitter.com/intent/tweet?text='.urlencode($post->post_title).'&url='.urlencode(post_permalink($post->ID)).'">Twitter</a>
@H7-25
H7-25 / m_filter.cpp
Created July 28, 2018 00:16
Modified Filter module
/*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2009 Daniel De Graaf <[email protected]>
* Copyright (C) 2004, 2008 Craig Edwards <[email protected]>
* Copyright (C) 2007 Dennis Friis <[email protected]>
* Copyright (C) 2007 Robin Burchell <[email protected]>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public
#!/usr/bin/php
<?php
include('includes/geoip.inc');
include 'includes/tor.class.php';
include 'includes/ip2asn/src/ip2asn.php';
use peterkahl\ip2asn\ip2asn;
$active = null;
$debug = in_array ('-debug', $_SERVER['argv']);
$full = !in_array ('-reduced', $_SERVER['argv']);
.kiwi-statebrowser-register {
position: absolute;
top: 0;
left: 32px;
width: auto;
text-align: left;
padding: 0 10px;
font-size: 1em;
box-sizing: border-box;
line-height: 35px;
/*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2009-2010 Daniel De Graaf <[email protected]>
* Copyright (C) 2008 Craig Edwards <[email protected]>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, version 2.
*