Skip to content

Instantly share code, notes, and snippets.

View ketavchotaliya's full-sized avatar
🎯
Focusing

Ketav Chotaliya ketavchotaliya

🎯
Focusing
  • Pune, India
View GitHub Profile
@ketavchotaliya
ketavchotaliya / postman-deb.sh
Created June 12, 2019 08:56 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
script=`basename "$0"`
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then
e="-e"
fi
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
@ketavchotaliya
ketavchotaliya / CorsMiddleware.php
Created April 25, 2018 08:56 — forked from fifths/CorsMiddleware.php
Lumen with CORS requests
<?php
namespace App\Http\Middleware;
use Symfony\Component\HttpFoundation\Response;
class CorsMiddleware
{
public function handle($request, \Closure $next)
{
@ketavchotaliya
ketavchotaliya / chatServer.js
Created October 26, 2016 06:52 — forked from creationix/chatServer.js
A simple TCP based chat server written in node.js
// Load the TCP Library
net = require('net');
// Keep track of the chat clients
var clients = [];
// Start a TCP Server
net.createServer(function (socket) {
// Identify this client