Skip to content

Instantly share code, notes, and snippets.

View MatiasPujado's full-sized avatar
Improving skills

Matias Pujado MatiasPujado

Improving skills
View GitHub Profile
@MatiasPujado
MatiasPujado / Chromium Linux.md
Created December 10, 2023 05:11 — forked from marians/Chromium Linux.md
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb
@MatiasPujado
MatiasPujado / plex_media_permissions_4_noobies.md
Created January 15, 2023 23:46 — forked from pjobson/plex_media_permissions_4_noobies.md
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@MatiasPujado
MatiasPujado / MEP.xml
Created December 29, 2022 03:33
Application config to run MEP Project
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="MEP" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="ar.com.bbva.arq.mep.MepSpringBootSamLocalApplication" />
<module name="mep" />
<option name="PROGRAM_PARAMETERS" value="--spring.profiles.active=local" />
<option name="VM_PARAMETERS" value="-Dserver.port=8081" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
@MatiasPujado
MatiasPujado / launch.json
Last active February 12, 2023 16:23
.vscode/launch.json Debugging Profile pointing to port 8081
{
"configurations": [
{
"type": "java",
"name": "Launch Current File",
"request": "launch",
"mainClass": "${file}",
"projectName": "mep",
"args": "--spring.profiles.active=local",
"vmArgs": "-Dserver.port=8081"
@MatiasPujado
MatiasPujado / settings.json
Last active February 8, 2023 01:26
VSCode User Settings
{
// VSCode
"extensions.ignoreRecommendations": true,
"files.autoSave": "onFocusChange",
"liveServer.settings.donotVerifyTags": true,
"redhat.telemetry.enabled": true,
"rsp-ui.enableStartServerOnActivation": [
{
"id": "redhat.vscode-community-server-connector",
"name": "Community Server Connector",
@MatiasPujado
MatiasPujado / settings.json
Last active February 8, 2023 01:25
.vscode/settings.json VSCode Workspace Settings
{
//VSCode
"extensions.ignoreRecommendations": true,
"files.autoSave": "onFocusChange",
"liveServer.settings.donotVerifyTags": true,
"redhat.telemetry.enabled": true,
"rsp-ui.enableStartServerOnActivation": [
{
"id": "redhat.vscode-community-server-connector",
"name": "Community Server Connector",
@MatiasPujado
MatiasPujado / nvm-commands
Created December 25, 2022 17:44
NVM list of commands
// Install a specific version number
nvm install 8.0.0
// Install the latest LTS version
nvm install --lts
// Use the latest available 8.0.x release
nvm use 8.0
// Use the latest LTS version
nvm use --lts
// Run app.js using node 6.10.3
nvm run 6.10.3 app.js
@MatiasPujado
MatiasPujado / generate-ssh-key.sh
Created December 2, 2022 03:10 — forked from denisgolius/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@MatiasPujado
MatiasPujado / multiple-ssh-keys-git.adoc
Created August 30, 2022 16:47 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.