This file contains hidden or 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
javascript:(()=>{fetch(location.href+'.json').then(r=>r.json()).then(d=>{try{let v=d[0].data.children[0].data.secure_media?.reddit_video?.fallback_url;if(v)window.open(v,'_blank');else alert('No video found.')}catch(e){alert('Error retrieving video.')}})})(); |
This file contains hidden or 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
[Unit] | |
Description=Minecraft Server (Spigot) using tmux | |
After=network.target | |
# FILE Location: `sudo nano /etc/systemd/system/minecraft-server.service` | |
# INSTALL WITH: | |
# ============= | |
# `sudo systemctl daemon-reexec` | |
# `sudo systemctl daemon-reload` |
This file contains hidden or 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
#!/bin/bash | |
# | |
# SysML 2 Pilot Implementation | |
# Copyright (C) 2020 California Institute of Technology ("Caltech") | |
# Copyright (C) 2021 Twingineer LLC | |
# Copyright (C) 2021 Model Driven Solutions, Inc. | |
# Copyright (C) 2025 ActuallyFro (+Step 0, some deltas from pilot implementation script) | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published by |
This file contains hidden or 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
#!/bin/bash | |
# MERN-Stack Provisioning Script for Ubuntu | |
set -e | |
# Colors for output | |
green='\e[32m' | |
red='\e[31m' | |
yellow='\e[33m' | |
reset='\e[0m' |
This file contains hidden or 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
#!/bin/bash | |
# Set the base URL and domain to only crawl within this domain | |
BASE_URL="https://www.doctrine.af.mil" | |
DOMAIN="doctrine.af.mil" | |
#OUTPUT_DIR="downloaded_pdfs" | |
OUTPUT_DIR="./" | |
# Create an output directory if it doesn't exist | |
mkdir -p "$OUTPUT_DIR" |
This file contains hidden or 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
#!/bin/bash | |
# Main script logic | |
directory="$1" # Directory passed as an argument, or use the current directory if none is provided | |
if [[ -z "$directory" ]]; then | |
directory="." | |
fi | |
# Check if the directory exists | |
if [[ ! -d "$directory" ]]; then |
This file contains hidden or 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
//Base code: https://cse.usf.edu/~kchriste/tools/weblite.c | |
//ALL modifications by ChatGPT -- I make zero claims, have no license to give -- contact him: http://www.csee.usf.edu/~christen || christen @ csee . usf . edu | |
//https://cse.usf.edu/~kchriste/tools/toolpage.html | |
// Compile: ` x86_64-w64-mingw32-gcc weblite.c -lws2_32 -o weblite` | |
// | |
//ALSO -- to convert .epub to .mobi: | |
//`sudo apt-get install calibre` |
This file contains hidden or 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
#!/bin/python3 | |
# Local PlantUML Generator | |
# ======================== | |
import os | |
import time | |
import http.server | |
import socketserver | |
import threading | |
import subprocess | |
import sys |
This file contains hidden or 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
all: build | |
build: | |
java -Djava.awt.headless=true -jar ~/.local/plantuml/plantuml-1.2024.5.jar -nometadata -Tpng test.puml | |
#See: https://plantuml.com/faq |
This file contains hidden or 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
#include <cstdlib> | |
#include <string> | |
#include <iostream> | |
enum Weekday { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday }; | |
enum Month { Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec }; | |
class ComboDate { | |
public: | |
int Day; |
NewerOlder