Skip to content

Instantly share code, notes, and snippets.

View Thilak-KN's full-sized avatar
👀

Thilak Thilak-KN

👀
View GitHub Profile
#Requires AutoHotkey v2.0
; change this value to change how far the cursor moves:
increment := 15
Right::
{
MouseMove(increment, 0, 0, "R")
}
Left::

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@StephanTLavavej
StephanTLavavej / videos.md
Last active October 28, 2025 14:56
C++ Videos by Stephan T. Lavavej

C9 Lectures

BoostCon (now known as C++Now)

  • 2009: I am not aware of recordings for my talks "C++0x Support in Visual Studio 2010" and "The Parallel Patterns Library in Visual Studio 2010". You aren't missing anything, though.
  • 2010: "Data Structure Visualizers in Visual Studio 2010" is irrelevant as the old visualizer machinery has been completely replaced by something much better (and documented).
  • 2012: Regex In C++11 And Boost
@jjtalamonti
jjtalamonti / regexhelper.md
Created July 10, 2022 21:18
Regex helper

Regex Helper

Summary

A Regex Helper, or reuglar expression, is a pattern of special characters that define a search pattern and help manage text.

This is am example of a regex:

/^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/

@Matthew-J-Spencer
Matthew-J-Spencer / PlayerAnimator.cs
Created July 6, 2022 11:30
Control unity animations using code. Video: https://youtu.be/ZwLekxsSY3Y
using System;
using UnityEngine;
using UnityEngine.Tilemaps;
using Random = UnityEngine.Random;
public class PlayerAnimator : MonoBehaviour {
[SerializeField] private float _minImpactForce = 20;
// Anim times can be gathered from the state itself, but
// for the simplicity of the video...
@thewheat
thewheat / server.md
Last active April 6, 2025 10:21
Simple HTTP server examples catered for accessing/sharing files via a web browser

Simple HTTP servers for file transfers

  • Examples of how to set up simple HTTP servers with different languages / libaries
  • Main use case is for
    • HTML pages
    • file transfers
  • Access via a browser with a format like http://your.ip.address.or.hostname.here:8080 (e.g. http://127.0.0.1:8080 / http://localhost:8080 / http://192.168.0.1:8080)
    • Local access IP: 127.0.0.1 / localhost
    • Remote access IP:
      • Some servers will show the IP address in the output
@HimDek
HimDek / Hyper-V in Windows 10 and Windows 11 Home Edition.md
Last active December 3, 2025 12:10
Hyper-V is supported in Pro, Enterprise and Education Edition of Windows 10 and Windows 11. This guide will show you how to enable Hyper-V in Home Editions of Windows 10 and Windows 11.

Hyper-V in Windows 10 and Windows 11 Home Edition

Hyper-V in Windows 10 and Windows 11 allows running Virtual Machine. It is supported only in Pro, Enterprise and Education Edition of Windows 10 and Windows 11 by default. But this guide will show you how to enable it in Home Editions of Windows 10 and Windows 11.

Check if virtualization is enabled:

  • Search for Command Prompt in Windows Start Menu and open it.
  • Type systeminfo and press Enter. Wait for the process to finish
  • Once the results appear, search for the Hyper-V Requirements section which is usually the last one. 11
    • If it says A hypervisor has been detected. Features required for Hyper-V will not be displayed. that means Hyper-V is already enabled and there is no reason following this guide anymore.
  • Otherwise, check for Virtualization Enabled in Firmware:.
@tfga
tfga / colorizeTomcat
Last active June 12, 2023 18:57 — forked from ElMesa/taillog.sh
Colorize logs
#!/usr/bin/env bash
#
# Usage:
#
# catalina.sh run 2>&1 | colorizeTomcat
# tail -200 catalina.out | colorizeTomcat
#
# Previous versions:
#
@rafaelbiriba
rafaelbiriba / tree-report.sh
Last active September 22, 2024 20:20
Generate tree report file on NAS and send it by email (optional)
#!/bin/bash
# Creates DISK0.tree, DISK1.tree, DISKx.tree inside each disk, with the output of tree command.
# After generating the report, it send via email using mail.
# To add more disks, just add DISK[x]=/full/path to the disk. Just make sure that the array index are sequencial.
# Why this?
# With the reports from tree, in case of disk failure, you will know which file got lost and you can recover them, downloading or via backups.
# GIST: https://gist.github.com/rafaelbiriba/0ee7ca2baec1ef80a878c825295f09e1
EMAIL_ADDRESS="" # EMAIL_ADDRESS="[email protected]" or leave it blank "" to disable email
DISKS[0]="/srv/dev-disk-by-id-ata-WDC_WD80EMAZ-00WJTA0_ABC123-part1"
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active December 8, 2025 11:26
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ