Skip to content

Instantly share code, notes, and snippets.

View projectoperations's full-sized avatar
💭
building learning and connections

projectoperations projectoperations

💭
building learning and connections
View GitHub Profile

Creating a new ASP NET Core Web API

Pre-requiside

  • Ensure that you have installed .NET Core in your machine.

Creating the project

  • Open a terminal window (e.g. Gitbash, linux terminal, mac terminal, etc) then change directory to your projects folder. Inside the folder, run dotnet new webapi -o -n command. Example: dotnet new webapi -o PCShop.Api-n PCShop.Api.
@projectoperations
projectoperations / ecampusdev.code-workspace
Last active February 27, 2024 19:49 — forked from lucasjlatour/example.code-workspace
Workspace / Settings examples for VSCode IDE
{
"folders": [
{
"name": "Health Worker Logger",
"path": ".",
}
],
"extensions": {
"recommendations": [
"msjsdiag.debugger-for-chrome",
@projectoperations
projectoperations / docker-compose.ci.yml
Created November 19, 2023 12:53 — forked from ashiklom/docker-compose.ci.yml
GitHub actions + Docker Compose example
# CI overrides
version: '3'
services:
web:
environment:
- DATABASE_URL
- DJANGO_SETTINGS_MODULE
- SECRET_KEY
- PORT
@projectoperations
projectoperations / gist:9442621f5d927f090158a3c1507cb068
Created November 27, 2023 14:38 — forked from tomraithel/gist:4085481
HTML + CSS: A flipbook-like animation with CSS3
<div class="flipbook">
<div class="page left leftpage">
<div class="pagewrap">
<div class="page_content">
Dies ist die erste Seite des flipbooks
</div>
</div>
</div>
<div class="page center">
<div class="innerpage rightpage inner_right">
@projectoperations
projectoperations / Dockerfile
Last active May 14, 2024 02:24 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@projectoperations
projectoperations / flip.html
Last active April 23, 2024 19:37 — forked from wizact/flip.html
Card Flip Effect in Html & JS
<html>
<head>
<title>flip with Mo</title>
<style>
.container {
position:relative;
width:400px;
height:400px;
@projectoperations
projectoperations / hosts
Created January 2, 2024 12:48 — forked from jaredhoyt/hosts
Example Apache setup (with SSL)
# Secure local IPs:
#
# 127.0.0.2 - www.example.dev
#
127.0.0.1 localhost
# example.com
127.0.0.2 www.example.dev
@projectoperations
projectoperations / cloudflareworker-verifyjwt.js
Last active February 28, 2024 02:02 — forked from bcnzer/cloudflareworker-verifyjwt.js
Sample Cloudflare worker that gets the JWT, ensures it hasn't expired, decrypts it and returns a result
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/
/**
* Fetch and log a request
* @param {Request} request
*/
@projectoperations
projectoperations / wsl.conf
Created January 21, 2024 02:49 — forked from violen/wsl.conf
WSL Example Config /etc/wsl.conf
# See MS Blog https://blogs.msdn.microsoft.com/commandline/2018/02/07/automatically-configuring-wsl/
# Let’s enable extra metadata options by default
[automount]
enabled = true
root = "/mnt/"
options = "metadata,umask=22,fmask=11"
mountFsTab = true
@projectoperations
projectoperations / agent.ps1
Created February 26, 2024 02:33 — forked from gorbak25/agent.ps1
Enable ssh-agent on Windows
# By default the ssh-agent service is disabled. Configure it to start automatically.
# Make sure you're running as an Administrator.
Get-Service ssh-agent | Set-Service -StartupType Automatic
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent