Skip to content

Instantly share code, notes, and snippets.

View vlad7code's full-sized avatar

vlad7code

View GitHub Profile
@sid24rane
sid24rane / net.js
Last active February 7, 2024 08:05
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});
@timersys
timersys / gist:4480bccf64a1147abb3d
Last active February 22, 2021 18:42
wp_remote_get debug script
<?php
/**
* Plugin Name: Wp Remote Test
* Plugin URI:
* Version: 0.1
* Description: Debug wp_remote_get and wp_remote_post
* Author: Damian Logghe
* Author URI: http://wp.timersys.com
*/