Skip to content

Instantly share code, notes, and snippets.

View alec1o's full-sized avatar
🐋
I may be slow to respond.

Alecio Furanze (Ale) alec1o

🐋
I may be slow to respond.
View GitHub Profile
@alec1o
alec1o / .gitattributes
Created April 25, 2025 12:13
Git LFS for GAMEDEV
# Auto detect text files and perform LF normalization
* text=auto
# Images - LFS Tracking for common image formats
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
@alec1o
alec1o / json.md
Created December 11, 2024 13:09 — forked from robertcoltheart/json.md
Json parser in < 100 lines
public class JsonParser
{
    public object Parse(string value)
    {
        return value.Trim() switch
        {
            {Length: 0} => null,
            var json when json[0] == '{' && json[^1] == '}' => JsonObject(json),
            var json when json[0] == '[' && json[^1] == ']' => JsonArray(json),
@alec1o
alec1o / .gitattributes
Created July 20, 2024 19:28 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@alec1o
alec1o / CountryCodes.json
Created June 13, 2024 10:23 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@alec1o
alec1o / README.md
Last active June 1, 2024 23:29
GitHub nuget registry
@alec1o
alec1o / .gitignore
Last active April 7, 2024 08:00
Unity Engine .gitignore file
# BEGIN! ######################################################
# Updates from: https://gist.github.com/alec1o/95c0d758ff448baaee26e9e72adaaef2
# build folders
/[Oo]utput/
/[Oo]ut/
/.[Oo]ut/
/[Dd]ist/
/.[Dd]ist/
@alec1o
alec1o / main.js
Last active September 15, 2023 17:45
Youtube remove shorts (reels) script
const INTERVAL = 1000;
const HACK_VALUE = '';
const DEBUG = true;
const DEBUG_MAIN_PAGE = true
const DEBUG_INTERVAL = false;
const DEBUG_SEARCH_REELS = false;
const DEBUG_VIDEO_AS_REELS = false;
setInterval(() => {
@alec1o
alec1o / Remove videos from Youtube Watch Later playlist.md
Created September 15, 2023 14:47 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@alec1o
alec1o / changeuser.sh
Created June 11, 2023 04:14
update user in existent old commits
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "my@old-email.here" ]
@alec1o
alec1o / UnityWebRequestUsage.cs
Last active July 10, 2023 06:28 — forked from emoacht/UnityWebRequestUsage.cs
Sample usage of UnityWebRequest
using System.Collections;
using UnityEngine;
using UnityEngine.Experimental.Networking;
public class UnityWebRequestUsage : MonoBehaviour
{
void Start()
{
StartCoroutine(GetText());
}