Skip to content

Instantly share code, notes, and snippets.

View mbprtpnix's full-sized avatar

mbprtpnix

View GitHub Profile
$ npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm
@mbprtpnix
mbprtpnix / uninstall_npm_globally.sh
Created February 8, 2021 08:53 — forked from akhawaja/uninstall_npm_globally.sh
Uninstall NPM modules globally including NPM itself
#!/usr/bin/env bash
npm ls -gp | awk -F/ '/node_modules/ && !/node_modules.*node_modules/ {print $NF}' | xargs npm -g rm
@mbprtpnix
mbprtpnix / global-npm-modules.md
Created February 8, 2021 08:54 — forked from brycemcconnell/global-npm-modules.md
Global npm modules without using sudo
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'

Add to ~/.profile

export PATH=~/.npm-global/bin:$PATH
source ~/.profile
============= FOR LINUX =============
Taken from:
https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
1. Create new global folder : mkdir GlobalNodeModule
2. Create .npm-packages file inside : mkdir GlobalNodeModule/.npm-packages
3. Edit npmrc to point to your new global folder:
prefix=/path/to your/folder/.npm-packages # space in folder name is a non-issue
@mbprtpnix
mbprtpnix / arch-sway.md
Created February 15, 2021 08:53 — forked from noamsan/arch-sway.md
Arch Loonix Installation
@mbprtpnix
mbprtpnix / arch-usb-uefi.md
Created February 15, 2021 08:54 — forked from elerch/arch-usb-uefi.md
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
@mbprtpnix
mbprtpnix / arch-rpi-64-full-disk-encryption-ssh-unlock.md
Created February 15, 2021 08:54 — forked from gea0/arch-rpi-64-full-disk-encryption-ssh-unlock.md
Tutorial for installing a 64-bit Arch Linux ARM system on the Raspberry Pi 3B+, with an encrypted root filesystem, and the option to remotely unlock it via a pre-boot SSH daemon.

Arch Linux ARM 64 on Raspberry Pi 3 B+ With Full Disk Encryption And SSH Unlock: 2018 Edition

There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.

Differences to the 32-bit arch linux arm version:

  • probably better performance
  • can run 64-bit software
  • comes without the proprietary video-driver blobs
@mbprtpnix
mbprtpnix / arch_installation.md
Created February 15, 2021 08:55 — forked from eltonvs/arch_installation.md
Arch Linux step to step installation guide

Arch Linux Installation Guide

This guide will show step-by-step how to Install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre installation
    • Set Keyboard Layout
    • Check boot mode
  • Update System Clock
@mbprtpnix
mbprtpnix / ArchLinux.md
Created February 15, 2021 08:55 — forked from PillTime/archlinux.md
Installing Arch Linux

Installing Arch Linux

Some computers don't work out of the box. For example, my laptop needs the kernel parameter pci=nommconf to be able to use the wifi.




Before we start

@mbprtpnix
mbprtpnix / archlinuxinstall.md
Created February 15, 2021 08:57 — forked from okaminoseishin/archlinuxinstall.md
Arch Linux step-by-step installation guide

Disclaimer

This guide created mostly as a summarizing note of installation process rather than guide itself, so it may lack descriptions and may not be applicable in some specific cases. Mostly based on [Arch Wiki][arch-wiki] and four years of Arch daily usage, some concepts and solutions taken from [this][bullet-proof] incredible guide. It is highly recommended and sometimes important to carefully read and understand it; all it's assumptions also applicable in this guide, such as risk of data loss understanding.

Preparation

Firstly, define some environment variables - to avoid mistyping and save some time:

Again: follow this guide only if you are fully understand what are you going to do. I am not responsible for any losses and software or hardware damage.