Skip to content

Instantly share code, notes, and snippets.

View nicloay's full-sized avatar
✌️

Nikolay nicloay

✌️
View GitHub Profile
@nicloay
nicloay / ConvertSerializationVersion.cs
Last active August 15, 2017 14:04 — forked from Seneral/ConvertSerializationVersion.cs
Script to convert files serialized in 5.5 to previous unity versions based on the text format.
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
public static class ConvertSerializationVersion
{
private static Regex objectIDSearch = new Regex("--- !u!(?:[0-9]{1,5}) &([0-9]*)");
@nicloay
nicloay / gist:9466391
Last active August 29, 2015 13:57 — forked from supairish/gist:2951524
http://habrahabr.ru/post/215233/ protect nginx from google DDOS + http://habrahabr.ru/post/215543/ (wordpress DDOS)
http {
map $http_user_agent $limit_bots {
default '';
~*(google|bing|yandex|msnbot|wordpress) $binary_remote_addr;
}
limit_req_zone $limit_bots zone=bots:10m rate=1r/m;
server {