Skip to content

Instantly share code, notes, and snippets.

View ramos-ph's full-sized avatar
🤔
Solving problem on line 37..

Pedro Ramos ramos-ph

🤔
Solving problem on line 37..
View GitHub Profile

Fixing Ruby OpenSSL error RVM on Debian 12

It's possible to get an OpenSSL error when running bundle after you installed Ruby using rvm.

To fix it, you'll need first need Homebrew installed. Then, install the openssl package:

$ brew install openssl

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@ramos-ph
ramos-ph / readme.md
Created March 9, 2023 20:25 — forked from ChriRas/readme.md
Set up default audio device on Ubuntu 20.04 LTS

Problem

I have a notebook connected to a port replicator. I want to use the build-in speakers and microfone and not the external ones. If I boot my notebook in my port replicator Ubuntu changes the devices to external.

Solution

  1. Find your internal speaker
pactl list short sinks
@ramos-ph
ramos-ph / configuring-prettier.md
Created November 25, 2021 23:47
Small guide on how to install and configure Prettier and integrate it on VS Code.

Setting up Prettier code formatter

Installing Prettier

$ npm install -D prettier

Setting up a Prettier file

@ramos-ph
ramos-ph / improve-git-history.md
Last active January 30, 2022 00:54
A small guide on how to use rebase to improve your git history

How to use git rebase to improve your commit history

Have your Git commit history ever looked like this?

$ git log --oneline

08f2a9f (HEAD -> develop) Add feature Z
4d79393 Add feature Y
fcf0194 Feature X finished
@ramos-ph
ramos-ph / setup-mongodb-with-docker.md
Last active October 11, 2021 21:08
Small guide explaining how to setup a local MongoDB instance using Docker or Docker Compose

Setting up a MongoDB instance with Docker

Using the Docker CLI

docker run -d --name local-mongo -p 27017:27017 mongo

When you're done, run:

@ramos-ph
ramos-ph / README-Template.md
Created July 30, 2020 15:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites