Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#https://github.com/alvr-org/ALVR/wiki/Building-From-Source
cargo xtask prepare-deps --no-nvidia
cargo xtask build-server --release
export JAVA_HOME=/usr/lib/jvm/default/
export ANDROID_HOME=/opt/android-sdk/
export ANDROID_NDK_HOME=/opt/android-sdk/ndk/25.2.9519653/
@rvasilev
rvasilev / Dockerfile
Last active April 3, 2023 18:57 — forked from cwillsey06/Dockerfile
Compile ALVR client using Docker
# syntax=docker/dockerfile:1.3
FROM archlinux AS build
ARG VERSION="latest"
RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
pacman -Syu --noconfirm
RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
pacman -Sy --needed --noconfirm base-devel cmake git unzip rustup cargo jre11-openjdk-headless jdk8-openjdk clang python

How to setup a practically free CDN

I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.

It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.

Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].

Taking on the big boys with B2

# Arch Notes
## Docker
systemd-shutdown hangs on containerd-shim
Resolution -> https://github.com/containerd/containerd/issues/386#issuecomment-934538400
@rvasilev
rvasilev / git-branch-to-favicon.js
Created March 25, 2020 16:36 — forked from tigt/git-branch-to-favicon.js
Creates an SVG string that can be used as a favicon across different Git branches. Actually getting this into the browser is sadly project-specific.
const { execSync } = require('child_process')
const { createHash } = require('crypto')
const invertColor = require('invert-color')
const branchName = execSync('git rev-parse --abbrev-ref HEAD')
const hash = createHash('sha256')
hash.update(branchName)
const color = '#' + hash.digest().toString('hex').substring(0, 6)
const invertedColor = invertColor(color, true)
@rvasilev
rvasilev / gist:1cbed0b38300098d6c5ed0bded238c05
Created September 5, 2019 13:41 — forked from plepe/gist:52ecc9f18efb32c68d18
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
@rvasilev
rvasilev / configure.sh
Created September 23, 2018 09:39 — forked from dasgoll/configure.sh
Kubernetes-weave-ubuntu.sh
#!/bin/bash
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get dist-upgrade -y
apt-get install -y docker.io
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
@rvasilev
rvasilev / 0-README.md
Last active March 22, 2022 09:54 — forked from abhijeetchopra/0-README.md
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Docs

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Docs in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.

#cloud-config
hostname: rcluster00
ssh_authorized_keys:
- ssh-rsa #
#coreos:
# etcd:
# discovery: https://discovery.etcd.io/#
@rvasilev
rvasilev / PKGBUILD
Last active December 8, 2017 10:03
Arch Linux bugwarrior 1.5.1 PKGBUILD with AUR dependencies
# Maintainer: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# Maintainer: Roman Vasilev <2rvasilev@live.ru>
pkgname=bugwarrior
pkgver=1.5.1
pkgrel=1
pkgdesc="pull issues from issue trackers into taskwarrior (GitHub, GitLab, Bitbucket, etc.)"
arch=(any)
url="https://bugwarrior.readthedocs.io"
license=('GPL3')