Skip to content

Instantly share code, notes, and snippets.

View danielbodnar's full-sized avatar

Daniel Bodnar danielbodnar

  • BitBuilder.io
  • Denton, Tx
View GitHub Profile
# A function that generates one line commit message by using Llama3.1 and copies it to clipboard on MacOS.
#####################################################################################
### HOW TO USE? ###
### Just copy and paste the following function to your .zshrc or .bashrc ###
### Run `source .zshrc` or `source .bashrc` after you updated your file. ###
#####################################################################################
# Requirement:
@aeros281
aeros281 / 0.README.md
Last active July 2, 2024 10:40
Multiple github accounts using SSH keys

Here is the general step requires to automatically switch to different accounts of GitHub based on the current working directory:

  1. Create a different set of private-public key using ssh-keygen command.
  2. Add the new public key to the other Github account's SSH keys.
  3. If there's no ~/.gitconfig file presented, create a new file with content that will be described in later section.
  4. Create extend config for git that will only applied when go to a specific folder, the content will be described in later section.
  5. Clone the fork repository, then add new remote using git remote add command.
@leafstrat
leafstrat / groq.sh
Created June 18, 2024 06:24
GroqCloud Interactive Response Dashboard - Bash Script with YAD (Yet Another Dialog)
#!/bin/bash
# ------------------------------------------------------
# Setup:
# ------------------------------------------------------
# 1. Dependencies:
# - yad version 13.0 (GTK+ 3.24.38) or newer
# To upgrade YAD to the latest version, refer to:
# https://github.com/sonic2kk/steamtinkerlaunch/issues/98#issuecomment-706558925
# To upgrade YAD for syntax highlighting, refer to:
@garyblankenship
garyblankenship / runner.sh
Created May 6, 2024 03:12
Ollama LLM Models Testing from a prompts.txt file and a list of models
#!/bin/bash
# Set default prompt or use the provided command line argument
PROMPT="${1:-You are an extremely helpful assistant going above and beyond to provide the highest quality response.}"
# Inform if default prompt is used
[ "$#" -eq 0 ] && echo "Prompt not provided, using default: $PROMPT"
# Check for the prompts file, one prompt per line
if [ ! -f "prompts.txt" ]; then
@q3k
q3k / hashes.txt
Last active May 16, 2024 16:49
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@pjox
pjox / saturn.pretty.wat
Last active July 16, 2024 22:48
Common Crawl format example for https://en.wikipedia.org/wiki/Saturn
WARC/1.0
warc-date: 2023-10-07T23:46:25Z
warc-refers-to: <urn:uuid:49a7d90e-e82c-4229-9218-e22d7e31e2ef>
warc-target-uri: https://en.wikipedia.org/wiki/Saturn
content-type: application/json
content-length: 1435
warc-type: metadata
warc-record-id: <urn:uuid:9f86fbf2-3587-42e3-ae4d-dd4278cb09dc>
{
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKWCFsxoqbgx7OTyG+leIupkbk68+fA6c78DZ1LiYhWf
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID3Ket51vJ+UlJXgLXQQpspRA8cP5Ab90kBc5EVNqVeu
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE2ybuclq+Jr7LugVa31Z6aqrVIZ/F0DO2j47QadPdKG
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWsM8Cfbd3cuKcRICkvHVtc6ySVE2HVyJdQnzxpvloGbV7uCrY5PAZ2XJr0giFBK47At2MxC7OfO7V2thxBlLMGPm593GZXL1FIK2yju8AyaJircL226SS+4WJASRdQxNN0f9LHWEYGs5IqdtckpTgB9HIBXqahTxNr1b2DPoN3zvnBw+niYMa0w4PnyzDSCM8I94dS24covzog8Hm9GV29OhygeRPOW+tgmQcbKiu1B66c9jcu0p+l5tEIyOinVftSxXs7Jh22hN+OgpFP/c8vRJgEKZDH+Z70oDcJFAIpsyatj1rCl9aeYbHfzHB+BYinJ+rDq2aL8QK2cdbMi/thIad7JlNZiz6vJ0plG9KnIssxY2720jXvQw4qRo/867dShl3zBMmJt+Qpaw1QH5uCcysaMb3B6h0sux2wqVyxJF5wwut7AvuQpSmvwXiH2bYc03M7MnjLVyflyvyAQkFNuArXYOjQyKVha6TyQqUSW3KjEnpgdLG+YSCJvQdvtI+vlHdlpQQA0zjTzn5tTbIjJqZ3EAWYYmFJqi0bHWw6kt8beR+QrhzzN+4qv0BY6YjX7dtuMfAklcM7cjRH4iQJJs8mPon3NlzHVzrK7r+MSdD+QF6fQZxGvT2TuA8d5N97m5rB30HUFIl0TuQRNwSxOZgdahSSWrqjIqFXwDQ4Q==
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWsM8Cfbd3cuKcRICk
@upsetbit
upsetbit / my-github-stars.md
Last active September 20, 2024 03:06
GitHub Stars
@m-radzikowski
m-radzikowski / script-template.sh
Last active August 18, 2024 12:49
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@gustavohenrique
gustavohenrique / archlinux.md
Last active April 14, 2023 23:23
Arch Linux installation and setup

Installation

loadkeys us-acentos

Network

Wireless connection