Run Locally Installed NPM Packages Without Global Install

There are a lot of tools in the npm ecosystem that you need to run in your project. For example, firebase-tools or heroku. If you read the documentation, those tools require you to install them globally: npm install -g firebase-tools Now you can execute the binary from everywhere, for example: firebase init. But it’s recommended to install packages locally instead of globally 1. Updating a global package would make all your projects use the new release, and as you can imagine this might cause nightmares in terms of maintenance, as some packages might break compatibility with further dependencies, and so on.
Read more →

Friday Picks 051

Read more →

TIL About How To Create Ordered Lists in Vim Quickly

Today I found a cool trick on the Vim SubReddit: how to quickly create ordered lists. Here’s a screen-cast by rnevius: Steps Let’s say that you have a list: one item another item it’s an item Use <C-v> (CTRL + V), then I to select all lines at the start of the line and add a 0. in front of each: 0. one item 0. another item 0.
Read more →

Spotify in the Terminal With spotify-tui and spotifyd

Spotify TUI is a Spotify client for the terminal, written in Rust. In conjuction with Spotifyd, a lighteight Unix daemon, you’ll get a fully-featured terminal application that connects to your Spotify Premium account. Install Spotifyd Installation There are pre-build libraries for different operating systems. For Arch, you can either use the spotifyd or spotifyd-full. I use pulseaudio as my sound server, so I chose spotifyd-full from the AUR: yay -S spotifyd-full Installation takes a while.
Read more →

Tuesday Picks 004

Read more →

Get Your Touchpad Working on Manjaro i3 (2020)

I’ve re-installed my laptop from scratch with Manjaro Architect, using the i3 community edition. My laptop has a touchpad, an ETPS/2 Elantech. It doesn’t work out of the box. i3 is a tiling window manager, so I have to find a way to configure the touchpad. For i3, it makes sense to use the X11 configuration. Create a new file in the folder /etc/X11/xorg.conf.d/. In my case, there already was a file called 30-touchpad.
Read more →

TIL About React Native Expo

Today I learned about Expo, a toolkit/SDK for React Native development. Expo makes it easy to bootstrap a React Native code-base without having to install Android Studio or other tool-chains. Node.js and npm (or yarn) are the only requirements. Install via npm install expo-cli –global. Create a new project: expo init myProject && cd myProject expo start This will open up a browser window (“Expo Client”). Here you can open a new emulator, even a web emulator.
Read more →

TIL Copy With Clipboard in Vim Over Ssh

Today I tried using Vim over SSH on a remote machine. I needed to copy some configuration to the server. I opened Vim in the terminal (via SSH): vim config.txt I wanted to paste into the Vim buffer. I tried to use the "+p command in normal mode to paste from the system clipboard. Unfortunately, that didn’t work. [Solution][stackexchange]: The “clipboard” is a feature of X11, so you will need to enable “X11 forwarding” for the SSH connection in “trusted” mode:
Read more →

Friday Picks 050

Here are some links: Code Tetris: JavaScript Tutorial for Beginners - learn the basics of JavaScript by coding a Tetris game from scratch Beginner’s Guide to React w/ Hooks (2020) Free Course - a 2-hour free YouTube video by popular instructor Colt Steele Go GraphQL: Introduction to building GraphQL API in Golang #1 - a multi-part tutorial series Design Resources For Developers - a curated list of free design and UI resources by Brad Traversy [AskJS] Has anyone used GraphQL for a large project and regretted it?
Read more →

Snagged Some Udemy Courses on Sale May 2020

Read more →