sudo pacman -Suy rpmextractwget https://www.kraxel.org/repos/jenkins/edk2/edk2.git-ovmf-x64-XXXXXX.noarch.rpm[Easy instructions to get QEMU/KVM and virt-manager up and running on Arch] #linux #kvm #qemu
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:
| # Directory navigation aliases | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ....='cd ../../..' | |
| alias .....='cd ../../../..' | |
| alias back='cd $OLDPWD' | |
| #misc aliases | |
| alias open='gnome-open' | |
| alias grep='grep -n' |
| var uniqueArray = function(arrArg) { | |
| return arrArg.filter(function(elem, pos,arr) { | |
| return arr.indexOf(elem) == pos; | |
| }); | |
| }; | |
| var uniqEs6 = (arrArg) => { | |
| return arrArg.filter((elem, pos, arr) => { | |
| return arr.indexOf(elem) == pos; | |
| }); |
| /** | |
| * Using the Fisher-Yates (aka Knuth) Shuffle. | |
| */ | |
| function shuffle(array) { | |
| var currentIndex = array.length, temporaryValue, randomIndex ; | |
| // While there remain elements to shuffle... | |
| while (0 !== currentIndex) { | |
| // Pick a remaining element... |
| /** | |
| * Get a random floating point number between `min` and `max`. | |
| * | |
| * @param {number} min - min number | |
| * @param {number} max - max number | |
| * @return {number} a random floating point number | |
| */ | |
| function getRandomFloat(min, max) { | |
| return Math.random() * (max - min) + min; | |
| } |
A Pen by Johan Fagerbeg on CodePen.
| // root.tsx | |
| import { getUserSession, requireUser, logout } from "~/session"; | |
| export function loader({ request }) { | |
| // use case: know if the user is logged in, no redirect to /login | |
| let userSession = await getUserSession(request); | |
| let isAuthenticated = userSession.has("userId"); | |
| return { isAuthenticated }; | |
| } |
| import { createCookieSessionStorage } from "remix"; | |
| let { getSession, commitSession, destroySession } = createCookieSessionStorage({ | |
| cookie: { | |
| name: "__session", | |
| secrets: ["r3m1xr0ck5"] | |
| } | |
| }); | |
| export { getSession, commitSession, destroySession }; |