Skip to content

Instantly share code, notes, and snippets.

@masaki-furuta
masaki-furuta / crc_remote_laptop.md
Last active December 10, 2019 06:52 — forked from sub-mod/crc_remote_laptop.md
Setup CodeReady Containers on Remote Server and connect from Laptop 4.2

On the REMOTE_HOST

cat /etc/redhat-release
Fedora release 29 (Twenty Nine)

Install packages

su -c 'yum install qemu-kvm libvirt NetworkManager tinyproxy'
mongo pulp_database --eval 'printjson(db.task_status.find({"state": {"$in": ["waiting", "running"]}}).count())'

MongoDB shell version: 2.6.11
connecting to: pulp_database
9110
curl -k -u admin: -X DELETE "https://localhost/pulp/api/v2/task_groups/ae13786d-a14d-4d30-963b-0e0ed144cef8/"
#!/usr/bin/perl
use strict;
use warnings;
# sets mtime and atime of files to the latest commit time in git
#
# This is useful for serving static content (managed by git)
# from a cluster of identically configured HTTP servers. HTTP
# clients and content delivery networks can get consistent
# Last-Modified headers no matter which HTTP server in the
@masaki-furuta
masaki-furuta / How to setup 4:3 aspect screen for 4K monitor on Linux.md
Last active January 20, 2018 06:32
How to setup 4:3 aspect screen for 4K monitor on Linux

How to setup 4:3 aspect screen for 4K monitor on Linux

$ ~/Codes/Git/github.com/umc/src/umc 2880 2160 30 --rbt

    # 2880x2160x29.99 @ 65.707kHz
      Modeline "2880x2160x29.99"  199.750000  2880 2928 2960 3040  2160 2163 2167 2191  +HSync -VSync
$ xrandr --newmode "2880x2160x29.99"  199.750000  2880 2928 2960 3040  2160 2163 2167 2191  +HSync -VSync
$ xrandr --addmode DP-1-1 2880x2160x29.99
$ xrandr --output DP-1-1 --mode 2880x2160x29.99