Skip to content

Instantly share code, notes, and snippets.

View eftakhairul's full-sized avatar
💭
writing code for spaceship :P

Md Eftakhairul Islam eftakhairul

💭
writing code for spaceship :P
View GitHub Profile
@eftakhairul
eftakhairul / s3_download.sh
Created December 25, 2023 22:21
Download with authentication from private s3 bucket
#!/usr/bin/env bash
# Download a file from s3 without any 3rd party tools
# thanks https://www.gyanblog.com/aws/how-upload-aws-s3-curl/
file_path=$1
bucket=$2
set -eu pipefail
# about the file
filepath="/${bucket}/${file_path}"
@eftakhairul
eftakhairul / normcore-llm.md
Created September 1, 2023 14:19 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@eftakhairul
eftakhairul / mac-tweaks.md
Created March 20, 2023 02:59 — forked from matthiasak/mac-tweaks.md
My Favorite Mac Tweaks

Skip verifying disk images

defaults write com.apple.frameworks.diskimages skip-verify true

Always hide the Desktop

defaults write com.apple.finder CreateDesktop false; killall Finder

Make terminal logins fast

touch ~/.hushlogin

Disable most animations

@eftakhairul
eftakhairul / markdown-details-collapsible.md
Created March 20, 2023 01:57 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
@eftakhairul
eftakhairul / fuckyou-gmail.en.md
Created September 24, 2022 18:57 — forked from dxdxdt/fuckyou-gmail.en.md
What to do when Gmail marks all the mails from your server as spam

What to do when Gmail marks all the mails from your server as spam

If you're self-hosting your services and having trouble getting your emails through Gmail and infuriated by Google's non-existent support, you're not the only one. I'd like to share my experiences trying to get it sorted out.

I'm the author of the post above. You can tell how arrogant Google employees are from all the previous posts he made in the past.

In this article I'm going to walk you through process of creating Wordpress plugins. First I'm going to talk about some of the basic concepts in Wordpress plugin development like the actions, hooks, and API's that makes up Wordpress. Then were going to build a plugin where we apply some of the concepts and best practices in developing Wordpress plugins.

###Prerequisites

In order to fully benefit from this tutorial you should have a basic knowledge on PHP. As Wordpress is running on PHP and most of the code that we will be writing will be on PHP. A little bit of knowledge on HTML, CSS and JavaScript is also helpful but not required for this tutorial.

@eftakhairul
eftakhairul / commit-message.md
Last active March 7, 2022 05:25
GIT Commit Message

Commit Messages

Format: <type>(<scope>): <subject>

<scope> is optional

Example

fix(middleware): ensure Range headers adhere more closely to RFC 2616
@eftakhairul
eftakhairul / Makefile
Created February 2, 2021 18:55 — forked from kwilczynski/Makefile
Makefile for my Go projects (an example).
SHELL := /bin/bash
REV := $(shell git rev-parse HEAD)
CHANGES := $(shell test -n "$$(git status --porcelain)" && echo '+CHANGES' || true)
TARGET := packer-provisioner-itamae-local
VERSION := $(shell cat VERSION)
OS := darwin freebsd linux openbsd
ARCH := 386 amd64