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
copy text from | |
https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.list?os=Ubuntu&dist=xenial&source=script | |
put to | |
nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list | |
update | |
gitlab-rake gitlab:backup:create STRATEGY=copy | |
apt-get update && sudo apt-get install gitlab-ce |
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
Ai - Carving.ApplyResults - TimeNanoseconds | |
Ai - Carving.BuildBVTree - TimeNanoseconds | |
Ai - Carving.Clipping - TimeNanoseconds | |
Ai - Carving.ConvexHulls - TimeNanoseconds | |
Ai - Carving.Prepare - TimeNanoseconds | |
Ai - Carving.ProjectVertices - TimeNanoseconds | |
Ai - CollectSources - TimeNanoseconds | |
Ai - Colliders - TimeNanoseconds | |
Ai - Components.NavMeshAgent.SendMessage - TimeNanoseconds | |
Ai - Components.NavMeshAgent.State - TimeNanoseconds |
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; | |
using System.Collections.Generic; | |
using ExitGames.Client.Photon; | |
using Photon.Pun; | |
using Photon.Realtime; | |
using UnityEngine; | |
using Hashtable = ExitGames.Client.Photon.Hashtable; | |
public class z_DebugPunCallbacks : MonoBehaviourPunCallbacks | |
{ |
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
//Download image from vk | |
var $ = $; | |
function convertImageToBase64(imgUrl, callback) { | |
const image = new Image(); | |
image.crossOrigin='anonymous'; | |
image.onload = () => { | |
const canvas = document.createElement('canvas'); |
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
server { | |
listen %ip%:%httpport%; | |
listen %ip%:%httpsport% ssl; | |
server_name %host% %aliases%; | |
# if ($request_method !~* ^(GET|HEAD|POST)$ ){return 403;} | |
location ~ /\. {deny all;} | |
location / { |
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
<div class="entry-content"> | |
<p>(last update: May 20, 2016)</p> | |
<p>This year’s GDC was awesome. Some amazing presentations and again I could chat with super-smart and inspiring people. Be sure to check out <a href="http://32ipi028l5q82yhj72224m8j.wpengine.netdna-cdn.com/wp-content/uploads/2016/03/GdcVdrLottes.pdf">“Advanced Techniques and Optimization of HDR Color Pipelines”</a>, <a href="http://www.frostbite.com/2016/03/optimizing-the-graphics-pipeline-with-compute/">“Optimizing the Graphics Pipeline with Compute”</a> and <a href="http://www.frostbite.com/2016/03/photogrammetry-and-star-wars-battlefront/">“Photogrammetry and Star Wars Battlefront”</a> . Growing list of presentations:</p> | |
<h1>Programming Track</h1> | |
<ul> | |
<li><a href="http://wili.cc/research/northlight_dx12/GDC16_Timonen_Northlight_DX12.pptx">“Developing The Northlight Engine: Lessons Learned”</a> – Ville Timonen (Remedy Entertainment)</li> | |
<li><a href="http://htmlpreview.github.io/?https://cdn.rawgit.com/niklasfry |
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
private Texture2D RenderTextureTo2DTexture(RenderTexture rt) | |
{ | |
var texture = new Texture2D(rt.width, rt.height, rt.graphicsFormat, 0, TextureCreationFlags.None); | |
RenderTexture.active = rt; | |
texture.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0); | |
texture.Apply(); | |
RenderTexture.active = 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
[MenuItem(z_EditorPrefs.ContextMenuInHierarchyCommonPath + "/Fix Before export FBX", false)] | |
public static void FixBeforeExportFbx() | |
{ | |
if (!Selection.activeGameObject) | |
{ | |
return; | |
} | |
foreach (var gameObject in Selection.gameObjects) |
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 UnityEngine; | |
using UnityEngine.Rendering; | |
//https://forum.unity.com/threads/solved-scenemanager-loadscene-make-the-scene-darker-a-bug.542440/#post-7752681 | |
public class z_DarkSkyboxFix : MonoBehaviour | |
{ | |
IEnumerator Start() | |
{ | |
if (RenderSettings.customReflectionTexture != 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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
public class ShaderReplacer : MonoBehaviour { | |
private static readonly Dictionary<string, Shader> replaceTo = new Dictionary<string, Shader>() | |
{ | |
{"Legacy Shaders/Diffuse", Shader.Find("Mobile/Diffuse") }, |
NewerOlder