Skip to content

Instantly share code, notes, and snippets.

View uditagarwal97's full-sized avatar

Udit Kumar Agarwal uditagarwal97

View GitHub Profile
@MangaD
MangaD / abi.md
Last active February 2, 2026 14:58
Comprehensive Guide to the Application Binary Interface (ABI) in C and C++

๐Ÿ“Œ Comprehensive Guide to the Application Binary Interface (ABI) in C and C++

CC0

Disclaimer: ChatGPT generated document.

The Application Binary Interface (ABI) defines how programs interact at the binary level. It is crucial for compatibility, function calling conventions, object layout, name mangling, and exception handling in C and C++.

Understanding the ABI is important for:

@uditagarwal97
uditagarwal97 / notes.txt
Created May 23, 2017 11:55
Error extraction using Travis API
In oreder to access Travis API, we need a client either via http , travis CLI (written in ruby), ruby(for making http headers) or travisPy(Python based travis API client).
I used TravisPy as API client. https://travispy.readthedocs.io/en/stable/
Now, in order to extract errors thrown by travis servers we need to somehow access log files generated after each job.
In order to extract logs, I followed the following route:
User(1) ---> Repository(2) ---> Build(3) ---> Job(4) ---> log(5) ---> log.body()(6)
1) After installation of TravisPy by "pip install travispy", we need to authenticate user.
@uditagarwal97
uditagarwal97 / README.md
Last active March 8, 2017 22:07 — forked from jadonk/README.md
Hacks and node-beaglebone-boot

Current status:

playdoh:BBBlfs jason$ node --version
v7.5.0
playdoh:BBBlfs jason$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
@uditagarwal97
uditagarwal97 / gist:e9d66c1fa766398aa762c61a1b36c2f4
Last active March 8, 2017 13:52
u-Boot Cross Compilation for ARM335x
-----------------------------------OS--------------------------------------------------------------
uka_in@madaari:~$ uname -a
Linux madaari 4.4.0-64-generic #85~14.04.1-Ubuntu SMP Mon Feb 20 12:10:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
----------------------------------arm-linux-gnueabihf-gcc Version----------------------------------
uka_in@madaari:~$ ${CC}gcc --version #toolchain used : gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@nareix
nareix / gist:c94db8aad2123612dca0
Last active March 26, 2017 19:50
use qemu run u-boot
// qemu run arm
// https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=112259
qemu-system-arm -kernel kernel-qemu-4.1.7-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda 2015-09-24-raspbian-jessie.img
// qemu machine list
Supported machines are:
akita Akita PDA (PXA270)
borzoi Borzoi PDA (PXA270)
canon-a1100 Canon PowerShot A1100 IS
// C program for Red-Black Tree insertion
#include<stdio.h>
#include<stdlib.h>
//A Red-Black tree node structure
struct node
{
int data; // for data part
char color; // for color property