Skip to content

Instantly share code, notes, and snippets.

View adessein's full-sized avatar

Arnaud Dessein adessein

View GitHub Profile
@adessein
adessein / run-jar-as-a-service.md
Created January 25, 2020 21:08 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &
@adessein
adessein / pipgitcommands.md
Last active January 8, 2020 14:15
Usefull pipgit commands

Normal git workflow

git checkhout -b new_feature
git add feature.py
git commit
git push origin new_feature
<Merge on GitLab/git hub>
git checkout master
git fetch master
git reset --hard origin/master
@adessein
adessein / git_subtree.md
Last active September 25, 2019 19:33
Git subtree

This tutorial is inspired from this post on stackoverflow
I explain here how I subtreed the aircraft Citation X from the PAF Team addons repository

Definitions

There will be 3 branches involved:

  • master the local+remote master branch containing my version of the aircraft.
  • upstream-master the local branch tracking the entire upstream PAF addons repository.
  • upstream-CitationX the local+remote split branch, contains only the part of the upstream repository that is related to CitationX. This branch is a kind of inteface/filter.
@adessein
adessein / liveplt.py
Created May 16, 2019 20:43
Matplotlib live graph
# Solution 1 - to be tested
# Source : # https://www.youtube.com/watch?v=ZmYPzESC5YY
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import stype
style.use('fivethirtyeight')
fig = plt.figure()