Skip to content

Instantly share code, notes, and snippets.

View 3xau1o's full-sized avatar
馃幁

Saulo Palazio 3xau1o

馃幁
View GitHub Profile
@bmitc
bmitc / GLFWWindowTest.fs
Last active July 11, 2024 02:54
GLFW window with SkiaSharp rendering in F#
(*
The following creates a GLFW window and then draws to the window's OpenGL context using SkiaSharp,
which are .NET bindings for Skia. The bindings shown that look like `glfw<name>` are F# bindings to
GLFW and directly match the GLFW function names. So this example could even be used as a blueprint
for using GLFW and Skia together in other languages.
*)
open System
open SkiaSharp
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class Application extends javafx.application.Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("hello-view.fxml"));
@harrybiddle
harrybiddle / test.yml
Created September 5, 2020 08:10
Skip GitHub Actions for Draft PRs
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
jobs:
build:
if: github.event.pull_request.draft == false
@q-hung
q-hung / WIN10.MD
Last active October 16, 2025 16:06
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

@danieldogeanu
danieldogeanu / MakePowerShellRememberSSHPassphrase.md
Last active October 29, 2025 07:52
How to make Powershell remember the SSH key passphrase.

You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:

  1. Start the ssh-agent from Windows Services:
  • Type Services in the Start Menu or Win+R and then type services.msc to launch the Services window;
  • Find the OpenSSH Authentication Agent in the list and double click on it;
  • In the OpenSSH Authentication Agent Properties window that appears, choose Automatic from the Startup type: dropdown and click Start from Service status:. Make sure it now says Service status: Running.
  1. Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
@jjvillavicencio
jjvillavicencio / starUml3.md
Last active August 11, 2025 12:07
StarUml 3.

Recientemente StarUML se actualiz贸 de 2.0 a 3.0. El m茅todo de crack original, la forma de modificar la funci贸n de verificaci贸n de licencia no se puede usar. La ubicaci贸n de instalaci贸n ha cambiado y se ha encontrado el archivo LicenseManagerDomain.js. 驴Qu茅 deber铆a hacer? El viejo conductor les dijo a todos que resolvieran el problema.

StarUML est谩 escrito en nodejs. Espec铆ficamente, est谩 escrito en el marco frontal de Electron. Todo el c贸digo fuente de starUML en la nueva versi贸n viene empaquetado por la herramienta asar.

Ingresar al directorio (Windows)

C:\Program Files\StarUML\resources

@arruw
arruw / ApiController.cs
Last active January 15, 2025 14:18
ASP.NET Core - Generic web API controller with generic repository pattern (created on, modified on, soft delete) ... view demo https://github.com/matjazmav/generic-api
[Authorize]
[Route("api/[controller]")]
public abstract class ApiController<T> : Controller where T : class, IEntity
{
private IApplicationRepository<T> _repository;
public ApiController(IApplicationRepository<T> repository)
{
_repository = repository;
}
@akjir
akjir / HexGrid.scala
Created June 6, 2013 13:33
Creates a simple hex grid using JavaFX and Scala.
package ca.akjir.hex
import javafx.application.Application
import javafx.event.EventHandler
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.canvas.Canvas
import javafx.scene.canvas.GraphicsContext
import javafx.scene.input.MouseEvent
import javafx.scene.paint.Color