Skip to content

Instantly share code, notes, and snippets.

View kasir-barati's full-sized avatar
Dedicated to achieve his goals

Mohammad Jawad (Kasir) Barati kasir-barati

Dedicated to achieve his goals
View GitHub Profile
@vitaly-t
vitaly-t / retry-async.ts
Last active April 13, 2025 09:21
retry-async
/**
* Retry-status object type, for use with RetryCB.
*/
export type RetryStatus<D = unknown> = {
/**
* Retry index, starting from 0.
*/
readonly index: number,
/**
@kasir-barati
kasir-barati / .prettierignore
Last active March 6, 2023 15:52
My public prettier ignore which I use in my projects
Docker*
**/*.tsbuildinfo
.DS_STORE
# Angular app specific
.angular
/dist/
/build/
@kasir-barati
kasir-barati / .prettierrc
Last active March 6, 2023 15:52
My default prettierrc file
{
"arrowParens": "always",
"useTabs": false,
"bracketSpacing": true,
"endOfLine": "lf",
"printWidth": 70,
"quoteProps": "consistent",
"tabWidth": 4,
"trailingComma": "all",
"semi": true,
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@devynspencer
devynspencer / ansible-github.yml
Last active September 4, 2024 10:42
Example playbook for cloning a private git repository with Ansible.
---
hosts: all
tasks:
- name: add github ssh key
copy: >
src=files/id_rsa.github
dest=/root/.ssh/id_rsa.github
owner=root
group=root