Skip to content

Instantly share code, notes, and snippets.

View bastinc's full-sized avatar

Christophe Bastin bastinc

  • Royal Belgian Institute of Natural Sciences
  • Belgium
View GitHub Profile
@bastinc
bastinc / Clean Samsung Galaxy A40 bloatwares
Created May 31, 2020 21:01 — forked from joaofl/Clean Samsung Galaxy A40 bloatwares
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
@bastinc
bastinc / pip-install-gdal.md
Created March 13, 2018 14:25 — forked from cspanring/pip-install-gdal.md
Installing GDAL in a Python virtual environment

Installing GDAL in a Python virtual environment

Get gdal development libraries:

$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install libgdal-dev

Create and activate a virtual environment:

Reverse proxy over 3G modem (draft)

We will explain how to configure a cubieboard running debian as a reverese proxy. The modules that will be used are wvdial and autossh

Credits goes to:

1. http://blog.rootshell.be/2015/02/19/my-little-pwnie-box/
2. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd
@bastinc
bastinc / Sync-a-fork.md
Last active February 25, 2016 12:36
Sync a fork repository

Sync the fork

List the current configured remote repository for your fork.

$ git remote -v

Specify a new remote upstream repository that will be synced with the fork.

$ git remote add upstream https://github.com/UMONS-GFA/ardas.git
@bastinc
bastinc / liste-commandes-utiles.md
Created January 11, 2016 14:45
Commandes utiles

df: Indiquer l'espace occupé par les systèmes de fichiers

du: Évaluer l'espace disque occupé par des fichiers

mdadm --detail /dev/md0: Obtenir les détails sur le raid

lsblk: Liste les disques durs et leurs partitions

@bastinc
bastinc / raspbian.md
Last active January 11, 2016 14:42
Créer une carte sd bootable avec Raspbian

Formater la carte sd

sudo fdisk /dev/sdX

# Créer une nouvelle table de partition
o
# Créer une nouvelle partition
n
# Choisir 1 et laisser tout par défaut

#Changer le type de partition

@bastinc
bastinc / install_pygimli.md
Last active January 8, 2016 14:20
Installer Pygimli

How to install Pygimli

For Python 2

Install dependancies

sudo apt-get install subversion git cmake mercurial libboost-all-dev libblas-dev liblapack-dev python-numpy python-matplotlib clang llvm gccxml doxygen sphinx-common python-setuptools

mkdir -p ~/src  

cd src