Skip to content

Instantly share code, notes, and snippets.

@lane-s
lane-s / config.xml
Created March 24, 2019 19:55
Syncthing config file on OSX machine where file watcher is not working
<configuration version="28">
<folder id="6scsh-x95pt" label="Notes" path="/Users/lspangler/Notes" type="sendreceive" rescanIntervalS="1800" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
<filesystemType>basic</filesystemType>
<device id="LFKALUI-SCKJ5I6-J3LUXS3-UYSKHIP-NE3QTUZ-EEMYRQL-GGPKPTZ-SF4PYQJ" introducedBy=""></device>
<device id="LHGM4F3-ZUZRDWB-DLITRL2-VOMLVQA-5BR7RN5-HZHX67B-F2RHZLY-4C5ZTAK" introducedBy=""></device>
<device id="ZGSM2NZ-MYJIOLT-S3KXF77-DNSQVWS-JSLWHVA-FL46KRX-RY66A6B-QIKOWAN" introducedBy="LFKALUI-SCKJ5I6-J3LUXS3-UYSKHIP-NE3QTUZ-EEMYRQL-GGPKPTZ-SF4PYQJ"></device>
<minDiskFree unit="%">1</minDiskFree>
<versioning></versioning>
<copiers>0</copiers>
<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
@lane-s
lane-s / cfg-install.sh
Created July 26, 2018 01:54
Installs dotfile sync setup
git clone --bare https://github.com/lane-s/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
int fillArr(Command* arr){
int actual_num_commands = 6;
int i;
for(i = 0; i < actual_num_commands; i++){
arr[i].name = "foo";
arr[i].args[0] = "foo";
arr[i].args[1] = "bar";
}
return actual_num_commands;
}
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using VRTK;
using VRTK.GrabAttachMechanics;
[RequireComponent(typeof(VRTK_InteractableObject))]
[RequireComponent(typeof(SphereCollider))]
[RequireComponent(typeof(CatchableBody))]