Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View saibimajdi's full-sized avatar

Majdi Saibi saibimajdi

View GitHub Profile
using System;
using System.Drawing;
using System.IO;
using System.Net.Mime;
namespace imageProcess
{
class Program
{
static void Main(string[] args)
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'vs2017-win2016'
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using JWT;
@saibimajdi
saibimajdi / Mailer.cs
Created April 23, 2017 15:48
Mail sender
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
namespace MSPTunisia.Models
{
public class LicenceCheckerActionFilterAttribute : ActionFilterAttribute
{
public async override void OnActionExecuting(ActionExecutingContext filterContext)
{
var isValidLicence = await CheckLicence();
if (isValidLicence)
{
Debugger.Log(1, "LICENCE", "Licence is valid");
}
@saibimajdi
saibimajdi / Program.cs
Last active February 25, 2024 16:29
Get CPU ID & Motherboard Serial Number
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;
using System.Threading.Tasks;
namespace PCInformations
{
class Program