Skip to content

Instantly share code, notes, and snippets.

View Geri-Borbas's full-sized avatar
💡

Geri Borbás Geri-Borbas

💡
View GitHub Profile
@Geri-Borbas
Geri-Borbas / Patch.md
Last active November 20, 2018 11:45
How to patch a repository called `Project` with another folder.

How to patch a repository called Project with another folder

  1. Add the 2 suffix to the Project folder containing the patch changes.

  2. Copy the folders beside each other, open terminal.

  3. Navigate to the folder that contains them both.

  4. Create patch file there.

@Geri-Borbas
Geri-Borbas / Toggle # Layers.js
Created July 9, 2018 21:50
Photoshop Script for toggle layer visibility by name (yet hardcoded to #). Put script to <PHOTOSHOP_FOLDER>/Presets/Scripts.
//
// Copyright (c) 2017 Geri Borbás http://www.twitter.com/_eppz
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
@Geri-Borbas
Geri-Borbas / CopyFileUrl.sh
Created June 30, 2018 07:24
Sourcetree Custom Action for copy file URL to clipboard. Perfect for use in concert with Bitbucket Cloud App for Slack.
#!/bin/sh
# eppz!tools
# Sourcetree Custom Action for copy file URL to clipboard.
# Perfect for use in concert with Bitbucket Cloud App for Slack.
#
# 1. Copy this script to '/usr/local/bin'.
# 2. Setup a Custom Action in Sourcetree according details below.
#
# Menu Caption: Copy File URL
@Geri-Borbas
Geri-Borbas / CopyCommitUrl.sh
Created June 30, 2018 07:23
Sourcetree Custom Action for copy commit URL to clipboard. Perfect for use in concert with Bitbucket Cloud App for Slack.
#!/bin/sh
# eppz!tools
# Sourcetree Custom Action for copy commit URL to clipboard.
# Perfect for use in concert with Bitbucket Cloud App for Slack.
#
# 1. Copy this script to '/usr/local/bin'.
# 2. Setup a Custom Action in Sourcetree according details below.
#
# Menu Caption: Copy Commit URL
@Geri-Borbas
Geri-Borbas / httpd-vhosts.conf
Created May 15, 2018 23:16
An example of Virtual Hosts definitions for MAMP.
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
@Geri-Borbas
Geri-Borbas / Virtual hosts on device.md
Last active February 18, 2018 12:45
How to access local virtual hosts on device (OSX, MAMP).
  1. Add a Manual HTTP Proxy settings to your WiFi settings on the device.
  2. IP Address is the IP of the development machine (192.168.0.x).
  3. Port is the port of the server running (8888, 80 or anything defined in your web server settings).
@Geri-Borbas
Geri-Borbas / gist:2d6038cf8f86f91095f28ee1b11adc5f
Last active February 17, 2018 01:51
APNs certificate cer to pem conversion (first export it to p12 with Keychain).
openssl pkcs12 -in '<CERTIFICATE_NAME>.p12' -out '<CERTIFICATE_NAME>.pem' -nodes -clcerts
@Geri-Borbas
Geri-Borbas / GameViewDimensions.cs
Created February 12, 2018 10:38
Tool for resize Unity Game View in Play Mode with easy ScriptableObject parameters / ContextMenu invocations interface.
//
// Copyright (c) 2018 Geri Borbás http://www.twitter.com/_eppz
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
@Geri-Borbas
Geri-Borbas / Unity_build_and_test_tasks.json
Last active October 4, 2018 18:55
VS Code tasks to build and test (!) with Unity. See https://gist.github.com/eppz/ad4fb8d64bdcb0c50a6abea57716823e for test.comman.
{
"version": "2.0.0",
"tasks":
[
{
"taskName": "Build",
"isBuildCommand": true,
"command": "/Applications/Unity/Unity.app/Contents/MonoBleedingEdge/bin/xbuild",
"args":
[
@Geri-Borbas
Geri-Borbas / test.command
Last active February 27, 2019 18:21
Run Unity Editor Tests from command line. See https://gist.github.com/eppz/e566781bb20abf6df09469515d07ae83 for tasks.json. Don't forget to make it executable using chmod +x.
#!/bin/sh
UNITY_EXECUTABLE="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
PROJECT_FOLDER="$1"
RESULTS_FILENAME="$2"
RESULTS_FILEPATH="$PROJECT_FOLDER/$RESULTS_FILENAME"
echo "Testing Unity project: $PROJECT_FOLDER"
echo "Running Unity.app (batch mode, run tests)..."