Skip to content

Instantly share code, notes, and snippets.

View abdfnx's full-sized avatar
👨‍💻
Working on Paber AI

Abdfn abdfnx

👨‍💻
Working on Paber AI
View GitHub Profile
@abdfnx
abdfnx / git-io-custom-url.md
Created February 4, 2022 12:15 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@abdfnx
abdfnx / fetch
Last active November 14, 2021 16:40
Fetch Node Binary
#!/usr/bin/env bash
# inputs
# $1 OUTPUT_DIR
# $OS
# $ARCH
# $NODE_VERSION
set -ex
@abdfnx
abdfnx / How do I fix “$'\r': command not found” errors running Bash scripts in WSL?.md
Created August 16, 2021 12:02
How do I fix “$'\r': command not found” errors running Bash scripts in WSL?
  1. Inside WSL:
sudo apt-get install dos2unix
  1. Then,
dos2unix FILE_NAME

Hi there, The developers always use the terminal, but it is boring and has no colors or shapes. Today we will transform our terminals into a wonderful, colorful, supportive terminal that offers suggestions and has a memory, we'll do it by [OMZ][omzUrl] and design it by [PowerLevel10k][p10kUrl]...

Pre-requisites

if you're using Windows, you can install and configure [WSL][wslUrl]

and I recommended to use Ubuntu or Debian wsl plugin