Skip to content

Instantly share code, notes, and snippets.


Joshua Arulsamy jarulsamy

  • University of Wyoming
  • Laramie WY
  • 12:46 (UTC -06:00)
View GitHub Profile
jarulsamy / TurnOffDisplay.cpp
Created June 6, 2023 06:36
Turn off display in windows
View TurnOffDisplay.cpp
#include <iostream>
#include <windows.h>
int main()
return 0;
jarulsamy /
Last active March 19, 2023 21:14
Why does VS Code set itself as the default application for directories?! I may be an emacs user, but even I don't want my text editor intercepting every call to xdg-open!
xdg-mime default org.gnome.Nautilus.desktop inode/directory
jarulsamy / msort.c
Last active February 2, 2023 19:12
View msort.c
/* An alternative to qsort, with an identical interface.
This file is part of the GNU C Library.
Copyright (C) 1992-2023 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
jarulsamy /
Created January 19, 2023 00:00
Instructions for flashing the Nvidia Jetson Xavier AGX
#!/usr/bin/env bash
# Flashing the Nvidia Jetson Xavier NGX
# Good luck, Nvidia - as usual - did not make this easy for anyone.
# (this is a massive pain on non-ubuntu hosts).
# 1. Install these packages
# $ sudo pacman -S qemu-user-static qemu-user-binfmt
#!/usr/bin/env python3
Convert malformed calendar entries into Org-Agenda TODO items.
1. Export Canvas calendar to Google Calendar.
2. Export Google Calendar to ICS.
3. Load ICS into Emacs iCal.
4. Pipe contents of Emacs iCal schedule into this script. (cat | ./ >
5. Profit?
jarulsamy /
Created November 23, 2022 20:48
Plot powder diffraction data directly to an Excel document.
MIT License
Copyright (c) 2022 Joshua Arulsamy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#!/usr/bin/env python3
"""Get all the Github repositories for the currently authenticated gh-cli user."""
import json
import os
import subprocess
from pathlib import Path
from typing import Union
import requests
jarulsamy /
Last active July 29, 2022 19:24
Linux backup home directory daily.
#!/usr/bin/env bash
# Backup home directory
set -o errexit
set -o nounset
set -o pipefail
jarulsamy / RebootLinux.bat
Last active June 23, 2022 20:21
Reboot to Linux From Windows
View RebootLinux.bat
:: _Sigh_ Windows dumbness...
powershell .\RebootLinux.ps1
jarulsamy / cloudSettings
Created July 20, 2020 03:06
Visual Studio Code Settings Sync Gist
View cloudSettings