Skip to content

Instantly share code, notes, and snippets.

View enockseth's full-sized avatar

Enock Seth Nyamador enockseth

View GitHub Profile
@henrydatei
henrydatei / vcs-downloader.sh
Last active September 8, 2025 10:44
Download a video from Videocampus Sachsen
#file=$1
#videoname=$(echo "$file" | cut -d "." -f1)
#echo "$videoname"
touch playlist.txt
touch urllist.txt
key=$1
videoname=$2
#keystring=$(cat $file | grep -o -E "key=[0-9,a-z]+")

Computer Literacy for Geosciences

Draft TOC for a practical introduction to computing for Geosciences (most of it is probably applicable to other non-Computer Science fields)

The course should be agnostic towards specific platforms or products - Presented techniques should always cover the three main OSs (Win, Mac, Linux), and program code should be given in multiple languages (e.g. Python, R, JavaScript)

🟊 marks sections that can easily be skipped or moved to advanced courses

For more general info & license, see Meta

@sylsta
sylsta / QgisV3LayerRandomColor.py
Created February 13, 2019 18:30
QGIS3 : Automatic pyqgis categorized renderer classification on 'fieldname' field from 'layer' attribute table
from qgis.core import QgsVectorLayer, QgsField, QgsSymbol, QgsSimpleFillSymbolLayer, QgsRendererCategory, QgsCategorizedSymbolRenderer
def QgisV3LayerRandomColor(layer, fieldName):
"""
QGIS3 : Automatic pyqgis categorized renderer classification on 'fieldname' field from 'layer' attribute table
copyright : (C) 2019 by Sylvain T., CNRS FR 3020
Licence : Creative Commons CC-BY-SA V4+
Sources : https://gis.stackexchange.com/questions/226642/automatic-pyqgis-categorized-renderer-classification
:param layer: QgsVectorLayer
@kgjenkins
kgjenkins / readme.md
Last active January 14, 2025 20:26
Labels with callout lines in QGIS

Labels with callout lines in QGIS


UPDATE: As of October 2019, QGIS 3.10 has built-in support for label callout lines!


Callouts, sometimes called leader lines, are lines between labels and features on a map. They are useful when constraints of space force a label to be moved away from the

@BrinkerVII
BrinkerVII / ARCH_INSTALLATION_GUIDE.md
Last active March 12, 2024 23:11
Arch Linux Installation Guide

Note

This guide is out of date! Following this guide will leave you with a non-functioning system. You can still use this guide for inspiration, but please still do use the Official installation guide

Arch Linux installation guide

Hi there, this is a guide to install Arch Linux on your computer. I decided to write a guide because I find most other guides to be either too minimalistic or they have you set up some parts of the system in strange ways.

This guide is reference material for myself, as well as for other people who would like to install Arch for the first time.

General notes

@ElToro1966
ElToro1966 / r_ubuntu_18_04.sh
Last active April 25, 2025 23:32 — forked from pachadotdev/r_ubuntu_17_10.sh
Install R and RStudio on Ubuntu 18.04 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
@romanblanco
romanblanco / arch.sh
Last active February 8, 2022 20:31
Archlinux install notes
# Get ISO and verify signature
# - https://wiki.archlinux.org/index.php/Installation_guide#Verify_signature
# ============================
# https://www.archlinux.org/download/
gpg --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig
# Preparing bootable USB
# - https://wiki.archlinux.org/index.php/USB_flash_installation_medium#Using_basic_command_line_utilities
# ======================
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@atelic
atelic / i3exit
Created April 6, 2015 13:00
Lock and logout script for i3wm
#!/bin/sh
lock(){
i3lock
}
case "$1" in
lock)
lock
;;
logout)