Skip to content

Instantly share code, notes, and snippets.

@erin-allison
erin-allison / fourteen.patch
Last active November 30, 2022 07:10
vGPU_Unlock Patches
--- ./common/inc/nv-time.h
+++ ./common/inc/nv-time.h
@@ -205,7 +205,7 @@
// the requested timeout has expired, loop until less
// than a jiffie of the desired delay remains.
//
- current->state = TASK_INTERRUPTIBLE;
+ current->__state = TASK_INTERRUPTIBLE;
do
{
@arbakker
arbakker / README.md
Last active August 12, 2023 15:22
QGIS processing tool for joining PDOK AHN3 WCS with point data

PDOK AHN3 WCS QGIS Processing Tool

QGIS processing tools for joining PDOK AHN3 WCS (elevation) data with point data.

Tested with QGIS version 3.18, will most likely work with all QGIS version 3.X.

Installation

  1. Download pdok-ahn3-wcs-tool.py
  2. Open the QGIS Processing Toolbox and click Add Script to Toolbox... and browse to the downloaded pdok-ahn3-wcs-tool.py file:
@rmi1974
rmi1974 / usb_device_descriptor_patching.md
Last active November 19, 2023 04:24
Modify USB device descriptors/properties by patching firmware #firmware #debug
@muminoff
muminoff / pano-converter3.py
Created June 17, 2017 16:28
Equirectangular panorama to cube map (Python 3)
import sys
from PIL import Image
from math import pi,sin,cos,tan,atan2,hypot,floor
from numpy import clip
# get x,y,z coords from out image pixels coords
# i,j are pixel coords
# face is face number
# edge is edge length
def outImgToXYZ(i,j,face,edge):
@will-hart
will-hart / README.md
Last active March 22, 2024 04:55
Stitch together tilemaps into a single image

Why?

This is a simple Python / PIL utility for taking a series of images in a tile map set and stitching them together into a single image. This is being used to convert these http://forums.bistudio.com/showthread.php?178671-Tiled-maps-Google-maps-compatible-(WIP) for www.anvilproject.com.

How?

  1. Drop the stitcher.py file into the root directory of your tile map set, where all the numbered folders are
  2. Edit two lines in the file, these are commented - one for the number of folders and one for the number of images in each folder
@jgomezdans
jgomezdans / stitch_files.sh
Created July 20, 2012 18:35
A script to stitch files with GDAL tools.
#!/bin/bash
# This script stitches, reprojects and builds a multi-band TIF file
# from MODIS HDF product data. The script is geared towards the
# MODIS GPP product (MOD17), although it is easy to modify it to work
# with other products.
# Author: J Gómez-Dans (NCEO/UCL)
# URL: http://jgomezdans.github.com/stitching-together-modis-data.html