Skip to content

Instantly share code, notes, and snippets.

View AliKhadivi's full-sized avatar
👨‍💻
Learning....

Ali Khadivi AliKhadivi

👨‍💻
Learning....
View GitHub Profile
@AliKhadivi
AliKhadivi / LiteDB CRUD ASP.NET.cs
Last active July 11, 2022 11:41 — forked from garymedina/LiteDB CRUD ASP.NET
LiteDB Crud operations and path for use in ASP.NET
//ASP.NET Database path
var path = Server.MapPath("~/App_Data/site.db");
using (var db = new LiteDatabase(path))
{
//Sets or Creates a Table in DB
var bottles = db.GetCollection<Bottle>("Bottles");
//Creates a new bottle object and saves in db
@AliKhadivi
AliKhadivi / electron-windows-builder.Dockerfile
Last active March 17, 2022 07:42 — forked from hackash/electron-windows-builder
Workaround for System.Exception at Squirrel.Utility.CreateZipFromDirectory on macOS Big Sur when building windows installer
FROM ubuntu:focal
WORKDIR ~
# Without interactive dialogue
ARG DEBIAN_FRONTEND=noninteractive
# Install required packages
RUN apt-get update \
&& apt-get install -y wget gnupg2 software-properties-common git apt-utils vim dirmngr apt-transport-https ca-certificates \