Skip to content

Instantly share code, notes, and snippets.

View ijunaid8989's full-sized avatar
It may have escaped your notice but life isn't fair.

Junaid Farooq ijunaid8989

It may have escaped your notice but life isn't fair.
  • Islamabad Pakistan
View GitHub Profile
2xa31k /
Last active August 10, 2022 12:23
Remove all your facebook likes
arrieta / heartbeat.cpp
Last active September 1, 2023 03:49
Dirt Simple Heart Beat Server in C++
View heartbeat.cpp
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <sstream>
#include <chrono>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
mbenatti /
Last active September 6, 2019 23:49
Installing Bootstrap 4 + Font Awesome from NPM in Phoenix Framework using sass
JeffreyWay / PjaxMiddleware.php
Last active June 17, 2022 07:03
Laravel middleware for working with pjax.
View PjaxMiddleware.php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\DomCrawler\Crawler;
class PjaxMiddleware
llj098 / Makefile
Created December 23, 2010 01:36
a sample tcp server runs in kernel
View Makefile
obj-m += tcp_svr_sample.o
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')