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
2xa31k / remove-likes.md
Last active August 10, 2022 12:23
Remove all your facebook likes
View remove-likes.md
@arrieta
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
mbenatti / 0-font-awesome-bootstap-phoenix.md
Last active September 6, 2019 23:49
Installing Bootstrap 4 + Font Awesome from NPM in Phoenix Framework using sass
View 0-font-awesome-bootstap-phoenix.md
@JeffreyWay
JeffreyWay / PjaxMiddleware.php
Last active June 17, 2022 07:03
Laravel middleware for working with pjax.
View PjaxMiddleware.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\DomCrawler\Crawler;
class PjaxMiddleware
@llj098
llj098 / Makefile
Created December 23, 2010 01:36
a sample tcp server runs in kernel
View Makefile
obj-m += tcp_svr_sample.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')