Skip to content

Instantly share code, notes, and snippets.

View fishnibble's full-sized avatar

Joshua Jones fishnibble

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
#!/bin/bash
# Script for getting all TODOS in obsidian
notePath="your path here"
output=~/"output path here"
echo "#Global TODOs" > "$output"
grep -hr --exclude-dir=plugins "\bTODO\b:.*" "$notePath" | awk '{print $0,"\n"}' >> "$output"
@fishnibble
fishnibble / tryhackme.sh
Created April 15, 2021 11:23
tryhackme.sh
#!/bin/bash
while getopts 'p:i:' flag; do
case "${flag}" in
p) FOLDER=$OPTARG ;;
i) IP=$OPTARG ;;
esac
done
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
username: {type: String, required: true},
email: {type: String, required: true},
password: {type: String, required: true},
decks: [{
name: {type: String, require: true},
cards: [{
front: {type: String, require: true},