Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Irfaq Syed irazasyed

🎯
Focusing
View GitHub Profile
View Integrating_Guzzle_6_Asynchronous_Requests_with_ReactPHP.php
<?php
/**
* Credits to :
* @see https://gist.github.com/psampaz/7f2aad5d1d54eeeec8ae
*/
use GuzzleHttp\Handler\CurlMultiHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
@irazasyed
irazasyed / google-fonts-async.html
Created May 28, 2020
Google Fonts Async Snippet
View google-fonts-async.html
<!--
- Info: https://csswizardry.com/2020/05/the-fastest-google-fonts/
-
- 1. Preemptively warm up the fonts’ origin.
-
- 2. Initiate a high-priority, asynchronous fetch for the CSS file. Works in
- most modern browsers.
-
- 3. Initiate a low-priority, asynchronous fetch that gets applied to the page
- only after it’s arrived. Works in all browsers with JavaScript enabled.
@irazasyed
irazasyed / howto-enable-dnscrypt-proxy-v2-netgear-router.md
Last active Feb 23, 2020
How to Enable DNSCrypt-Proxy v2 on Netgear X4S R7800 / R8900 / R9000 Router
View howto-enable-dnscrypt-proxy-v2-netgear-router.md

How to Enable DNSCrypt-Proxy v2 on Netgear X4S R7800 / R8900 / R9000 Router

Supported routers (Netgear R7800, R8900, and R9000)

Prerequisite

  • Make sure telnet is enabled in your router. You can visit this page and enable (login when prompted): http://www.routerlogin.com/debug.htm.
  • Once you telnet into your router using your routers password, you should setup your SSH key.
  • [Recommended] Add SSH key id_rsa.pub to /root/.ssh/authorized_keys (You might have to create this dir and file manually if not it doesn't already exist).
View regex-worker.js
// Perform regex replacements and inject CSS/JavaScript with Cloudflare Workers
// https://community.cloudflare.com/t/perform-regex-replacements-and-inject-css-javascript-with-cloudflare-workers/90279
addEventListener('fetch', event => {
event.passThroughOnException()
event.respondWith(handleRequest(event.request))
})
/**
* Fetch and log a given request object
* @param {Request} request
View .gitignore_global
*~
*.diff
*.err
*.orig
*.rej
*.swo
*.swp
*.vi
# Compiled source #
@irazasyed
irazasyed / 1-dnsmasq-dnscrypt-proxy-setup.md
Last active Sep 10, 2020
How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS
View 1-dnsmasq-dnscrypt-proxy-setup.md

How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS

Using Laravel Valet for localhost development, So it installs dnsmasq with it. dnsmasq runs on port 53, The default DNS port. So we setup dnscrypt-proxy on port 5300 with the default config files in this gist.

dnscrypt-proxy Installation

brew install dnscrypt-proxy
View card-popup-effect.css
.card {
transition: 0.5s;
backface-visibility: hidden;
transform: translateZ(0);
}
.card:hover {
box-shadow: 0 30px 70px #000;
transform: scale3d(1.05, 1.05, 1.05);
}
@irazasyed
irazasyed / laravel-scheduler.md
Created Aug 12, 2018
Laravel Scheduler Manual Simulation
View laravel-scheduler.md

Simulate Laravel Scheduler Manually

This command will execute every 60 seconds which will trigger your Laravel schedules in 1 min range.

while true; do php artisan schedule:run; sleep 60; done
@irazasyed
irazasyed / dark-youtube.js
Last active Apr 3, 2018
User-Script: YouTube Dark & Wide Mode.
View dark-youtube.js
// ==UserScript==
// @name Dark Wide YouTube
// @namespace DWYT
// @version 1.0
// @description Dark Wide YouTube
// @author Syed I.R.
// @match https://*.youtube.com/*
// @require https://raw.githubusercontent.com/madmurphy/cookies.js/master/cookies_min.js
// @grant none
// @noframes
@irazasyed
irazasyed / binance-registration-workaround.md
Created Jan 6, 2018
Binance Registration Work-Around
View binance-registration-workaround.md

Binance Registration Work-Around

Binance as you know has taken over Bittrex in terms of volume and has been performing quite well with coin listings every week happening and interesting contests. However, due to the huge number of registrations on their platform, they have temporally closed registrations. But there is still a work-around to register an account with Binance despite the registrations being closed.

Here's a way to easily register an account with Binance:

Just follow this link and register an account as you would normally and enjoy! Do share with others too :)

You can’t perform that action at this time.