-
Make sure your cpu support
kvm
with below command:grep -E "(vmx|svm)" --color=always /proc/cpuinfo
-
Make sure BIOS have enable “Virtualization Technology”.
-
User access to
/dev/kvm
so add your account into kvm(78) group:
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 | |
# | |
# Suggested name for this script: git-clean-stale-branches | |
# | |
# This script will help to remove "stale" branches from a remote | |
# repository (by default the "origin" repository). Stale branches | |
# are any branches that does not exist in the local repository. | |
# | |
# This script should be run in the local repository. It will print | |
# out a git command to remove all branches from the remote repository |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Value an interface for anything with a value. | |
type Value interface { | |
Value() interface{} |
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
import * as faceapi from 'face-api.js'; | |
// Load models and weights | |
export async function loadModels() { | |
const MODEL_URL = process.env.PUBLIC_URL + '/models'; | |
await faceapi.loadTinyFaceDetectorModel(MODEL_URL); | |
await faceapi.loadFaceLandmarkTinyModel(MODEL_URL); | |
await faceapi.loadFaceRecognitionModel(MODEL_URL); | |
} |
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
<!-- Keybindings for moving windows --> | |
<keybind key="mod4-Left"> | |
<action name="GoToDesktop"> | |
<to>west</to> | |
<wrap>yes</wrap> | |
</action> | |
</keybind> | |
<keybind key="mod4-Right"> | |
<action name="GoToDesktop"> | |
<to>east</to> |
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
name: CI | |
on: [push] | |
jobs: | |
tslint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
job: [0, 1, 2, 3, 4] |
Game information Worms W.M.D.
Distribution name and version where applicable Manjaro 20.1.1 (Mikah)
Problem description Worms doesn't launch out of the box without two small tweaks. When launching Worms W.M.D. in Manjaro and Archlinux, you need to do two things:
- Install this apps:
sudo pacman -S libcurl-gnutls libidn11 qt5-base qt5-xcb-private-headers
(If you are on any other distro then Arch, you can skip this step. At least this is reported to be OK to skip for Linux Mint)
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
import { useEffect, useState } from 'react'; | |
import { StateMachine } from 'xstate'; | |
import { useMachine } from '@xstate/react'; | |
import { inspect } from '@xstate/inspect'; | |
let iFrameElement: HTMLIFrameElement | null = null; | |
function createIFrame() { | |
if (!iFrameElement) { | |
const iframe = document.createElement('iframe'); |
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/bash | |
# video demo - https://www.youtube.com/watch?v=Y8TyE_DNds8 | |
mkdir ~/.tmp && cd $_ | |
# install aws-cli v2 | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | |
unzip awscliv2.zip && \ | |
sudo ./aws/install |
This is a guide to configure React Native to be built for native and web platforms with Typescript, Vite.js and Storybook support for modelling components.
OlderNewer