- Install .NET sdk
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
then
sudo apt-get update; \
Take note of how the SD card is identified. | |
In my case it is /dev/sdb1. | |
Then: | |
sudo dd bs=4M if=/dev/mmcblk0 status=progress | gzip > /home/your_username/image`date +%d%m%y`.gz | |
This will compress the image using gzip. | |
To restore the backup on SD card: | |
sudo gzip -dc /home/your_username/image.gz | dd bs=4M status=progress of=/dev/mmcblk0 |
name: CI and gh-Pages deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
C:\SteamBib\steamapps\common\GarrysMod\garrysmod\addons
import os | |
from enum import Enum | |
# this script takes in a folder containing pictures of billard tables | |
# labelled with all balls individually in pascalVOC format | |
# and depending on the config value remaps the labels of balls to their teams value | |
# you can start it in your terminal and enter the required info in there | |
# set your folder containing dataset here | |
# empty "" for folder in which script is |
# this fork | |
# * updates the original script with the new fork of livestreamer | |
# - now uses streamlink library | |
# * makes it ready for python3 by updating the print statements | |
import cv2 | |
import numpy as np | |
import time | |
import streamlink |
function loop(i) { | |
// timeout because only one can be playing at a time | |
setTimeout(() => { | |
document.querySelectorAll('.d-playback-icon')[i].click(); | |
loop(i+1); | |
}, 4000); | |
} | |
loop(0); |
/** | |
* Checkerboard has 8*8 tiles starts with black at top left | |
* @param x X coordinate of pixel to check | |
* @param y Y coordinate of pixel to check | |
* @param width Width of canvas | |
* @param height Height of canvas | |
*/ | |
const isBlackTile = (x: number, y: number, width: number, height: number) => { | |
const boxPixelWidth = width / 8; | |
const boxPixelHeight = height / 8; |
#!/bin/sh | |
xrandr --dpi 314.7 \ | |
--output eDP-1 --mode 3840x2160 --pos 0x1696 \ | |
--output DP-2 --fb 7680x6016 --scale 2x2 --pos 3840x0 | |
# dpi calculated as ppi via https://www.sven.de/dpi/ | |
# I upscale external display to 4k via scale 2x2 instead of internal down | |
# pos 0x750 is cause external display is higher up | |
# fb is frame buffer which decides what is covered so has to be set for nothing to be black screen | |
# calucated via --> --fb 3840+2×1920 X 2160+6016+2×1080 # small number is position offset and x2 for 1080p is cause of 2x2 upscale |
## APPEND THESE 2 lines TO EXISTING File | |
# monitor status of my computer | |
alias status="~/status.sh" |