Skip to content

Instantly share code, notes, and snippets.

View DanielBodnar's full-sized avatar

Daniel Bodnar DanielBodnar

  • BitBuilder.io
  • Denton, Tx
  • 07:44 (UTC -06:00)
View GitHub Profile
@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.
@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 July 25, 2024 03:04
GitHub Stars
@m-radzikowski
m-radzikowski / script-template.sh
Last active July 13, 2024 13:20
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

@qskwood
qskwood / wget-warc-generator
Last active May 1, 2024 17:21
This script uses wget to generate a WARC that can be read by a player like OpenWayback and places it into a directory. It also handles creation and use of CDX indexes for de-duplication.
#!/bin/bash
if [[ $# -ne 2 ]]; then
echo "Must only have two arguments, the URL and the collection" >&2
exit 1
fi
if [[ ! -d "/var/spool/openwayback/files2/${2}" ]]; then
mkdir "/var/spool/openwayback/files2/${2}"
fi
@pamolloy
pamolloy / README.md
Last active July 4, 2024 15:43
Mesh network using VXLAN over Wireguard
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 25, 2024 08:20
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default