Skip to content

Instantly share code, notes, and snippets.

Avatar
🏰
Working from home

Md.Muhtasim Fuad fuadnafiz98

🏰
Working from home
View GitHub Profile
View bash template
#!/bin/bash
set -euo pipefail
cd ${0%/*}
trap cleanup EXIT
function cleanup() {
# cleanup commands
View Inter CSS file
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("Inter-Thin.woff2?v=3.19") format("woff2"),
url("Inter-Thin.woff?v=3.19") format("woff");
}
@font-face {
font-family: 'Inter';
@fuadnafiz98
fuadnafiz98 / index.html
Created Jun 26, 2021
tailwindcss loading spinner
View index.html
<span class="grid place-content-center p-4">
<svg class="animate-spin -ml-1 mr-3 h-6 w-6 text-gray-60000" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
</span>
<!-- link: https://play.tailwindcss.com/rZuSKLpKhb -->
@fuadnafiz98
fuadnafiz98 / bash
Created May 18, 2021
Pandoc to PDF conversion
View bash
#!/bin/bash
pandoc --pdf-engine=wkhtmltopdf \
README.md -o out.pdf \
-V fontsize=16pt \
-V 'mainfont:JetBrains Mono' \
-V 'monofont:JetBrains Mono' \
-V 'linkcolor:#3b82f6' \
-V 'monobackgroundcolor:#F3F4F6' \
-V 'papersize:a4' \
@fuadnafiz98
fuadnafiz98 / nerdtree-alternative.vim
Created Mar 29, 2021
NerdTree alternative in 21 lines of code
View nerdtree-alternative.vim
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 20
let g:NetrwIsOpen=0
function! ToggleNetrw()
if g:NetrwIsOpen
let i = bufnr("$")
while (i >= 1)
@fuadnafiz98
fuadnafiz98 / transparent.vim
Last active Dec 11, 2021
vim transparent background
View transparent.vim
" for transparent background
function! AdaptColorscheme()
highlight clear CursorLine
highlight Normal ctermbg=none
highlight LineNr ctermbg=none
highlight Folded ctermbg=none
highlight NonText ctermbg=none
highlight SpecialKey ctermbg=none
highlight VertSplit ctermbg=none
highlight SignColumn ctermbg=none
@fuadnafiz98
fuadnafiz98 / nginx.conf
Created Dec 26, 2020 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
View nginx.conf
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@fuadnafiz98
fuadnafiz98 / .eslintrc.js
Created Jul 9, 2020 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
View Window Terminal
// THIS IS AN AUTO-GENERATED FILE! Changes to this file will be ignored.
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": false,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "system",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
View Class Notes
/** Week - 02
* Hash Table
* @DataStructure
*/
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>