Skip to content

Instantly share code, notes, and snippets.

@vinhui
vinhui / .gitconfig
Created November 14, 2018 13:33
Handy gitgui tools items
[guitool "checkout selected"]
cmd = git checkout -- \"$FILENAME\"
noconsole = yes
needsfile = yes
[guitool "pull origin"]
cmd = git pull
[guitool "reset everything"]
cmd = git reset --hard HEAD
confirm = yes
[guitool "delete selected"]
using System;
using System.Configuration;
using Logger;
namespace AutoUpdater
{
public static class Config
{
public static bool GetBool(string key)
{
@vinhui
vinhui / adb.sh
Created June 14, 2018 12:44
Adb helper script
#!/bin/bash
function parseIfconfig {
local a="$(adb -s $1 shell ifconfig | grep -m 1 'inet addr' | sed -E 's/.*addr:(.*) Bcast.*/\1/')"
echo "$a"
}
function adbConnect {
if [[ $1 != *"."* ]]; then
local ip=$(parseIfconfig $1)
using System.Collections.Generic;
using UnityEditor;
using System.IO;
using UnityEngine;
using System;
// https://effectiveunity.com/articles/how-to-set-the-android-sdk-path-via-scripting-in-unity/
public class EditorSetup {
public static string AndroidSdkRoot {
get { return EditorPrefs.GetString("AndroidSdkRoot"); }
using Domo.Misc.Debug;
using Domo.Serialization;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace Domo.Misc