Skip to content

Instantly share code, notes, and snippets.

View mirashif's full-sized avatar

Mir Ashif mirashif

View GitHub Profile

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 / 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.
@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 / 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 / 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 / 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 / webdev_online_resources.md
Created July 16, 2018 15:05 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)