Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@solrevdev
solrevdev / chatgpt-prompt-gen.txt
Last active April 2, 2025 07:53
A chat gpt prompt generator
I want you to become my Prompt Creator.
Your goal is to help me craft the best possible prompt for my needs.
The prompt will be used by you, ChatGPT.
You will follow the following process:
1.
@solrevdev
solrevdev / delete-bin-and-obj-folders.sh
Created November 12, 2022 08:34
Shell script to delete bin and obj folders
#!/usr/bin/env bash
echo "Delete bin and obj folders in this folder and it's sub folders"
find . -iname "bin" -print0 | xargs -0 rm -rf
find . -iname "obj" -print0 | xargs -0 rm -rf
@solrevdev
solrevdev / delete-bin-and-obj-folders.ps1
Created November 12, 2022 08:30
Powershell delete all bin and obj folders script
#!/usr/bin/env pwsh
Write-Host "Deleting bin and obj folders in this folder and sub folders"
Get-ChildItem .\ -include bin,obj -Recurse | ForEach-Object ($_) { Remove-Item $_.FullName -Force -Recurse }
@solrevdev
solrevdev / time-apt-get-update.sh
Created October 1, 2022 13:13
A bash script that times how long it takes to run apt-get update, upgrade and snap refresh
#!/bin/bash
# store the current date into a variable called startTime
startTime=$(date +"%s")
echo "Start time: $(date)"
# do the updating or whatever here
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo snap refresh
finishTime=$(date +"%s")
/*
SharpLab tools in Run mode:
• value.Inspect()
• Inspect.Heap(object)
• Inspect.Stack(value)
• Inspect.MemoryGraph(value1, value2, …)
*/
using System;
Console.WriteLine("🌄 C# 11 Raw String Literal Example");
@solrevdev
solrevdev / MinimalAPIs.md
Created August 18, 2022 07:56 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
@solrevdev
solrevdev / search-my-gists.md
Last active August 18, 2022 07:29 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user solrevdev.
user:solrevdev

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@solrevdev
solrevdev / lsp_utils.sublime-settings
Last active August 16, 2022 15:38
Sublime Text Copilot Setup Settings for when machine has node >=18
{
// save this to /Users/solrevdev/Library/Application Support/Sublime Text/Packages/User/lsp_utils.sublime-settings
//
// Specifies the type and priority of the Node.js installation that should be used for Node.js-based servers.
// The allowed values are:
// - 'system' - a Node.js runtime found on the PATH
// - 'local' - a Node.js runtime managed by LSP that doesn't affect the system
// The order in which the values are specified determines which one is tried first,
// with the later one being used as a fallback.
// You can also specify just a single value to disable the fallback.
@solrevdev
solrevdev / apt-get-update-with-elapsed-time.sh
Created August 15, 2022 21:10
Runs apt-get update, upgrade and autoremove commands with elapsed time written to console
#!/bin/bash
# store the current date into a variable called startTime
startTime=$(date +"%s")
echo "Start time: $(date)"
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get autoremove -y
finishTime=$(date +"%s")
@solrevdev
solrevdev / readme.css
Last active May 26, 2022 13:50
Generated by SassMeister.com.
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}