Skip to content

Instantly share code, notes, and snippets.

View Serveix's full-sized avatar

Elí López Serveix

View GitHub Profile
@Serveix
Serveix / install virtualenv ubuntu 16.04.md
Created August 30, 2022 02:50 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@Serveix
Serveix / nuxt-js-firebase-auth-and-cloud-firestore.md
Created December 26, 2021 22:30 — forked from isaumya/nuxt-js-firebase-auth-and-cloud-firestore.md
Nuxt JS: Keep user logged in with Firebase Auth and also fetch the necessary User data from Cloud Firestore and put it in your Vuex store if the user is already logged in before rendering the page

Nuxt JS: Keep user logged in with Firebase Auth and also fetch the necessary User data from Cloud Firestore and put it in your Vuex store if the user is already logged in before rendering the page

Step - 1

Install the required packages.

  • If you use npm npm i firebase firebase-admin cookies js-cookie

  • If you use yarn yarn add firebase firebase-admin cookies js-cookie

@Serveix
Serveix / cleanup.yml
Created September 13, 2021 14:35
Aritifacts cleaning
name: 'Artifacts Cleanup'
on:
schedule:
- cron: '0 1 * * *' # every night at 1 am UTC
workflow_dispatch:
jobs:
delete-artifacts:
runs-on: ubuntu-latest
steps:
@Serveix
Serveix / start_docker_registry.bash
Created September 8, 2021 18:41 — forked from u1i/start_docker_registry.bash
Start docker registry with letsencrypt certificates and Basic Auth
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# install letsencrypt
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
import gi
import time
from gi.repository import GObject, Gst
gi.require_version('Gst', '1.0')
Gst.init(None)
pipeline = Gst.Pipeline()
rpicamsrc = Gst.ElementFactory.make("rpicamsrc", "rpicam")
@Serveix
Serveix / nvidia.md
Created September 28, 2020 01:57 — forked from bitsurgeon/nvidia.md
install Nvidia driver on Ubuntu with Secure Boot

Install Nvidia Driver on Ubuntu 18.04.3

Secure Boot

This section applies to machines with Secure Boot, such as ThinkPad.

  1. Before installation, switch to "Discrete Graphics" in BIOS, if both Intel and Nvidia graphics are present.
  2. During installation, make sure to select the "Install third-party software for graphics and Wi-Fi hardware and addition media formats" in "Updates and other software" screen.
  3. Select "Configure Secure Boot", and set password.
  4. Continue Ubuntu installation as normal.
@Serveix
Serveix / README-badges.md
Created April 7, 2019 02:51 — forked from tterb/README-badges.md
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release