Skip to content

Instantly share code, notes, and snippets.

View sffej's full-sized avatar
💭
Is it done yet?

FNCS sffej

💭
Is it done yet?
  • Pacific NorthWest
View GitHub Profile
@sffej
sffej / git-add-commit-msg-prefix.md
Created March 10, 2026 21:58 — forked from SEJeff/git-add-commit-msg-prefix.md
Git: Add prefix to a range of commit messages

Original Link

Imagine that you cloned an open source project to contribute something. You implemented a bugfix through a series of atomic commits on a private branch. Just when you’re about to create a Pull Request to submit your changes, you discover in the contributor’s guide that you’re supposed to prefix each commit with the bug tracking number.

Rewriting the commit message of the last commit is easy:

git commit --amend
bind-key C-b send-prefix
bind-key C-o rotate-window
bind-key C-z suspend-client
bind-key Space next-layout
bind-key ! break-pane
bind-key " split-window
bind-key # list-buffers
bind-key $ command-prompt -I #S "rename-session '%%'"
bind-key % split-window -h
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window
@sffej
sffej / args_script_template.sh
Created May 2, 2025 04:02 — forked from rragundez/args_script_template.sh
Template of bash script with mandatory and optional arguments
#!/bin/bash
set -e
usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS]
Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml
where:
-h show this help text
-i google cloud project id
-v name of instance/virtual machine
-p python path
@sffej
sffej / README.md
Created April 5, 2025 05:18 — forked from roachhd/README.md
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@sffej
sffej / migrate_bookmarks.sh
Created January 15, 2025 19:59 — forked from ArnoFrost/migrate_bookmarks.sh
migrate bookmarks when ide update
#!/bin/bash
# The user's home directory
USER_HOME=$HOME
# Define a function to display help information
show_help() {
echo "Usage information for the bookmark migration script"
echo "Usage: $0 [options]"
echo ""
echo "Options:"
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@sffej
sffej / keybase.md
Created September 27, 2024 17:38 — forked from scelis/keybase.md

Keybase proof

I hereby claim:

  • I am scelis on github.
  • I am scelis (https://keybase.io/scelis) on keybase.
  • I have a public key whose fingerprint is 57F9 3313 8704 A915 DE95 0475 D8A2 3129 3CD8 305C

To claim this, I am signing this object:

@sffej
sffej / chpwd_update_git_vars.sh
Created September 27, 2024 17:36 — forked from scelis/chpwd_update_git_vars.sh
Add git information to your ZSH prompt.
update_current_git_vars
@sffej
sffej / main.go
Created September 19, 2024 22:55 — forked from buroz/main.go
Golang SOAP Request Example
package main
import (
"bytes"
"crypto/tls"
"encoding/xml"
"fmt"
"io/ioutil"
"net/http"
"strings"
@sffej
sffej / inspect_https-tls-ssl_certs.md
Created July 17, 2024 03:43 — forked from stonehippo/inspect_https-tls-ssl_certs.md
A couple of ways to look at web server HTTPS/TLS/SSL certificate data via the command line

Inspecting HTTPS (TLS, SSL) certificates from the command line

I needed to inspect an HTTPS site's current certs and wanted to do it from the command line. Here are a couple of commands that I used that worked quite well.

With nmap

nmap -p 443 --script ssl-cert [hostname]