Skip to content

Instantly share code, notes, and snippets.

View fuadnafiz98's full-sized avatar
:octocat:

Md. Muhtasim Fuad fuadnafiz98

:octocat:
View GitHub Profile
# ~/.ssh/config
Host personal
User git
HostName github.com
IdentityFile ~/.ssh/github/id_ed25519
IdentitiesOnly yes
#!/bin/bash
set -euo pipefail
cd ${0%/*}
trap cleanup EXIT
function cleanup() {
# cleanup commands
@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 June 26, 2021 03:58
tailwindcss loading spinner
<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 23:03
Pandoc to PDF conversion
#!/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 March 29, 2021 17:05
NerdTree alternative in 21 lines of code
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 April 18, 2023 07:26
vim transparent background
" 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 December 26, 2020 14:55 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
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 July 9, 2020 19:31 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
{"lastUpload":"2020-07-11T21:12:08.346Z","extensionVersion":"v3.4.3"}