Skip to content

Instantly share code, notes, and snippets.

View thehandsomezebra's full-sized avatar
🦓
Focusing

Stephanie Lage Frantz thehandsomezebra

🦓
Focusing
View GitHub Profile
@thehandsomezebra
thehandsomezebra / unpack_bosh_logs.sh
Created July 16, 2022 00:52
Unpacking BOSH logs
if [[ -z "$1" ]]; then
echo "You did not enter a file to unpack."
echo "Please try again, running this as 'source unpack_bosh_logs.sh <filename of logs>'"
fi
todaysdate=`date +'%m-%d-%Y'`
mkdir -p "logs-$todaysdate"
tar -xzf $1 -C logs-$todaysdate
cd logs-$todaysdate
@thehandsomezebra
thehandsomezebra / test.sh
Created July 16, 2022 00:51
Testing bash with echoing things...
echo
echo "# arguments called with ----> ${@} "
echo "# \$1 ----------------------> $1 "
echo "# \$2 ----------------------> $2 "
echo "# path to me ---------------> ${0} "
echo "# parent path --------------> ${0%/*} "
echo "# my name ------------------> ${0##*/} "
echo
@thehandsomezebra
thehandsomezebra / or_just_grab_the_pdf_links.js
Last active January 28, 2022 16:04
get all links from a current page in your browser
@thehandsomezebra
thehandsomezebra / underscore_renamer.sh
Created January 14, 2022 02:02
Rename files that have spaces - change to underscores
#!/bin/bash
for f in *; do
new="${f// /_}"
if [ "$new" != "$f" ]; then
if [ -e "$new" ]; then
echo not renaming "$f" because "$new" already exists
else
echo moving "$f" to "$new"
mv "$f" "$new"
@thehandsomezebra
thehandsomezebra / googlekeeptomarkdown.sh
Last active January 9, 2022 17:48
Convert Google Keep exported notes into two markdown files
echo "" >textcontentfile.md
echo "" >listcontentfile.md
for f in *.json; do
echo "processing "$f""
if cat "$f" | grep --silent '.textContent'; then
echo "" >>textcontentfile.md
#title
echo "## "$(cat "$f" | jq '.title') >>textcontentfile.md
@thehandsomezebra
thehandsomezebra / powershell_search_regex.ps1
Created January 5, 2022 03:00
Powershell - searching thru files using regex
$TestingLocation = "$HOME\test"
############## Making the files ###################
New-Item -Force -ItemType File -Path $TestingLocation\words.txt
"Beep`n123" | Add-Content -Path $TestingLocation\words.txt
New-Item -Force -ItemType File -Path $TestingLocation\wordstwo.txt
"YEAHBeep`n111" | Add-Content -Path $TestingLocation\wordstwo.txt
New-Item -Force -ItemType File -Path $TestingLocation\wordsthree.txt
"Boop`n55512" | Add-Content -Path $TestingLocation\wordsthree.txt

Keybase proof

I hereby claim:

  • I am thehandsomezebra on github.
  • I am handsomezebra (https://keybase.io/handsomezebra) on keybase.
  • I have a public key ASDa353NiALicQehtHMAoMl16UZb8VsdBjjTq_6h73zzHAo

To claim this, I am signing this object:

@thehandsomezebra
thehandsomezebra / Jira custom script field (groovy) that creates a table based on entries from three different multi-select fields.txt
Created April 27, 2020 20:06
Jira custom script field (groovy) that creates a table based on entries from three different multi-select fields
////////////////////////////////////////////////////////////////////////
//Author: Stephanie Frantz //
//Primary Email: [email protected] //
//Secondary email: [email protected] //
// //
//PURPOSE: This script is utilized by the DPS team to identify //
// change management action required for retrofits //
// //
//VERSION: 1.0, created 4/27/2020 //
//new. //
{
"meta": {
"theme": "macchiato"
},
"basics": {
"name": "Stephanie Frantz",
"label": "Lead DevOps Engineer",
"summary": "I'm a passionate dreamer and creator obsessed with finding ways to do things better, faster, and more efficiently. I'm flexible, versatile, and able to maintain a sense of humor under pressure. ",
"website": "https://stephaniefrantz.com",
"email": "[email protected]",
@thehandsomezebra
thehandsomezebra / javascript-regex-to-remove-spaces-except-leave-spaces-in-between-words.markdown
Last active September 21, 2019 17:16
javascript-regex to remove spaces except leave spaces in between words