Skip to content

Instantly share code, notes, and snippets.

View abishekmuthian's full-sized avatar
💭
@Abishek_Muthian

Abishek Muthian abishekmuthian

💭
@Abishek_Muthian
View GitHub Profile
@abishekmuthian
abishekmuthian / Reason.txt
Created July 23, 2021 16:48
Postgres systemd start script when not compiled for systemd
When postgres was not compiled with systemd support, this start script will work.
Source: https://itectec.com/unixlinux/linux-systemd-postgresql-start-script/
/usr/lib/systemd/system/postgresql.service
<TaskerData sr="" dvi="1" tv="5.11.14">
<Profile sr="prof28" ve="2">
<cdate>1615003515868</cdate>
<edate>1616131937187</edate>
<flags>8</flags>
<id>28</id>
<mid0>27</mid0>
<mid1>29</mid1>
<nme>inshorts display</nme>
<App sr="con0" ve="2">
@abishekmuthian
abishekmuthian / COVID19-temperature-correlation.ipynb
Last active March 12, 2020 02:18
Plotting new daily confirmed COVID-19 cases against local highest temperature on that day.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abishekmuthian
abishekmuthian / rules_boost-context-thread-arm64.patch
Last active February 26, 2020 13:25
Patch to fix bazel rule issues for boost library in ARM (aarch64)
This patch fixes ARM (aarch64) bazel build rules for boost libraries when
building ray as discussed in this issue - https://github.com/ray-project/ray/issues/7184.
Patch v2 by Abishek Muthian (@heavyinfo).
--- BUILD.boost 2020-02-23 09:03:02.937872389 +0530
+++ BUILD.boost 2020-02-26 07:18:26.287128627 +0530
@@ -49,6 +49,15 @@
)
config_setting(
+ name = "linux_aarch64",
@abishekmuthian
abishekmuthian / Ray_ARM64.md
Last active July 12, 2023 07:24
Build and Install Ray on ARM (aarch64)

Dependencies

Only dependencies which aren't highly likely to be featured in a ARM development environment are featured here, Obvious dependencies such as Python3, Python2, pip, wheel, GCC etc. aren't covered here.

Bazel

Note : Use bazel 1.x.x for Ray as 2.x.x is not supported.

sudo apt-get install build-essential openjdk-8-jdk unzip
export JAVA_HOME="/usr/bin/java"
wget https://github.com/bazelbuild/bazel/releases/download/1.0.0/bazel-1.0.0-dist.zip
unzip bazel-1.0.0-dist.zip
@abishekmuthian
abishekmuthian / cudf_ARM64_jetson.md
Last active June 16, 2023 15:07
Installing cudf on ARM(aarch64)[Jetson Nano]

My setup

I'm using Nvidia Jetson nano.

Quad-core ARM® Cortex®-A57 MPCore processor

NVIDIA Maxwell™ architecture with 128 NVIDIA CUDA® cores

4 GB 64-bit LPDDR4 1600MHz - 25.6 GB/s

Ubuntu 18.04 LTS

@abishekmuthian
abishekmuthian / pytorch_vision_spacy_torchtext_jetson_nano.sh
Last active March 10, 2022 21:33
Installing PyTorch, torchvision, spaCy, torchtext on Jetson Nanon [ARM]
#!/bin/bash
# This script will install pytorch, torchvision, torchtext and spacy on nano.
# If you have any of these installed already on your machine, you can skip those.
sudo apt-get -y update
sudo apt-get -y upgrade
#Dependencies
sudo apt-get install python3-setuptools
@abishekmuthian
abishekmuthian / build-arrow-armv8.md
Last active August 1, 2022 16:31
Building Apache Arrow and pyarrow on ARMv8

Why build Apache Arrow from source on ARM?

Apache Arrow is an in-memory data structure used in several projects. It's python module can be used to save what's on the memory to the disk via python code, commonly used in the Machine Learning projects. With low RAM, ARM devices can make use of it but there seems to be an configuration error with the packaged binaries as of version 0.15.1 and so we're forced to build and install from the source.

The installation build steps are based on official guidelines but modified for ARM and has taken clues from building Ray for ARM.

My setup

I'm using Nvidia Jetson nano.

Quad-core ARM® Cortex®-A57 MPCore processor