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
#!/bin/bash | |
# ============================================================ | |
# Script: gpt - Automate Bash Command Suggestions with GPT-4 | |
# ============================================================ | |
# This script generates Bash commands using OpenAI's GPT-4 API | |
# based on user-provided prompts and copies the result to the | |
# clipboard using xclip for immediate use. | |
# | |
# Key Features: | |
# - OpenAI GPT-4 Integration: Generates Bash commands from prompts. |
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
#!/bin/bash | |
# pdfsplit.sh [input-file.pdf] | |
# | |
# Example: pdfsplit.sh input.pdf | |
# | |
# written by: ChatGPT under supervision of knee-cola | |
# Check if input PDF file is provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <input-pdf-file>" |
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
#!/bin/sh | |
# | |
# Extracts a range of pages from the given multi-page PDF document into a new PDF documents | |
# | |
# pdfsplit [input.pdf] [first_page] [last_page] [output.pdf] | |
# | |
# Example: pdfsplit big_file.pdf 10 20 pages_ten_to_twenty.pdf | |
# | |
# written by: Westley Weimer, Wed Mar 19 17:58:09 EDT 2008 | |
# |
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
#!/bin/sh | |
# Merges multiple PDF files into a single PDF file | |
# | |
# pdfmerge.sh [input-1.pdf] [input-2.pdf] [output.pdf] | |
# | |
# Example: pdfmerge.sh input-1.pdf input-2.pdf output.pdf | |
# | |
# written by: Knee-cola | |
# | |
# The trick: ghostscript (gs) will do PDF merging for you, it's just not |
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
#!/bin/bash | |
# Converst pages of the given PDF document into a serie of PNG files (ie: output-1.png, output-2.png, ...) | |
if [ "$1" == "" ] ; then | |
printf "\nMissing input file." | |
printf "\n\nSyntax:\n\n pdf2png.sh input.pdf\n\n" | |
exit 1 | |
fi |
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
#!/bin/bash | |
# Converts a given input file into a PDF document | |
# Check if the input argument is provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <input_file.jpeg>" | |
exit 1 | |
fi |
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
#!/bin/bash | |
# Converts a SBV (YouTube) Subtitles to CSV format, | |
# so that they can be imported to Spreadsheet for editing | |
# Check if input file is provided | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 input_file.sbv" | |
exit 1 | |
fi |
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
#define DEBUG | |
#ifdef DEBUG | |
// https://forum.arduino.cc/index.php?topic=46900.0 | |
#define DEBUG_PRINT(str) Serial.println(str); | |
#define DEBUG_PRINT2(str1, str2) Serial.print(str1); Serial.println(str2); | |
#else | |
#define DEBUG_PRINT(str) | |
#define DEBUG_PRINT2(str1, str2) | |
#endif |
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
if(!this.process) { | |
this.process = {}; | |
} | |
if(!this.process.env) { | |
this.process.env = {}; | |
} | |
if(!this.process.env.NODE_ENV) { | |
this.process.env.NODE_ENV = "production"; |
NewerOlder