https://multipass.run/
multipass launch --mem 10G --cpus 6 --disk 20G --name knative
multipass shell knative
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.
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { |
<?php | |
/** | |
* Database Connection Tester | |
* A quick-and-dirty standalone script for checking PHP’s connection to a | |
* MySQL (or MariaDB) or PostgreSQL database. | |
* | |
* To use, enter the settings below and run the following from your terminal: | |
* ``` | |
* php -f db-test.php |
docker run -d \ | |
--restart=always \ | |
-p 33060:3306 \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
-v ~/docker/volumes/mysql:/var/lib/mysql \ | |
--name mysql-5.7 \ | |
mysql:5.7 \ | |
--sql-mode="NO_ENGINE_SUBSTITUTION" |
admin: | |
access_log_path: /tmp/admin_access.log | |
address: | |
socket_address: | |
protocol: TCP | |
address: 127.0.0.1 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: listener_0 |
-- original source: https://medium.com/adhawk-engineering/using-postgresql-to-generate-slugs-5ec9dd759e88 | |
-- https://www.postgresql.org/docs/9.6/unaccent.html | |
CREATE EXTENSION IF NOT EXISTS unaccent; | |
-- create the function in the public schema | |
CREATE OR REPLACE FUNCTION public.slugify( | |
v TEXT | |
) RETURNS TEXT | |
LANGUAGE plpgsql |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Public VPC and subnets | |
Resources: | |
# | |
# Public VPC | |
# | |
PublicVpc: |
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"golang.org/x/crypto/ssh" |