Skip to content

Instantly share code, notes, and snippets.

@0rvar
0rvar / virt-manager-macos.md
Created November 20, 2024 17:36 — forked from davesilva/virt-manager-macos.md
Remote virt-manager from Mac OS

If you have a Linux machine with KVM on it, you can manage those VMs remotely from a Mac using virt-manager.

Step 1: Allow your user non-root access to KVM

SSH to the Linux machine and add your SSH user to the libvirt group

sudo usermod -a -G libvirt $(whoami)
@0rvar
0rvar / tasks.js
Last active November 23, 2015 14:33 — forked from purezen/gist:3fff3d7204546b1e34f5
react-task-manager
App.js
import React, { Component } from 'react';
import TaskList from './TaskList';
import AddTask from './AddTask';
export default class App extends Component {
render() {
return (
<div>
class CreateResidences < ActiveRecord::Migration
def change
create_table :residences do |t|
t.string :name
t.string :address
t.belongs_to :zipcode, index: true
t.timestamps null: false
end
add_foreign_key :residences, :zipcodes