Skip to content

Instantly share code, notes, and snippets.

View feniljain's full-sized avatar
🎯
Trying to learn how to learn.

feniljain feniljain

🎯
Trying to learn how to learn.
View GitHub Profile
@feniljain
feniljain / .lldbinit
Created February 4, 2026 01:52
Debugging rust and java FFI-ed application in lldb
# # Ignore JVM signals that LLDB sees as EXC_BAD_ACCESS etc.
# process handle -p true -s false -n false SIGSEGV
# process handle -p true -s false -n false SIGBUS
# process handle -p true -s false -n false SIGILL
# process handle -p true -s false -n false SIGFPE
# process handle -p true -s false -n false SIGPIPE
# process handle -p true -s false -n false SIGUSR1
# process handle -p true -s false -n false SIGUSR2
#
# # `lldb in OSX cannot continue execute after catch BAD_ACCESS`:
@feniljain
feniljain / measure-cpu-disk-usage-of-sys-bench.sh
Last active May 12, 2025 10:26
Simple benchmarking setup and scripts
#!/bin/bash
# keep this off as we are relying on some cmds to fail
# for finding pids
# set -e
. ~/engine/envs/executor.env
cd ~/measure
./target/release/measure &
<?xml version="1.0" encoding="utf-8"?>
<profiles version="21">
<profile kind="CodeFormatterProfile" name="e6-style" version="21">
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
@feniljain
feniljain / main.go
Last active May 15, 2023 15:57
Fix `view_type` key in preset
package main
import (
"encoding/json"
"fmt"
"net/url"
"os"
"os/exec"
"path"
)
@feniljain
feniljain / get-metrics.js
Last active March 24, 2023 09:48
IVS Get Metrics Script
import {
CloudWatchClient,
GetMetricDataCommand,
} from '@aws-sdk/client-cloudwatch';
let cloudWatchClient = new CloudWatchClient({ region: 'ap-south-1' });
async function getMetrics(livestreamSession) {
console.log('before startedTime: ', livestreamSession.startedTime);
console.log('before stoppedTime: ', livestreamSession.stoppedTime);
@feniljain
feniljain / main.go
Last active November 24, 2022 08:14
Livestreaming Bandwidth Estimation Test Script
package main
import (
"fmt"
"os"
"os/exec"
"strconv"
"sync"
"time"
)