Skip to content

Instantly share code, notes, and snippets.

View gohumble's full-sized avatar
💎
🙌🏽

gohumble

💎
🙌🏽
View GitHub Profile
{
"sites": {
"Facebook": {
"regexCheck": "^[a-zA-Z0-9_\\.]{3,49}(?<!\\.com|\\.org|\\.net)$",
"checkType": "message",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
},
"alexaRank": 10,
<?php
function event() {
global $events;
$args = func_get_args();
$event = $args[0];
$args = array_splice($args, 1);
func (c *Connection) duplexPipe() {
upstreamChannel := chanFromConnection(c.upstream)
clientChannel := chanFromConnection(c.client)
for {
select {
case b1 := <-upstreamChannel:
if b1 == nil {
return
} else {
c.client.Write(b1)