Skip to content

Instantly share code, notes, and snippets.

@acxz
acxz / update_rocm_pkgs.sh
Last active September 10, 2023 04:13
Script to update PKGBUILD files in the rocm-arch/rocm-arch repo
#!/bin/bash
# Clone the rocm-arch repository if it hasn't been cloned yet
if [ ! -d rocm-arch ]; then
git clone git@github.com:rocm-arch/rocm-arch
fi
# Move to the rocm-arch directory
cd rocm-arch
From e6db2ed3e1ffc2489223dec84885bcacf702a261 Mon Sep 17 00:00:00 2001
From: acxz <17132214+acxz@users.noreply.github.com>
Date: Mon, 27 Sep 2021 13:41:32 -0400
Subject: [PATCH] updpkg 4.2.0
---
.SRCINFO | 7 +++----
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
From b88c90ae704e467fd84f80ee3fed134e72ce7dd9 Mon Sep 17 00:00:00 2001
From: acxz <17132214+acxz@users.noreply.github.com>
Date: Mon, 27 Sep 2021 13:35:46 -0400
Subject: [PATCH] updpkg 4.1.0
---
.SRCINFO | 7 +++----
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
@acxz
acxz / slycot-pip-install-no-cache.txt
Last active October 2, 2020 21:45
slycot-pip-install
2020-10-02T12:58:56,883 Non-user install because user site-packages disabled
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-ephem-wheel-cache-txtvas2y
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Initialized build tracking at /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Created build tracker: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Entered build tracker: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-install-cqxlrqka
2020-10-02T12:58:56,948 1 location(s) to search for versions of slycot:
2020-10-02T12:58:56,948 * https://pypi.org/simple/slycot/
2020-10-02T12:58:56,948 Fetching project page and analyzing links: https://pypi.org/simple/slycot/
@acxz
acxz / CMakeLists.txt
Created May 23, 2020 16:26
test-numdiff-gtsam
project(test-gtsam)
cmake_minimum_required(VERSION 2.8)
find_package(GTSAM REQUIRED)
include_directories(${GTSAM_INCLUDE_DIR})
add_executable(test-numdiff test-numdiff.cpp)
target_link_libraries(test-numdiff gtsam)
@acxz
acxz / arena-tbb.txt
Created April 12, 2020 16:55
Comparison of task_scheduler_init and task_arena
numberOfProblems = 1000000
problemSize = 4
With 1 threads:
Without memory allocation, grain size = 1, time = 0.226055
Without memory allocation, grain size = 10, time = 0.228282
Without memory allocation, grain size = 100, time = 0.22368
Without memory allocation, grain size = 1000, time = 0.223329
With memory allocation, grain size = 1, time = 0.312074
With memory allocation, grain size = 10, time = 0.312296
With memory allocation, grain size = 100, time = 0.314105
@acxz
acxz / pid.py
Created February 23, 2020 22:45
class pidController:
def __init__(self, kp, ki, kd, max_integral_error, error_margin):
self.kp = kp
self.ki = ki
self.kd = kd
self.max_integral_error = max_integral_error
self.error_margin = error_margin
self.total_error = 0
Increasing per-process limit of core file size to infinity.
- Existing per-process limit (soft=18446744073709551615, hard=18446744073709551615) is enough for us (need only 18446744073709551615)
LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
LogInit: Display: Running engine without a game
LogPlatformFile: Not using cached read wrapper
LogTaskGraph: Started task graph with 5 named threads and 8 total threads with 3 sets of task threads.
LogStats: Stats thread started at 0.042843
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: -5:00, Platform Override: ''
LogUnixPlatformFile: Warning: create dir('/opt/unreal-engine/Engine/Saved/Config/Linux/Manifest.ini') failed: errno=13 (Permission denied)
LogUnixPlatformFile: Warning: create dir('/opt/unreal-engine/Engine/Saved/Config/Linux/Manifest.ini') failed: errno=13 (Permission denied)
[ 1%] Generating API documentation with Doxygen
warning: Tag 'PERL_PATH' at line 2117 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api_tagfile.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2139 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api_tagfile.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'PERL_PATH' at line 2117 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2139 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-1
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
-> Flagged Out Of Date AUR Packages: gmock-py3 gtest-py3 python-databricks-cli ros-melodic-qt-dotgraph ros-melodic-qt-gui ros-melodic-qt-gui-cpp ros-melodic-qt-gui-py-common
:: There are 2 providers available for gazebo: