Skip to content

Instantly share code, notes, and snippets.

View saiarcot895's full-sized avatar

Saikrishna Arcot saiarcot895

  • Microsoft
  • Bellevue, WA
View GitHub Profile
@saiarcot895
saiarcot895 / btrfsSubvolumes.c
Created October 30, 2021 17:57
Getting list of nested subvolumes easily
#include <linux/btrfs.h>
#include <linux/btrfs_tree.h>
#include <endian.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
@saiarcot895
saiarcot895 / update-mongodb-code.patch
Last active April 4, 2017 02:41
Support for libmongoc 1.0
Index: collectd-5.5.1/configure.ac
===================================================================
--- collectd-5.5.1.orig/configure.ac
+++ collectd-5.5.1/configure.ac
@@ -2618,9 +2618,10 @@ AC_ARG_WITH(libmongoc, [AS_HELP_STRING([
[
if test "x$withval" = "xyes"
then
- with_libmongoc="yes"
+ with_libmongoc="yes"
### Keybase proof
I hereby claim:
* I am saiarcot895 on github.
* I am saiarcot895 (https://keybase.io/saiarcot895) on keybase.
* I have a public key whose fingerprint is FC9F 8E19 6686 A8CD 58FF 1DEF 203B 47C2 C66B 784B
To claim this, I am signing this object:
#0 nasal::internal::GhostMetadata::addDerived (this=0x0, derived=0x24261df0) at /dev/shm/tmp-simgear-x86_64-w64-mingw32.shared/simgear-3.4.0/simgear/nasal/cppbind/Ghost.cxx:70
os = {<std::basic_ostream<char, std::char_traits<char> >> = {<std::basic_ios<char, std::char_traits<char> >> = {<std::ios_base> = {_vptr.ios_base = 0x6fce8f40 <vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >+64>, static boolalpha = std::_S_boolalpha, static dec = std::_S_dec, static fixed = std::_S_fixed, static hex = std::_S_hex, static internal = std::_S_internal, static left = std::_S_left, static oct = std::_S_oct, static right = std::_S_right, static scientific = std::_S_scientific, static showbase = std::_S_showbase, static showpoint = std::_S_showpoint, static showpos = std::_S_showpos, static skipws = std::_S_skipws, static unitbuf = std::_S_unitbuf, static uppercase = std::_S_uppercase, static adjustfield = std::_S_adjustfield, static basefield = std::_S_basefield, static floatf
@saiarcot895
saiarcot895 / gist:8c032c0ebbc13da0e26f
Created June 17, 2015 02:25
test-simgear_canvas_layout-canvas_layout.exe backtrace
#0 nasal::internal::GhostMetadata::addDerived (this=this@entry=0x0, derived=derived@entry=0x2c813a0) at /dev/shm/tmp-simgear-x86_64-w64-mingw32.shared/simgear-3.4.0/simgear/nasal/cppbind/Ghost.cxx:70
os = {<std::basic_ostream<char, std::char_traits<char> >> = {<std::basic_ios<char, std::char_traits<char> >> = {<std::ios_base> = {_vptr.ios_base = 0x948f40 <vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >+64>, static boolalpha = std::_S_boolalpha, static dec = std::_S_dec, static fixed = std::_S_fixed, static hex = std::_S_hex, static internal = std::_S_internal, static left = std::_S_left, static oct = std::_S_oct, static right = std::_S_right, static scientific = std::_S_scientific, static showbase = std::_S_showbase, static showpoint = std::_S_showpoint, static showpos = std::_S_showpos, static skipws = std::_S_skipws, static unitbuf = std::_S_unitbuf, static uppercase = std::_S_uppercase, static adjustfield = std::_S_adjustfield, static basefield = std::_S_ba
@saiarcot895
saiarcot895 / Command Run
Created June 9, 2015 15:20
i686-w64-mingw32.shared Flightgear crash
/fgfs.exe --fg-root=$(winepath -w ~/Documents/LaunchpadDebian/Flightgear/Stable/flightgear-data) --disable-random-objects --prop:/sim/rendering/texture-compression=off --prop:/sim/rendering/quality-level=0 --aircraft=ufo --disable-ai-traffic --disable-sound --prop:/sim/rendering/random-vegetation=0 --prop:/sim/rendering/random-buildings=0 --disable-ai-models --ignore-autosave
[ 97%] [ 97%] Building CXX object src/osgPresentation/CMakeFiles/osgPresentation.dir/AnimationMaterial.obj
cd /dev/shm/tmp-openscenegraph-i686-w64-mingw32.static/OpenSceneGraph-3.2.1.build/src/osgPresentation && /home/saikrishna/Downloads/mxe-clone/usr/bin/i686-w64-mingw32.static-g++ -DOSG_LIBRARY_STATIC -D__STDC_CONSTANT_MACROS -fpermissive -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -O3 -DNDEBUG @CMakeFiles/osgPresentation.dir/includes_CXX.rsp -o CMakeFiles/osgPresentation.dir/AnimationMaterial.obj -c /dev/shm/tmp-openscenegraph-i686-w64-mingw32.static/OpenSceneGraph-3.2.1/src/osgPresentation/AnimationMaterial.cpp
Building CXX object src/osgPresentation/CMakeFiles/osgPresentation.dir/CompileSlideCallback.obj
cd /dev/shm/tmp-openscenegraph-i686-w64-mingw32.static/OpenSceneGraph-3.2.1.build/src/osgPresentation && /home/saikrishna/Downloads/mxe-clone/usr/bin/i686-w64-mingw32.static-g++ -DOSG_LIBRARY_STATIC -D__STDC_CONSTANT_MACROS -fp
set -e
DIR="$( cd "$( dirname "$0" )" && pwd )"
TARGET_DIR="$HOME/.config/google-chrome/NativeMessagingHosts"
# If you use Chromium, uncomment the next line, and comment the previous line
# TARGET_DIR="$HOME/.config/chromium/NativeMessagingHosts"
HOST_NAME=com.initiated.chrome_libnotify_notifications
# Create directory to store native messaging host.