I hereby claim:
- I am zoddo on github.
- I am zoddo (https://keybase.io/zoddo) on keybase.
- I have a public key ASA5j1YNp9seAjmiDr1DfbTsbL1UIIc4E-Qb3gWk2hEkrwo
To claim this, I am signing this object:
<?php | |
include 'vendor/autoload.php'; | |
$config = new \Zoddo\irc\Config('irc.ekinetirc.fr.nf', 'TestPhpIrc'); | |
//$config->setPort(6697) | |
// ->setSsl(); | |
$connection = new \Zoddo\irc\IrcConnection($config); | |
$connection->getEvent()->addListener('ping', array(new \Zoddo\irc\EventListener\PingResponder(), 'onPing')); |
#include "module.h" | |
class CommandOsRaw : public Command | |
{ | |
public: | |
CommandOsRaw(Module *creator, const Anope::string &sname = "operserv/raw") : Command(creator, sname, 0, 0) | |
{ | |
this->SetDesc(_("Send a raw command to the uplink server - \037DANGEROUS!\037")); | |
this->SetSyntax("\037<pseudoclient>\037 \037<command>\037"); | |
this->SetSyntax(":\037<command>\037"); |
module.exports = { | |
'001': { | |
name: 'rpl_welcome', | |
type: 'reply' | |
}, | |
'002': { | |
name: 'rpl_yourhost', | |
type: 'reply' | |
}, | |
'003': { |
All commands must be sent in the control-channel, prefixed with "!" or in another channel, prefixed with "AntiNoisyBot: ". | |
ping [<string>] | |
Reply "pong <string>" | |
monitor #<channel> [report_only] Restrict to flag "a" | |
Adds the channel to the list of monitored channel. If report_only is used, the bot will only | |
report detections on the control-channel. |
<?php | |
const MAX_PORT = 65535; | |
const REGEX_V4 = '#^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})$#'; | |
const REGEX_V6 = '#^([0-9a-f:])\[(\d{1,5})\]$#'; | |
// Listen TCP port 113 | |
$srv = socket_create_listen(113); | |
if (!$srv) { | |
echo "Unable to bind the server on port 113: " . socket_strerror(socket_last_error()) . "\n"; |
I hereby claim:
To claim this, I am signing this object:
"use strict"; | |
const fetch = require('node-fetch'); | |
const ENDPOINT = 'https://bans.discord.id/api/check.php'; | |
const MAX_USERS = 99; // The API accepts up to 99 users per call | |
class Lookup { | |
constructor(token, {interval, cacheSize, cacheLife} = {}) { | |
Object.defineProperty(this, 'token', {value: token, enumerable: false, writable: true}); | |
this.interval = interval || 1000; // 1 sec - The API is currently not rate-lmited, but, be safe, and don't make more than 60 requests per minute. |
# /etc/udev/rules.d/10-local.rules | |
SUBSYSTEMS=="usb", ACTION=="add", ENV{.ifNumber}="%s{bInterfaceNumber}" | |
SUBSYSTEM=="tty", ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", ENV{.ifNumber}=="00", SYMLINK+="phone" |
<?php | |
$config = [ | |
'dbhost' => 'localhost', | |
'dbuser' => 'xxxxxxxxx', | |
'dbpass' => 'xxxxxxxxx', | |
'dbname' => 'xxxxxxxxx', | |
]; |