Skip to content

Instantly share code, notes, and snippets.

View elPytel's full-sized avatar

Jaroslav Körner elPytel

View GitHub Profile
@shaybensasson
shaybensasson / install-obsidian.sh
Created July 10, 2021 07:02
Installing Obsidian (an advanced markdown editor) on Ubuntu
#!/usr/bin/env bash
# see https://forum.obsidian.md/t/gnome-desktop-installer/499
set -euo pipefail
icon_url="https://cdn.discordapp.com/icons/686053708261228577/1361e62fed2fee55c7885103c864e2a8.png"
#dl_url=${1:-}
dl_url=$( curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest \
| grep "browser_download_url.*AppImage" | tail -n 1 | cut -d '"' -f 4 )
@starlinq
starlinq / onedrive.md
Last active October 24, 2025 05:20
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
layout title tags date
post
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
ubuntu-18.04, ubuntu-20.04
2020-04-23

There are many instructions to syncronize your files with OneDrive cloud-based storage in Linux. However they typically address multiple Linux distributions that often causes a confusion or an use of some commands which have not been actually tested before publishing. This instruction is for Ubuntu 18.04 and 20.04 (64 bit) only.

In order to install onedrive, first you need to install some dependencies and set up git.

@NikkSaan
NikkSaan / n900-battery-monitor
Last active June 1, 2025 11:31
Battery protection for the nokia n900 running PostmarketOS
#!/bin/sh
# Battery protection for the nokia n900
# When battery level falls below 8% gives led notification.
# When battery level falls below 6% powers off the device.
#
# To use it, place the script in `/sbin`, make it executable
# `sudo chmod +x /sbin/n900-battery-monitor`, then add
# `::respawn:/sbin/n900-battery-monitor` to /etc/inittab,
# or create a service for it.