Skip to content

Instantly share code, notes, and snippets.

View hasinhayder's full-sized avatar
🚀
Back on track, yayyyy!

Hasin Hayder hasinhayder

🚀
Back on track, yayyyy!
View GitHub Profile
@hasinhayder
hasinhayder / readme.md
Created January 26, 2022 10:03
Remove Grub Bootloader From Windows

Remove Boot Loader EFI / System Partion in Windows 10

Quick Guide

Open PowerShell as Administrator

mountvol S: /S
S:
cd .\EFI\

dir

@hasinhayder
hasinhayder / jquery.md
Created January 26, 2022 09:14
Import jQuery in ESM

You can create a module converter like below:

// jquery.module.js
import 'https://code.jquery.com/jquery-3.6.0.min.js'
export default window.jQuery.noConflict(true)

This will remove global variables introduced by jQuery and export jQuery object as default.

Then use it in your script:

@hasinhayder
hasinhayder / script.sh
Created January 8, 2022 20:26
Mechanical Keyboard Key Not Repeating Problem Fixed in Mac
defaults write -g ApplePressAndHoldEnabled -bool false
@hasinhayder
hasinhayder / mousewheel.sh
Created January 5, 2022 15:14
imwheel config
#!/bin/bash
# Version 0.1 Tuesday, 07 May 2013
# Comments and complaints http://www.nicknorton.net
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.
@hasinhayder
hasinhayder / mutate.html
Created October 11, 2021 20:10
Mutate AlpineJS Object's Data in Different Ways
<html>
<head>
<title>Mutating AlpineJS Object Data</title>
</head>
<body>
<button onclick="changeDataByDispatchingEvent()">Mutate Alpine Object's Data Using Event</button>
<br>
<br>
<?php
/**
* WP SmartPay - bKash Gateway
*
* Plugin Name: WP SmartPay - bKash Gateway
* Plugin URI: https://wpsmartpay.com/
* Description:
* Tags: bKash
* Version: 0.1
.flex-grid {
display: flex;
flex-flow: wrap;
}
.col-1 {flex: 0 0 8.3333%}
.col-2 {flex: 0 0 16.6666%}
.col-3 {flex: 0 0 25%}
.col-4 {flex: 0 0 33.3333333%}
.col-5 {flex: 0 0 41.6666%}
@hasinhayder
hasinhayder / toUTF8Array.js
Created April 11, 2021 19:23 — forked from joni/toUTF8Array.js
toUTF8Array: Javascript function for encoding a string in UTF8.
function toUTF8Array(str) {
var utf8 = [];
for (var i=0; i < str.length; i++) {
var charcode = str.charCodeAt(i);
if (charcode < 0x80) utf8.push(charcode);
else if (charcode < 0x800) {
utf8.push(0xc0 | (charcode >> 6),
0x80 | (charcode & 0x3f));
}
else if (charcode < 0xd800 || charcode >= 0xe000) {
@hasinhayder
hasinhayder / README.md
Created April 8, 2021 18:15 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@hasinhayder
hasinhayder / README.md
Created April 8, 2021 00:55 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8