You need to first install GraalVM, and then set your PATH so that you
get the GraalVM binaries (incluing the GraalVM version of node
).
You can then install R and Ruby via
gu -c install org.graalvm.r
gu -c install org.graalvm.ruby
You need to first install GraalVM, and then set your PATH so that you
get the GraalVM binaries (incluing the GraalVM version of node
).
You can then install R and Ruby via
gu -c install org.graalvm.r
gu -c install org.graalvm.ruby
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This page is no longer maintained, go to https://help.vivaldi.com/article/html5-proprietary-media-on-linux/ for help
# perform a fresh install of Ubuntu 17.10 | |
# upgrade the kernel to v4.13.10 | |
mkdir ~/kernel-v4.13.10 | |
cd ~/kernel-v4.13.10 | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
sudo dpkg -i *.deb |
#!/usr/bin/env bash | |
function contains { | |
local e match="$1" | |
shift | |
for e; do [[ "$e" == "$match" ]] && return 0; done | |
return 1 | |
} | |
function remove_toplevel { |
function md5cycle(x, k) { | |
var a = x[0], b = x[1], c = x[2], d = x[3]; | |
a = ff(a, b, c, d, k[0], 7, -680876936); | |
d = ff(d, a, b, c, k[1], 12, -389564586); | |
c = ff(c, d, a, b, k[2], 17, 606105819); | |
b = ff(b, c, d, a, k[3], 22, -1044525330); | |
a = ff(a, b, c, d, k[4], 7, -176418897); | |
d = ff(d, a, b, c, k[5], 12, 1200080426); | |
c = ff(c, d, a, b, k[6], 17, -1473231341); |
# vim:fileencoding=utf-8:ft=conf | |
# Font family. You can also specify different fonts for the | |
# bold/italic/bold-italic variants. By default they are derived automatically, | |
# by the OSes font system. Setting them manually is useful for font families | |
# that have many weight variants like Book, Medium, Thick, etc. For example: | |
# font_family Operator Mono Book | |
# bold_font Operator Mono Thick | |
# bold_italic_font Operator Mono Medium | |
font_family Hack |
function reverseStr(str) { | |
if (str.length <= 1) return str; | |
var firstChar = str[0]; | |
var restStr = str.substr(1); | |
return (restStr.length > 1 ? reverseStr(restStr) : restStr) + | |
firstChar; | |
} |
// Lazy (=on-demand) zip() | |
for (const [i, x] of zip(naturalNumbers(), naturalNumbers())) { | |
console.log(i, x); | |
if (i >= 2) break; | |
} | |
// Output: | |
// 0 0 | |
// 1 1 | |
// 2 2 |
vim -D # starts vim in a step-debugger mode | |
:h map-listing # show information about key bindings that have been mapped by either your .vimrc or other scripts | |
:scriptnames # shows list of sourced script names, in the order they were sourced | |
:set runtimepath? # shows list of directories which will be searched for runtime files | |
:verbose set <option>? # shows where <option> was last set (e.g. :verbose set history?) | |
:set rtp+=<path> # allows appending <path> to the runtimepath variable | |
# example mappings I use, and last item demonstrates a bug... | |
:map \\\ # mapped to a Commentary plugin command |