git clone git@github.com: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
Facebook does not provide an easy way to get your saved links out of its system. Here's a quick script that does that for you.
Go to your Saved links page and make sure you scroll way down to the bottom so that all your saved items are loaded. This script will generate a simple HTML page with your links, along with an Add to Pinboard action.
Drag this to your bookmarks toolbar:
#!/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) |