Skip to content

Instantly share code, notes, and snippets.

View Sacristan's full-sized avatar

Ģirts Ķesteris Sacristan

View GitHub Profile
@Sacristan
Sacristan / get-git-bash-working-on-windows-terminal.md
Last active August 4, 2021 09:06
OhMyZSH on Windows Terminal
{
    "commandline": "C:\\Program Files\\Git\\bin\\bash.exe --cd-to-home",
    "guid": "{2c375377-8de8-44f6-994f-06952a08070e}",
    "hidden": false,
    "name": "Git-Bash"
},

add in Windows Terminal settings.json under profiles/list

using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class PerlinGridPlacer : EditorWindow
{
private const string RootObjectName = "PerlinGridPlacerRESULT";
[MenuItem("Window/Tools/PerlinGridPlacer")]
@Sacristan
Sacristan / push_commits_by_chunks.sh
Last active April 6, 2024 15:14
Push commits by chunks
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=10
# check if the branch exists on the remote
# if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# # if so, only push the commits that are not on the remote already
# range=$REMOTE/$BRANCH..HEAD
# else
# # else push all the commits
{
"version": 5,
"quotes":[
"If you want to achieve greatness stop asking for permission.",
"Things work out best for those who make the best of how things work out.",
"To live a creative life, we must lose our fear of being wrong.",
"If you are not willing to risk the usual you will have to settle for the ordinary.",
"Trust because you are willing to accept the risk, not because it’s safe or certain.",
"All our dreams can come true if we have the courage to pursue them.",
"Good things come to people who wait, but better things come to those who go out and get them.",
@Sacristan
Sacristan / instruction.md
Last active June 21, 2018 08:53
Store3D WSL

Get Store3D

  • Ensure that git checkout as-is, commit as-is git config --global core.autocrlf false

  • Ensure that You have cloned Store3D correctly

WSL configuration

@Sacristan
Sacristan / gist:e4bab084b2702b4702db01ce176740b5
Created June 18, 2018 12:43
Setup Debian subsystem for Yarn
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo apt-get install -y nodejs && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && sudo apt-get update && sudo apt-get install -y yarn
git lfs ls-files
git lfs track <filename>
cd /c/Users/girts.kesteris/AppData/Local/Android/sdk/platform-tools
./adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG
./adb shell dumpsys gfxinfo <PACKAGE_NAME>
___
/c/Users/girts.kesteris/AppData/Local/Android/sdk/platform-tools/adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG
@Sacristan
Sacristan / mobile_video.md
Last active November 14, 2017 08:19
Mobile video resolutions
"C:\Program Files\Unity\Editor\Unity.exe" -force-opengl