This file contains 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 bash | |
BASEDIR=$(dirname "$0") | |
export PATH=/usr/local/bin:$PATH | |
echo "[]" | |
{ | |
pushd $BASEDIR/national-geographic-wallpapers | |
phantomjs generate-wallpaper.js | |
setwp --center --color=000000 background.png | |
popd | |
} &> /dev/null |
This file contains 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 | |
PIHOLE_IP=192.168.1.1 | |
ping -c 1 -W 0.1 $PIHOLE_IP > /dev/null | |
if [ $? = 0 ] | |
then | |
echo ◉ | |
else | |
echo ◎ | |
fi |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public class EditorRemoveEmptyFolders { | |
[MenuItem("Project Tools/Maintenance/Remove Empty Folders")] | |
public static void RemoveEmptyFolders() |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
// Reverse engineered UnityEditor.TransformInspector | |
[CanEditMultipleObjects, CustomEditor(typeof(Transform))] | |
public class TransformInspector : Editor { | |
private const float FIELD_WIDTH = 300.0f; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraBoundsChecker : MonoBehaviour { | |
public event System.Action<CameraBoundsChecker,bool> OnCameraVisibilityChanged; | |
public Camera cameraTarget; | |
public Vector3 extraOffset = Vector3.one; |
This file contains 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
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using System; | |
using System.Diagnostics; | |
public class PostBuildTrigger : MonoBehaviour { | |
[PostProcessBuild(300)] | |
public static void OnPostProcessBuild(BuildTarget target, string path) |
This file contains 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
require 'xcodeproj' | |
# Based on: http://blog.seiji.me/2012/02/10/create-xcodeproj-using-xcode-project/ | |
# example usage | |
# project.add_system_framework("Foundation.framework") | |
# project.add_system_framework("libxml2.dylib") | |
module Xcodeproj | |
class Project | |
def add_system_framework(fname) |