This file contains hidden or 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
#!/usr/bin/env node | |
const { execSync } = require('child_process'); | |
const CMD = process.argv[2]; | |
const PORT = process.argv[3]; | |
const IP = execSync('ifconfig eth0').toString().split(/[\r\n]+/) | |
.filter(line => line.match(/inet /))[0].split(/ +/) | |
.filter(token => token)[1]; | |
function usage () { | |
console.log(` |
This file contains hidden or 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 | |
# https://techracho.bpsinc.jp/hachi8833/2017_04_04/38229 | |
# https://gist.github.com/mefellows/4f6ecd2e83de8b591726 | |
# | |
# for localhost:3000 | |
reset() { | |
dnctl -q flush | |
pfctl -f /etc/pf.conf | |
pfctl -d |
This file contains hidden or 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 | |
killall Xcode | |
xcrun -k | |
xcrun simctl delete unavailable | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Developer/Xcode/Archives/* | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* |
This file contains hidden or 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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{cc786dcc-89ec-11ea-9df5-737d6d703cc6}", | |
"copyOnSelect": true, | |
"profiles": | |
{ |
This file contains hidden or 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 | |
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d | |
git branch -vv |
This file contains hidden or 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 | |
git-fetch () { | |
git checkout $1 | |
git pull --rebase | |
} | |
current=$(git rev-parse --abbrev-ref HEAD) | |
git fetch --prune | |
git-fetch stage | |
git-fetch master |
This file contains hidden or 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
diff --git a/Assets/SteamVR/Editor/SteamVR_Settings.cs b/Assets/SteamVR/Editor/SteamVR_Settings.cs | |
index f6e8145..9091be4 100644 | |
--- a/Assets/SteamVR/Editor/SteamVR_Settings.cs | |
+++ b/Assets/SteamVR/Editor/SteamVR_Settings.cs | |
@@ -19,7 +19,6 @@ public class SteamVR_Settings : EditorWindow | |
const string buildTarget = "Build Target"; | |
const string showUnitySplashScreen = "Show Unity Splashscreen"; | |
- const string defaultIsFullScreen = "Default is Fullscreen"; | |
const string defaultScreenSize = "Default Screen Size"; |
This file contains hidden or 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
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
int main(int argc, char* argv[]) | |
{ | |
// based on https://medium.com/@kennethjiang/calibrate-fisheye-lens-using-opencv-333b05afa0b0 | |
cv::CommandLineParser parser(argc, argv, |
This file contains hidden or 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
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <string.h> | |
#include <gif_lib.h> | |
bool gif_write(const char* fileName) | |
{ | |
int error; |
This file contains hidden or 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
diff --git a/Assets/SteamVR/Editor/SteamVR_Update.cs b/Assets/SteamVR/Editor/SteamVR_Update.cs | |
index 51e65cf..80abe40 100644 | |
--- a/Assets/SteamVR/Editor/SteamVR_Update.cs | |
+++ b/Assets/SteamVR/Editor/SteamVR_Update.cs | |
@@ -8,6 +8,7 @@ using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
+using UnityEngine.Networking; |