Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View oktomus's full-sized avatar

Kevin Masson oktomus

View GitHub Profile
@oktomus
oktomus / tell_me_the_difference.py
Last active October 23, 2020 20:41
Tell me the difference
import requests
import urllib.request
import time
from bs4 import BeautifulSoup
import difflib
import os
import smtplib
import email.message
import io
I am attesting that this GitHub handle oktomus is linked to the Tezos account tz1YPLHAyrv1NUy8e1tB1bz9Ewwz3waTDpnU for tzprofiles
sig:edsigtqwkME8FMhC2W8YHUGiFTCpTj1VFDcGh1V8Ld2tRrCFz1uLcqDu6ESczbJn1UYETwZFh5dC3KMTQNrkq2bK1UZp4MHYESY
@oktomus
oktomus / ScriptCompilationTime.cs
Created March 30, 2023 11:04
Monitor time taken to recompile scripts in Unity and log it
using System;
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
public static class ScriptCompilationTime
{
private const string FileName = ".AssemblyReloadStarted.txt";
private static readonly string FilePath = Path.Combine(Application.dataPath, FileName);
@oktomus
oktomus / MaximizeStandaloneWindow.cs
Created July 31, 2020 13:25
Maximize Unity standalone window
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using UnityEngine;
using System.Diagnostics;
/// <summary>
/// Source : https://improve.dk/minimizing-and-maximizing-windows/
/// </summary>
@oktomus
oktomus / fork-custom-commands.md
Last active January 30, 2024 22:52
Fork custom commands

With custom commands, you are one shortcut away to run commands thanks to the Quick Launch (Ctrl+P, ⌘+P).

Custom commands can be configured in File > Preferences > Custom commands, or by editing the json file custom-commands.json located in AppData/Local/Fork on Windows and ~/Library/Application Support/com.DanPristupov.Fork/custom-commands.json on MacOS.

Please share your own custom commands :)

How to use

Fork commands are posted as comments on this gist. Press CTRL+F to search for commands.