TestContainers currently do not run on Apple SIlicon (M1) due to missing architecture issues.
To get around this issue, add JNA as a dependency in your project:
For Maven projects -
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
#!/usr/bin/env bash | |
##### | |
# Generate a PNG file to use in i3lock | |
# we have 2 monitors | |
# 1. resolution 1440x2560 at offset +0+0 | |
# 2. resolution 1920x1200 at offset +1440+1100 | |
##### | |
# get 2 random files from this folder |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
protocol UIntToBytesConvertable { | |
var toBytes: [UInt8] { get } | |
} | |
extension UIntToBytesConvertable { | |
func toByteArr<T: BinaryInteger>(endian: T, count: Int) -> [UInt8] { | |
var _endian = endian | |
let bytePtr = withUnsafePointer(to: &_endian) { | |
$0.withMemoryRebound(to: UInt8.self, capacity: count) { | |
UnsafeBufferPointer(start: $0, count: count) |
package your.awesome.package | |
import android.arch.lifecycle.LiveData | |
import android.arch.lifecycle.MutableLiveData | |
import io.reactivex.Observable | |
import io.reactivex.disposables.Disposable | |
fun <T> Observable<T>.toLiveData() : LiveData<T> { | |
return object : MutableLiveData<T>() { |
This is a document describing how to install Ubuntu 16.04 LTS on ThinkPad T470s.
iTerm2 -> Preferences -> Advanced
General
sectionWidth of left and right margins in terminal panes
to 12#!/bin/bash | |
# Adapted from http://stackoverflow.com/questions/24039470/xcode-6-ios-creating-a-cocoa-touch-framework-architectures-issues/26691080#26691080 | |
# and https://gist.github.com/cromandini/1a9c4aeab27ca84f5d79 | |
# Create a new aggregate target. | |
# For the automatically generated scheme, change its build config to "release". | |
# Ensure this target's "product name" build setting matches the framework's. | |
# Add a run script with `source "${PROJECT_DIR}/path_to_this_script` |