View flash.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
View Cal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Convert malformed calendar entries into Org-Agenda TODO items. | |
Usage: | |
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 school_schedule.org | ./cal.py > physics.org) | |
5. Profit? |
View powder_plot.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
View get_gh_repos.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View backup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Backup home directory | |
# | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail |
View RebootLinux.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: _Sigh_ Windows dumbness... | |
powershell .\RebootLinux.ps1 |
View cloudSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-07-20T03:06:02.042Z","extensionVersion":"v3.4.3"} |
View terraria-backup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import enum | |
import logging | |
import subprocess | |
import time | |
import os | |
logging.basicConfig(filename="/home/terraria/terraria-backup.log", filemode="a", | |
format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.DEBUG) |
View smb.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Sample configuration file for the Samba suite for Debian GNU/Linux. | |
# | |
# | |
# This is the main Samba configuration file. You should read the | |
# smb.conf(5) manual page in order to understand the options listed | |
# here. Samba has a huge number of configurable options most of which | |
# are not shown in this example | |
# | |
# Some options that are often worth tuning have been included as |
View makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the compiler: gcc for C program, define as g++ for C++ | |
CC = g++ | |
CFLAGS = -g -Wall | |
# the build target executable: | |
TARGET = `NAME_OF_MAIN_FILE` | |
all: $(TARGET) |
NewerOlder