In ~/.profile
:
alias ask="$HOME/.quickgpt"
alias syn="ask 20 synonyms and their nuances of:"
alias def="ask definition and usage example of:"
alias term="ask 5 most accurate terms and their nuances that describe:"
#!/bin/bash | |
HOST=srv001.example.com | |
USER=compose | |
PATH=~/some-project | |
migrate() { :; } | |
psql() { dc exec postgres psql --user postgres; } | |
################# |
#!/bin/bash | |
light=BreezeLight | |
dark=BreezeDark | |
cur=$(plasma-apply-colorscheme --list-schemes | grep '(current color scheme)' | cut -d' ' -f3) | |
plasma-apply-colorscheme $([ $cur = $light ] && echo $dark || echo $light) |
.cm-header-1, .cm-header-2 { | |
border-bottom: 1px dotted!important; | |
} | |
.cm-header-1 { | |
font-size: 3em!important; | |
display: block; | |
} | |
.cm-header-2 { |
h1 { | |
font-size: 3em!important; | |
} | |
h2 { | |
font-size: 2em!important; | |
} | |
h3 { | |
font-size: 1.2em!important; |
#!/bin/bash | |
# Title: BashGPT | |
# Version: 0.1 | |
# Date: 2024-05-21 | |
# License: MIT | |
# Author: dctremblay@dasio.ca | |
[ $OPENAI_API_KEY ] || { echo "OPENAI_API_KEY env var must be set" >&2; exit 1; } | |
gptModel="gpt-4o" #gpt-3.5-turbo |
In ~/.profile
:
alias ask="$HOME/.quickgpt"
alias syn="ask 20 synonyms and their nuances of:"
alias def="ask definition and usage example of:"
alias term="ask 5 most accurate terms and their nuances that describe:"
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="23"> | |
<profile kind="CodeFormatterProfile" name="DASIO" version="23"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/> |
#!/bin/bash | |
# Title: summarize.sh | |
# Version: 0.1 | |
# Date: 2024-06-02 | |
# License: MIT | |
[ $OPENAI_API_KEY ] || { echo "OPENAI_API_KEY must be set" >&2; exit 1; } | |
: "${SYSMSG:="You summarize text to make it as short as possible"}" | |
: "${MODEL:="gpt-3.5-turbo"}" |
#!/bin/bash | |
# Title: Compress Text | |
# Version: 0.1 | |
# Date: 2024-06-12 | |
# License: MIT | |
# Author: dctremblay@dasio.ca | |
[ $OPENAI_API_KEY ] || { echo "OPENAI_API_KEY must be set" >&2; exit 1; } | |
: "${SYSMSG:="You compress the following text"}" |
#!/bin/bash | |
# Title: Starter Bash Telegram Bot | |
# Version: 0.1-alpha | |
# Date: 2024-06-12 | |
# License: Unlicense | |
# Author: dctremblay@dasio.ca | |
# | |
# Telegram Bot API Documentation: | |
# https://core.telegram.org/bots/api#making-requests |