Skip to content

Instantly share code, notes, and snippets.

View gmolaire's full-sized avatar
👌
Perfecto

Guilliano Molaire gmolaire

👌
Perfecto
  • Korvaed
  • Montreal
View GitHub Profile
@greg-finley
greg-finley / run-lichess-dev-in-google-cloud.md
Last active July 21, 2020 03:07
Run Lichess dev in Google Cloud

Run Lichess dev in Google Cloud

Lichess is a popular open-source chess web site. The source is here and the development onboarding steps are here.

You can create a Google Cloud account for free and receive substantial free credits to play around with it.

Create your VM using a startup script

We will run on a VM with the Ubuntu 18.4 operating system. The file in this gist startup.sh can be saved to your local machine and referenced when you create an instance. Make sure to update the first line with your local whoami.

@tomfa
tomfa / signals.py
Last active November 16, 2023 00:29
Django Elasticsearch with Celery
from celery import shared_task
from django.db import models, transaction
from django.utils import timezone
from django_elasticsearch_dsl.apps import DEDConfig
from django_elasticsearch_dsl.registries import registry
from django_elasticsearch_dsl.signals import BaseSignalProcessor
from .. import utils
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active May 5, 2024 19:38
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
#!/usr/bin/env bash
echo "
----------------------
MONGODB
----------------------
"
# import mongodb 4.0 public gpg key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4