Skip to content

Instantly share code, notes, and snippets.

View githubgobi's full-sized avatar
🙏
Namaste

Gobi Swag githubgobi

🙏
Namaste
View GitHub Profile
@githubgobi
githubgobi / chart.png
Created December 5, 2017 09:16 — forked from evanw/chart.png
WebSocket Speed Test
chart.png
@githubgobi
githubgobi / Websocket-speed-test.js
Created December 5, 2017 09:16 — forked from gotomypc/Websocket-speed-test.js
Test how fast your browser handles websockets with Node.js.
var server = require( 'http' ).createServer();
// our html template
var script = function( f ) {
// get just the content of this script
var s = /^[^\{]+\{\n?([\s\S]+)\}/.exec( f )[1];
return [
'<!DOCTYPE html><html>',
'<head>',
'<script type="text/javascript">',s,'</script>',
@githubgobi
githubgobi / zip-files-with-password.md
Created July 11, 2018 06:00
Creating encrypted ZIP files with password in PHP

Creating encrypted ZIP files with password in PHP

You need at least PHP 7.2 to encrypt ZIP files with a password.

<?php

$zip = new ZipArchive();

$zipFile = __DIR__ . '/output.zip';
@githubgobi
githubgobi / ubuntu-webserver-setup.md
Last active January 25, 2019 10:54
Ubuntu Webserver Setup
@githubgobi
githubgobi / slim-xampp.md
Created July 11, 2018 06:04
Running multiple Slim Framework sites with XAMPP

Running multiple Slim Framework sites with XAMPP

Slim 3 cannot work in a subdirectory by default.

Here I will show you a simple soultion to run multiple Slim applications under Apache.

Fixing the slim environment

The directory skeleton structure: