- Check the input device ID with
xinput
. - Check the display device name with
xrandr
. xinput map-to-output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xrandr --output eDP-1 --mode 720x1280 --rotation right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEST=/usr/local/lib/x86_64-linux-gnu | |
test -d $DEST || mkdir $DEST | |
cp -P lib/x86_64-linux-gnu/libndi.so* $DEST | |
ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <deque> | |
#include <fstream> | |
#include <iostream> | |
#include <memory> | |
namespace | |
{ | |
struct Point | |
{ | |
float x, y, z; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -loop 1 -i input.jpg -c:v hap -t 12 -vf scale=6144x3072 -r 60 out.mov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 -filter_complex "[0:v] fps=30,scale=500:-1,split [a][b];[a] palettegen=max_colors=64 [p];[b][p] paletteuse=dither=floyd_steinberg" out.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f x11grab -framerate 30 -video_size 1920x1080 -i :1+0,0 -c:v huffyuv -an desktop.avi |
- Install Ubuntu using rufus and a USB stick.
- Install the NVIDIA dirver from "Software & Updates" - "Additional Drivers".
- Install Mozc input method from "Region & Language" - "Input Sources".
- Modify the keymap to switch IME with ctrl + space.
- Install Unity Hub by following these steps.
- Install Git, Vim and Vulkan.
sudo apt install git vim vulkan-tools
- Sign in to GitHub and add a new SSH key.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- Clone dotfiles and run
setup
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
static class MeshDuplicator | |
{ | |
static Mesh[] SelectedMeshes { get { | |
return Selection.GetFiltered<Mesh>(SelectionMode.Unfiltered); | |
} } | |
[MenuItem("Assets/Duplicate Mesh")] |