Skip to content

Instantly share code, notes, and snippets.

View mirashif's full-sized avatar

Mir Ashif mirashif

View GitHub Profile
@mirashif
mirashif / webdev_online_resources.md
Created July 16, 2018 15:05 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@mirashif
mirashif / ubuntu-post-install-todo.md
Last active February 2, 2022 08:19
This is my to do list after Ubuntu/Linux install. Update & Upgrade is a must to do. Small tweaks and Themes are nice. Apps and extensions depend on your preference.

Update & Upgrade

  • [Recommended] Change to your local mirror first & update your system. Update is very important for any security patches or bug fixes.
    sudo apt update && sudo apt upgrade

Optional Online accounts and setups:

@mirashif
mirashif / Array Iteration Methods in JavaScript.md
Last active November 1, 2020 10:20 — forked from ljharb/array_iteration_thoughts.md
Array iteration methods summarized

While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.

Intro

JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it much simpler to think about both the old list and the new one, what they contain, and

@mirashif
mirashif / node_nginx_ssl.md
Created September 24, 2019 12:55 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@mirashif
mirashif / vscode_shortcuts.md
Created November 1, 2019 16:43 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

Official List of all commands

Open/View

@mirashif
mirashif / VMware Tools on Manjaro.sh
Last active June 7, 2021 14:43
This script will install the VMware Tools on Manjaro, ArchLinux or Bridge guest. Credit: WoodyZ from communities.vmware.com for his help.
#!/bin/bash
#
# Script: vmtools-4-arch-and-co.sh
# Date: july 31, 2013
# Release: v1 - multi arch distros
# Author: Fnux
# e-mail: [email protected]
# Licence: CC-By-Sa
#
# Credit: WoodyZ from communities.vmware.com for his help.

Summarised steps:

Open terminal in the script dir

  • sudo apt install wget curl lzip tar unzip squashfs-tools

  • chmod +x install-playstore.sh

  • ./install-playstore.sh

@mirashif
mirashif / kde-plasma-on-vmware.md
Last active July 5, 2020 18:02
KDE Plasma on VMWare

I've figured a few things out I've not seen posted anywhere so I will conclude this thread with a way that works for me. I've seen posts all over with people that gave up on almost any distro with KDE plasma in a VMWare guest.

tl;dr - switch to Wayland. I am not well versed in the merits/deficits of using Wayland but in my case it allows everything to work correctly using KDE (Kubuntu and Manjaro plasma anyway) in a VM guest.

Install the package plasma-wayland-session. Log out. At the bottom of the default log in screen, there's a menu called "Desktop Session". Select Plasma (Wayland) there and login. As a precaution, you should turn off automatic login until you verify it works correctly.

If it all works in the GUI, run Login Screen (SDDM). On the Advanced page change Auto login to reflect the Wayland session.

@mirashif
mirashif / typescript-basics.md
Created August 28, 2020 13:51
TypeScript basic syntax to get started building apps.

Types

let a: number,
  b: boolean,
  c: string,
  d: any,
  e: number[] = [1, 2, 3],
  f: any[] = [1, true, 'a', false];

Enumerated type

@mirashif
mirashif / probhat.md
Last active May 3, 2023 14:12
Probhat unusual keyboard layout cheatsheet

স্বরবর্ণঃ

আ = v

ঈ = E

ঊ = W

ঋ = V