Skip to content

Instantly share code, notes, and snippets.

@adwinying
adwinying / README.md
Last active August 18, 2022 04:20
vim configs on the go

Introduction

My vim config that you can apply easily from anywhere with just a single command

Setup

Run this command in vim:

:so https://gist.githubusercontent.com/adwinying/cdd28237d9224fadcd0f88dc0dcee7e7/raw/2799cd3cdfd61c4c7c65395633b4dec83552f1bf/portable.vim
@adwinying
adwinying / macos.xml
Last active May 22, 2022 13:52
virsh XML config for macOS with GPU passthrough
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>macos</name>
<uuid>2aca0dd6-cec9-4717-9ab2-0b7b13d111c3</uuid>
<title>macos</title>
<memory unit="KiB">16777216</memory>
<currentMemory unit="KiB">16777216</currentMemory>
<vcpu placement="static">8</vcpu>
<cputune>
<vcpupin vcpu="0" cpuset="4"/>
<vcpupin vcpu="1" cpuset="12"/>
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@adwinying
adwinying / playbook.yml
Created December 17, 2018 17:34
2. シェルスクリプトを移植
---
- hosts: all
become: yes
become_user: root
vars:
DB_ROOT_PASS='root'
DB_USER='user'
DB_PASS='pass'
DB_NAME='db'