Skip to content

Instantly share code, notes, and snippets.

View randomize's full-sized avatar

Mihailenco Eugene randomize

View GitHub Profile
@randomize
randomize / ply2obj.py
Last active March 27, 2024 15:33
Python script to convert *.ply to *.obj (3D formats)
'''
Simple script to convert ply to obj models
'''
from argparse import ArgumentParser
from plyfile import PlyData
def main():
parser = ArgumentParser()
@randomize
randomize / GoodHorizontalLayout.cs
Last active October 23, 2017 21:16
Since 2017.2 LayoutGroup restores child properties in OnDisable, to prevent that and force old behavior use this override
//===----------------------------------------------------------------------===//
//
// vim: ft=cs tw=80
//
// Date: 10/23/2017 23:10:37
// Creator: Eugene Mihailenco <mihailencoe@gmail.com>
//
//===----------------------------------------------------------------------===//
using UnityEngine.UI;
@randomize
randomize / toggle.vim
Created March 18, 2017 16:17
toggle.vim
" Stupid Eugene's plugin that does similar thing to switch.vim
let g:toggle_definitions =
\ [
\ 's/public/private/',
\ 's/private/pretected/',
@randomize
randomize / FixStarUML.sh
Last active August 8, 2016 15:00
Simple processor to cleanup StarUML generated things
#!/usr/bin/env bash
gfind ./ -type f -not -path "./.git/*" -iname "*.cs" -exec gsed -i \
-e '1s/^/\
\/\/===----------------------------------------------------------------------===\/\/\
\/\/\
\/\/ vim: ft=cs tw=80\
\/\/\
\/\/ Date: 3\/7\/16 2:33:00\
@randomize
randomize / RandomSwatchesFill.js
Created August 8, 2016 14:28
Little Adobe Illustrator script to fill automatically selected paths with selected swatches, used to help my art team saving some time
mySelection = app.activeDocument.selection;
myDoc = app.activeDocument;
if (mySelection instanceof Array)
{
selSwatches = myDoc.swatches.getSelected();
if (selSwatches.length < mySelection.length)
alert ("Pleade make sure you have enough swathces you have " + selSwatches.length + " and you need " + mySelection.length)
else
{
#!/bin/bash
# vim: ft=sh
# Stop on any error
set -e
# Get scripta path
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Stopping LionsGate server"
@randomize
randomize / .gitconfig
Last active August 4, 2016 07:56
My minimal git config for putting it on random machines
[user]
name = Eugene Mihailenco
email = mihailencoe@gmail.com
[core]
editor = vim
[alias]
st = status
dc = diff --cached
ci = commit
co = checkout
pkgname=libimobiledevice
pkgver=1.2.0
pkgrel=3
pkgdesc="Library that talks the protocols to support iPhone and iPod Touch devices on Linux"
url="https://github.com/libimobiledevice/libimobiledevice.git"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
depends=('libusbmuxd')
makedepends=('python2')
@randomize
randomize / tmux_cygwin.md
Created November 10, 2015 08:23 — forked from zlalanne/tmux_cygwin.md
tmux on Cygwin

Steps to install tmux in Cygwin

Install required Cygwin packages

  1. run Cygwin setup.exe
  2. install these packages that are not installed by default: automake, gcc, git and pkg-config

Install libevent

  1. browse http://libevent.org
  2. download libevent-2.0.21-stable.tar.gz
@randomize
randomize / remove-dev-notice.pl
Created November 9, 2015 05:05
Perl script to remove Unity dev build notice.
#!/usr/bin/perl
use strict;
my ($hex_in, $hex_out) = @ARGV;
print "[PATHCING] : $hex_in => $hex_out \n";
open (HEX_IN, "$hex_in") or die("open failed for $hex_in : $!");
open (HEX_OUT, ">$hex_out") or die("open failed for $hex_out : $!");