Skip to content

Instantly share code, notes, and snippets.

View zxmarcos's full-sized avatar

Marcos Medeiros zxmarcos

View GitHub Profile
@kconner
kconner / macOS Internals.md
Last active April 21, 2025 08:08
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@carlosedp
carlosedp / gtkwave.tcl
Last active November 9, 2024 19:56
GTKWave TCL script to colorize and group signals for Chisel projects
#
# GTKWave Grouping and colorizing script
#
# Load the trace with `gtkwave -S gtkwave.tcl yourtrace.vcd`
#
# Customize the inserted traces in the TOPlevel section below
# and at the bottom in the add_signals function calls
#
# Customize this section as needed
@takanuva
takanuva / agt.h
Last active July 25, 2022 19:57
Simple generic print() and scan() macros
/*******************************************************************************
* Copyright 2022 Paulo Torrens *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to *
* deal in the Software without restriction, including without limitation the *
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or *
* sell copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
@HViktorTsoi
HViktorTsoi / ShadowHighlightCorrection.py
Last active April 11, 2025 15:39
Image shadow and highlight correction/adujstment with opencv.
import numpy as np
import cv2
def correction(
img,
shadow_amount_percent, shadow_tone_percent, shadow_radius,
highlight_amount_percent, highlight_tone_percent, highlight_radius,
color_percent
):
"""
@abelcallejo
abelcallejo / README.md
Last active April 8, 2025 22:39
Installing GDAL 3.2.1 on Amazon Linux 2

Installing GDAL 3.2.1 on Amazon Linux 2

gdal linux yum

As of this day, this is probably the only and fastest way of installing it.

Package requirements

Based from the GDAL and PROJ build requirements, here is the full list of required packages to install:

@kgslotwinski
kgslotwinski / csv_importer.js
Last active October 19, 2022 14:54
CSV Importer - Tampermonkey script
// ==UserScript==
// @name CSVImporter
// @version 1.0
// @description Tampermonkey script for importing CSV to web forms. Set desired @match and configure events functions.
// @author Konrad "Tree" Słotwiński
// @match https://www.google.com/*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@peach-e
peach-e / HelloWorld Example in Quartus.md
Last active October 20, 2024 15:31
Quick tutorial to get RZ-EasyFPGA from AliExpress going with Quartus

Using

  • FPGA Development Board: RZ-EasyFPGA A2.2 from AliExpress, featuring the Altera Cyclone IV.
  • OS: Ubuntu 18.04 LTS (bionic)

Quartus Installation

  1. Get the Quartus Lite installer, ModelSim installer (optional), and the Cyclone IV development Package from the Altera website.
  2. Install Quartus. Root not required
    • Command:
@nico-lab
nico-lab / h264_nvenc.txt
Last active March 28, 2025 13:52
ffmpeg -h encoder=h264_nvenc
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11
h264_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
@Keenuts
Keenuts / readme.md
Last active February 5, 2025 20:50
GSoC 2017 | Virgl Windows Driver

GSOC 2017 | Virgl Windows Driver

Project links

The project is split into several parts:

  • The kernel driver, with simple 3D command forwarding and 3D resource allocation
  • The userland driver, in fact the OpenGL backend
  • The reference, explaining virtio-gpu commands

https://github.com/Keenuts/virtio-gpu-win-icd \

@dublado
dublado / gist:f584cdd895eb6db0b74c199d532d2ac8
Created May 25, 2017 21:33
Nomes das Tabelas do Protheus/TOTVS
Nomes das Tabelas
SX1 Manutenção de Perguntas de parametrização (movimentações, consultas e relatórios)
SX2 Manutenção dos Arquivos
SX3 Manutenção dos Campos
SX4 Configuração de Agenda de Relatórios e Processos
SX5 Manutenção de Tabelas
SX6 Manutenção de Parâmetros
SX7 Manutenção de Gatilhos de Campos (SX3)
SX9 Manutenção de Relacionamento entre Arquivos (SX2)
SXA Manutenção de Pastas Cadastrais dos Arquivos (SX2)