git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#!/bin/bash | |
# | |
# generate a Markdown version of a word document. Goes in separate folder, since | |
# images are extracted and converted as well (separate folder avoids naming clashes). | |
# | |
# REQUIREMENTS: pandoc | |
# | |
# | |
# with pandoc | |
# --extract-media=[media folder] |
# See: https://emby.media/community/index.php?/topic/22889-emby-behind-a-reverse-proxy-remote-control-issue/ | |
server { | |
server_name mydomain; | |
listen 80; | |
rewrite ^ https://mydomain$request_uri? permanent; | |
} | |
server { |
# 1. First of all of course get Manjaro: | |
https://manjaro.org/get-manjaro/ | |
# I recommend using Etcher to copy the image to your USB: | |
https://etcher.io/ | |
# 2. Before installing make sure: | |
# - Secure boot is disabled in BIOS | |
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID | |
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
# The get_sentiws function will download the zip-file with the SentiWS dictionary, | |
# unzip it and return a data.table. | |
library(data.table) | |
get_sentiws <- function(){ | |
sentiws_tmp_dir <- file.path(tempdir(), "sentiws") | |
if (!file.exists(sentiws_tmp_dir)) dir.create(sentiws_tmp_dir) | |
sentiws_zipfile <- file.path(sentiws_tmp_dir, "SentiWS_v1.8c.zip") |
fetch( | |
"https://outlineapi.com/v3/parse_article?source_url=" + | |
encodeURIComponent(window.location) | |
) | |
.then(res => res.json()) | |
.then(body => { | |
if (body.error) { | |
return alert(`Outline Bookmarklet Error: ${body.error}`); | |
} | |
window.location.href = `https://outline.com/${body.data.short_code}` |
# install current version of cwbtools | |
library(drat) | |
drat::addRepo("polmine") | |
install.packages("cwbtools") | |
# Reencode installed corpus | |
library(polmineR) |
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.