This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
def convert_negative_ids(elements): | |
id_map = {} | |
new_elements = [] | |
for elem in elements: | |
orig_id = int(elem.attrib['id']) | |
new_id = abs(orig_id) | |
id_map[new_id] = orig_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- qtwebengine.pro.orig 2024-07-16 15:50:07 | |
+++ qtwebengine.pro 2024-07-16 15:50:34 | |
@@ -2,6 +2,7 @@ | |
load(qt_parts) | |
load(functions) | |
+QMAKE_CXXFLAGS += -Wno-enum-constexpr-conversion | |
QMAKE_DISTCLEAN += .qmake.cache | |
OTHER_FILES = \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/3rdparty/chromium/v8/src/base/bit-field.h.orig 2024-07-16 13:14:42 | |
+++ src/3rdparty/chromium/v8/src/base/bit-field.h 2024-07-16 13:16:11 | |
@@ -40,7 +40,7 @@ | |
static constexpr U kNumValues = U{1} << kSize; | |
// Value for the field with all bits set. | |
- static constexpr T kMax = static_cast<T>(kNumValues - 1); | |
+ static constexpr T kMax = static_cast<T>((1U << kBits) - 1); | |
template <class T2, int size2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/plugins/hunspell/hunspell.pro.orig 2024-07-14 22:25:32 | |
+++ src/plugins/hunspell/hunspell.pro 2024-07-15 16:47:34 | |
@@ -2,6 +2,9 @@ | |
include(../../config.pri) | |
+INCLUDEPATH += /usr/local/include | |
+LIBS += -L/usr/local/lib -lhunspell | |
+ | |
SUBDIRS += \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp.orig 2024-07-14 16:34:25 | |
+++ src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp 2024-07-14 16:35:23 | |
@@ -70,7 +70,7 @@ | |
typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N - 1)) ) prior; | |
#else | |
typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value + 1)) ) next; | |
- typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior; | |
+ typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value > 0 ? value - 1 : 0))) prior; | |
#endif | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is used to build Qt5 for QGIS on macOS. | |
# see: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/q/qt@5.rb | |
# Set the version of Qt5 to build | |
QT_VERSION=5.15.14 | |
SRC_DIR=qt-everywhere-src-${QT_VERSION} | |
TAR_BALL=qt-everywhere-opensource-src-${QT_VERSION}.tar.xz | |
PREFIX=/opt/qt/${QT_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ./diskspd -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w100 -L ./SEQ1M_Q8T1.dat | |
Command Line: ./diskspd -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w100 -L ./SEQ1M_Q8T1.dat | |
System info: | |
processor count: 16 | |
caching options: fua=0 | |
Input parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ./diskspd -c1G -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w0 -L ./SEQ1M_Q8T1.dat | |
Command Line: ./diskspd -c1G -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w0 -L ./SEQ1M_Q8T1.dat | |
System info: | |
processor count: 16 | |
caching options: fua=0 | |
Input parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'rgeo' | |
require 'rgeo/geo_json' | |
require 'rgeo/proj4' | |
require 'optparse' | |
OptionParser.new do |opts| | |
opts.banner = 'Usage: geojson_to_epsg3857.rb [options]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href='https://unpkg.com/maplibre-gl@3.0.0/dist/maplibre-gl.css' rel='stylesheet' /> | |
<link | |
href="https://www.unpkg.com/@watergis/maplibre-gl-legend@latest/dist/maplibre-gl-legend.css" | |
rel="stylesheet" | |
/> | |
<title>WIP</title> | |
<script src='https://unpkg.com/maplibre-gl@3.0.0/dist/maplibre-gl.js'></script> |
NewerOlder