Skip to content

Instantly share code, notes, and snippets.

View lhoupert's full-sized avatar
🏠
Working from home

Loïc Houpert lhoupert

🏠
Working from home
View GitHub Profile
@lhoupert
lhoupert / openvpn-server-and-monitoring-docker-for-RPI.md
Last active March 15, 2024 16:32
How to run OpenVPN-server and monitoring on RaspberryPi using Docker
@lhoupert
lhoupert / 1. linux utilities.md
Created April 11, 2023 23:18 — forked from Integralist/1. linux utilities.md
Different Linux utility commands (e.g. top, ps, strace, lsof, netstat, ifconfig, iftop, iptraf, tcpdump, wireshark)

Start up a container (whichever Linux flavour takes your fancy):

docker run -it ubuntu /bin/bash
docker run -it centos /bin/bash
  • top: check what CPU and Memory running processes are utilising
  • ps: see what processes are running
  • strace: monitor interactions between processes
@lhoupert
lhoupert / telepac_scraper.py
Created February 27, 2023 14:57
Short script to test web scraping on the Telepac Website
# Script to test web scraping on Telepac website.
# Adapted from blog article (https://www.scrapingbee.com/blog/selenium-python/)
# L Houpert Dec. 2020
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
import time

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@lhoupert
lhoupert / PublishGitHubPages.md
Last active August 13, 2020 16:15
How to publish the content of a git repository online
  1. Make sure that the master branch of the repository is up to date
  2. Make sure that the python package gh-import is installed (website)
  3. From the master branch of the directory call ghp-import and point it to the html directory my_html_dir containing the HTML files to be exported:
ghp-import -n -p -f my_html_dir

Useful additional information can be found on the jupyter-book website

@lhoupert
lhoupert / gitworkflow.md
Last active January 21, 2021 15:10
Notes on Git workflow for contributing to open source repositories

Notes from Aaron Meurer's tutorial on the git workflow

Cloning and forking the repository

  1. Clone the repository.
git clone clone-url
  1. Fork the repo on GitHub to your personal account. Click the Fork button on the main repo page.

  2. Add your fork as a remote. This remote will be named after your github username. Go to the fork of the user repository (e.g. https://github.com/username/xxxx - replace username with the GitHub username-), and copy the clone url as in step 1. cd to the clone from step 1 and run

@lhoupert
lhoupert / convertxlstoyaml.py
Created July 13, 2020 18:00
Convert xls spreadsheet to yaml file
from pathlib import Path
import ruamel.yaml
import pandas as pd
yaml = ruamel.yaml.YAML()
df = pd.read_excel('../scopus_vexport_with_manualedit_202008.xlsx')
print (df)
# df.columns returns: