$ sudo su - root
$ cd /sys/kernel/debug/tracing
$ cat available_tracers
hwlat blk mmiotrace function_graph wakeup_dl wakeup_rt wakeup function nop
$ cat available_filter_functions | grep ftdi_sio | cut -d' ' -f1 | tr '\n' ' ' > set_ftrace_filter
$ cat set_ftrace_filter
get_serial_info [ftdi_sio]
cmake_minimum_required(VERSION 3.12.4) | |
find_package(Python2 COMPONENTS Interpreter) | |
find_package(Python3 COMPONENTS Interpreter) | |
if (NOT Python2_Interpreter_FOUND AND NOT Python3_Interpreter_FOUND) | |
message(FATAL_ERROR "Could NOT find Python2 or Python3") | |
endif() | |
# https://github.com/Kitware/CMake/blob/cfc92b483fbd3695d4a67843977e709ba4d7ea47/Modules/FindPython/Support.cmake#L2433-L2439 |
There are some monitors, in my case Dell U2413, that report having YCbCr support when plugged in over HDMI. My AMD Radeon RX 570 Series video card sees this YCbCr pixel format and then prefers that over the RGB pixel format. The result is that fonts, graphics and other visuals are pixelated and not smooth in Ubuntu.
This actually is not just a Linux problem. A similar problem exists on macOS with the same monitor hooked up over HDMI. In fact an article by John Ruble on the Atomic Object blog called Fixing the External Monitor Color Problem with My 2018 MacBook Pro attempts to fix the exact same thing.
All of the articles I could find exploring this topic advocate patching the EDID for the monitor. Unfortunately the macOS solution would not work here. Luckily I found a Reddit post that covered how to get it working.
These systemd unit and timer configurations will get an up-to-date copy of Swift and build the toolchain every day at 2:00 AM local time.
In order for these configurations to work without modification it is assumed that all of the development dependencies are already installed and that the Swift repository is cloned in $HOME/Source/swift-source/swift
.
# https://github.com/macports/macports-ports/blob/master/devel/cctools/Portfile | |
curl -o cctools-921.tar.gz https://opensource.apple.com/tarballs/cctools/cctools-921.tar.gz | |
curl -o llvm-8.0.1.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-8.0.1/llvm-8.0.1.src.tar.xz | |
curl -o ld64-409.12.tar.gz https://opensource.apple.com/tarballs/ld64/ld64-409.12.tar.gz | |
tar xvf cctools-921.tar.gz | |
tar xvf llvm-8.0.1.src.tar.xz | |
tar xvf ld64-409.12.tar.gz |
# See smb.conf.example for a more detailed config file or | |
# read the smb.conf manpage. | |
# Run 'testparm' to verify the config is correct after | |
# you modified it. | |
[global] | |
workgroup = SAMBA | |
security = user | |
passdb backend = tdbsam | |
load printers = no |
I hereby claim:
- I am rlovelett on github.
- I am rlovelett (https://keybase.io/rlovelett) on keybase.
- I have a public key ASCSdXfEevoHXXVb5eMvjn8rUL00ucXGH1-a1Czn-JSfJgo
To claim this, I am signing this object:
import Glibc | |
var action = posix_spawn_file_actions_t() | |
posix_spawn_file_actions_init(&action); | |
defer { posix_spawn_file_actions_destroy(&action) } | |
posix_spawn_file_actions_addopen(&action, 1, "/tmp/foo-log", (O_WRONLY | O_CREAT | O_TRUNC), 0644) | |
posix_spawn_file_actions_adddup2(&action, 1, 2) | |
let args = [ | |
"ffmpeg", |
#!/usr/bin/env bash | |
# Good: 2bd25930 | |
# Bad: 71090e7a | |
set -ex | |
BINUTILS_DIR=$HOME/packages/trunk | |
SWIFT_DIR=$HOME/swift |