Skip to content

Instantly share code, notes, and snippets.

View aisyshk's full-sized avatar
❄️

Alice H. aisyshk

❄️
View GitHub Profile
@aisyshk
aisyshk / aot-wiki.sh
Last active October 27, 2023 06:11
AoT Wiki site updater
#!/bin/bash
repo_url="https://github.com/aisyshk/AoT-Wiki.git"
download_dir="$HOME"
target_dir="/var/www/aot.wiki/html/"
if [ ! -d "$download_dir" ]; then
mkdir -p "$download_dir"
fi
@aisyshk
aisyshk / start.sh
Created August 12, 2023 14:36
.NET Installation Checker
#!/bin/bash
# Function to check if .NET Core 5.0 is installed
check_dotnet_core() {
dotnet_path=$(command -v dotnet)
if [ -n "$dotnet_path" ]; then
version_output=$(dotnet --list-sdks | grep -oP '7\.\d+\.\d+' | head -1)
if [ -n "$version_output" ]; then
echo ".NET Core 7.0 (or higher) is already installed. Version: $version_output"
return 0
@aisyshk
aisyshk / Index.cshtml
Last active April 25, 2023 12:21
ASP.NET Core Pagination (w/ X.PagedList)
@model IEnumerable<MyProject.Models.MyObject>
@{
ViewData["Title"] = "MyObjects";
}
<div class="text-center">
<div class="text-center">
<table class="table table-striped">
<tr>