Skip to content

Instantly share code, notes, and snippets.

View arpit15's full-sized avatar

Arpit Agarwal arpit15

View GitHub Profile
@arpit15
arpit15 / img_utils.py
Created September 20, 2022 14:21
matplotlib image utils for point inspection
import matplotlib.pyplot as plt
import numpy as np
from ipdb import set_trace
def analyze_imagepair(im1, im2):
fig, axs = plt.subplots(1,2)
# axs[0].imshow( (normals_without_bg_local+1)/2 )
axs[0].imshow(im1)
axs[0].axis("off")
@arpit15
arpit15 / path_integrator_refined.py
Created September 16, 2022 14:41
python path integrator mitsuba3
import os
import drjit as dr
import mitsuba as mi
import matplotlib.pyplot as plt
from ipdb import set_trace
# Set the desired mitsuba variant
# mi.set_variant('cuda_ad_rgb')
mi.set_variant('llvm_ad_rgb')
@arpit15
arpit15 / crashdump_mit3_path.txt
Created September 16, 2022 14:40
mitsuba3 python path integrator dump
python customplugins/path_integrator_refined.py 2>&1 crashdump.txt
Critical Dr.Jit compiler failure: jit_llvm_compile(): parsing failed. Please see the LLVM IR and error message below:
define void @drjit_32c09595272bc74a586d2fe8f7e4726e(i64 %start, i64 %end, i8** noalias %params) #0 {
entry:
%callables = load i8**, i8*** @callables
%buffer = alloca i8, i32 736, align 32
ubuntu@ip-10-0-0-21:/var/log$ cat chef-client.log
# Logfile created on 2022-06-30 15:08:39 +0000 by logger.rb/v1.4.3
[2022-06-30T15:08:41+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /etc/chef (One version per cookbook)
Starting Cinc Client, version 17.2.29
Patents: https://www.chef.io/patents
[2022-06-30T15:08:42+00:00] INFO: *** Cinc Client 17.2.29 ***
[2022-06-30T15:08:42+00:00] INFO: Platform: x86_64-linux
[2022-06-30T15:08:42+00:00] INFO: Cinc-client pid: 1116
[2022-06-30T15:08:46+00:00] WARN: Run List override has been provided.
[2022-06-30T15:08:46+00:00] WARN: Original Run List: []
ubuntu@ip-10-0-0-229:/var/log$ cat cfn-init.log
2022-06-28 14:29:19,508 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-28 14:29:19,509 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-28 14:29:19,707 [INFO] -----------------------Starting build-----------------------
2022-06-28 14:29:19,707 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-28 14:29:19,710 [INFO] Running configSets: deployFiles
2022-06-28 14:29:19,711 [INFO] Running configSet deployFiles
2022-06-28 14:29:19,712 [INFO] Running config deployConfigFiles
2022-06-28 14:29:19,712 [DEBUG] No packages specified
2022-06-28 14:29:19,712 [DEBUG] No groups specified
ubuntu@ip-10-0-0-151:/var/log$ cat cloud-init.log
2022-06-27 21:18:52,349 - util.py[DEBUG]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 running 'init-local' at Mon, 27 Jun 2022 21:18:52 +0000. Up 15.26 seconds.
2022-06-27 21:18:52,349 - main.py[DEBUG]: No kernel command line url found.
2022-06-27 21:18:52,349 - main.py[DEBUG]: Closing stdin.
2022-06-27 21:18:52,352 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2022-06-27 21:18:52,352 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2022-06-27 21:18:52,376 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2022-06-27 21:18:52,376 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2022-06-27 21:18:52,376 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2022-06-27 21:18:52,376 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
ubuntu@ip-10-0-0-151:/var/log$ cat cfn-init.log
2022-06-27 21:19:16,660 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 21:19:16,661 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute3
2022-06-27 21:19:16,744 [INFO] -----------------------Starting build-----------------------
2022-06-27 21:19:16,745 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 21:19:16,745 [INFO] Running configSets: deployFiles
2022-06-27 21:19:16,746 [INFO] Running configSet deployFiles
2022-06-27 21:19:16,748 [INFO] Running config deployConfigFiles
2022-06-27 21:19:16,748 [DEBUG] No packages specified
2022-06-27 21:19:16,748 [DEBUG] No groups specified
ubuntu@ip-10-0-0-178:/var/log$ cat cloud-init.log
2022-06-27 18:57:08,433 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~20.04.2 running 'init-local' at Mon, 27 Jun 2022 18:57:08 +0000. Up 34.37 seconds.
2022-06-27 18:57:08,433 - main.py[DEBUG]: No kernel command line url found.
2022-06-27 18:57:08,433 - main.py[DEBUG]: Closing stdin.
2022-06-27 18:57:08,436 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2022-06-27 18:57:08,437 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2022-06-27 18:57:08,498 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2022-06-27 18:57:08,499 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2022-06-27 18:57:08,499 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2022-06-27 18:57:08,499 - stages.py[DEBUG]: no cache found
ubuntu@ip-10-0-0-178:/var/log$ cat cfn-init.log
2022-06-27 18:57:34,949 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 18:57:34,950 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-27 18:57:35,041 [INFO] -----------------------Starting build-----------------------
2022-06-27 18:57:35,042 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 18:57:35,042 [INFO] Running configSets: deployFiles
2022-06-27 18:57:35,043 [INFO] Running configSet deployFiles
2022-06-27 18:57:35,044 [INFO] Running config deployConfigFiles
2022-06-27 18:57:35,044 [DEBUG] No packages specified
2022-06-27 18:57:35,044 [DEBUG] No groups specified
# Uncomment the lines with the options you want to activate (by deleting the preceding "#")
set -g default-terminal "screen-256color"
# Allow mouse interaction
set-option -g mouse on
# Change prefix key to CTRL+A. "C-" stands for CTRL, "M-" stands for ALT key
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix