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
| image .img files | |
| http://www.uahirise.org/dtm/index.php?page=4 | |
| converter | |
| http://bjj.mmedia.is/utils/img2png/#download | |
| .j2 to .jpg | |
| http://image.online-convert.com/convert-to-jpg |
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
| using UnityEngine; | |
| public class AlignToNormal : MonoBehaviour | |
| { | |
| public GameObject prefab; | |
| void Update() | |
| { | |
| if (Input.GetMouseButtonDown(0)) | |
| { |
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
| error CS1704: An assembly with the same name `UnityEngine.UI' has already been imported. Consider removing one of the references or sign the assembly | |
| D:/Software/Unity55Latest/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll (Location of the symbol related to previous error) | |
| D:/Software/Unity55Latest/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll (Location of the symbol related to previous error) | |
| error CS1704: An assembly with the same name `UnityEngine.Networking' has already been imported. Consider removing one of the references or sign the assembly | |
| D:/Software/Unity55Latest/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll (Location of the symbol related to previous error) | |
| D:/Software/Unity55Latest/Editor/Data/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll (Location of the symbol related to previous error) | |
| error CS1704: An assembly with the same name `UnityEngine.HoloLens' has already been imported. Consider removing one |
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
| // ============================================================================= | |
| // INSTALL PLUGINS * client can use vanilla minecraft | |
| //Download CraftBukkit | |
| https://getbukkit.org/download/craftbukkit | |
| //Copy and run it on server | |
| java -Xmx2048M -Xms2048M -jar craftbukkit-1.10.2-R0.1-SNAPSHOT.jar -o true |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class CameraLerp : MonoBehaviour | |
| { | |
| public float duration = 2; | |
| public AnimationCurve speedCurve = AnimationCurve.EaseInOut(0,0,1,1); | |
| void Start() | |
| { |
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
| Using Minecraft Command Block | |
| - Enable command block from server.properties | |
| - Give ops to player, from ssh> op yourname | |
| - After opped, can get command block with: give yourname command_block 1 | |
| - Set to creative (so that can use command block)> gamemode 1 | |
| COMMANDS | |
| // spawn villager with specific trades |
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
| // after instantiating assetbundle | |
| var go = Instantiate(prefab, Vector3.zero, prefab.transform.rotation) as GameObject; | |
| // fix pink shader | |
| var r = go.GetComponent<Renderer>(); | |
| var material = Shader.Find(r.material.shader.name); | |
| r.material.shader=null; | |
| r.material.shader = material; | |
| // NOTE: this does it only for the main gameobject, not children |
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
| // https://www.smittix.co.uk/centos-7-server-hardening-guide/ | |
| // ============ install Fail2Ban ============ | |
| sudo yum install epel-release | |
| sudo yum install fail2ban fail2ban-systemd | |
| sudo nano /etc/fail2ban/jail.d/sshd.local | |
| // copy paste (and edit your settings) | |
| [sshd] |
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
| // LINUX CHEAT SHEET | |
| // firewall, allow port | |
| sudo ufw allow 5001/udp | |
| sudo ufw allow 5001/tcp | |
| // download whole folder recursively: | |
| wget -r --no-parent target[.com/dir | |
| uninstall java: |