Skip to content

Instantly share code, notes, and snippets.

View gigi81's full-sized avatar

Luigi Grilli gigi81

View GitHub Profile
<Target Name="Deploy" AfterTargets="Build">
<MSBuild
Projects="$(ProjectPath)"
Targets="WebPublish"
Properties="PublishProfile=LocalDeploy"
/>
</Target>
@gigi81
gigi81 / jquery-ui.unobtrusive.js
Last active September 29, 2015 12:38
jQuery UI unobtrusive
(function ($) {
var createWidgets = function ($el) {
var data = $el.attr('data-jqueryui');
var widget = data, options = null, index = data.indexOf(':');
if (index > 0) {
widget = data.substr(0, index);
eval("options = " + data.substr(index + 1).trim());
}
// Sanity check: can't directly check that it's truly a _widget_, but
@gigi81
gigi81 / BinPath.cs
Created December 3, 2012 15:32
Asp.Net get bin path
public static string BinFilesPath
{
get
{
string dllPath;
dllPath = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
dllPath = new Uri(dllPath).LocalPath;
dllPath = System.IO.Path.GetDirectoryName(dllPath);
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
namespace RestartManager
{
public sealed class RestartManagerSession : IDisposable
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
namespace RestartManager
{
public sealed class RestartManagerSession : IDisposable
{
$PullServer = "localhost:8050"
$ConfigurationId = "45268a6b-9f2d-49eb-a328-79920b389e7a"
#region Generate report
function Get-DscStatusReport
{
param(
$ServiceURL,
$ConfigurationId = "$((glcm).ConfigurationId)"
)
Get-Process -Name WmiPrvSE | Stop-Process -Force
@gigi81
gigi81 / jquery.parsejson.js
Created February 20, 2012 08:51
jQuery parseJSON with .net and iso date support
/*!
* jQuery.parseJSON() extension (supports ISO & Asp.net date conversion)
*
* Version 1.0 (13 Jan 2011)
*
* Copyright (c) 2011 Robert Koritnik
* Licensed under the terms of the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
#missing
#davinci resolve
#visual studio
#photo editor
#affinity photo
#affinity designer
#drivers
choco install amd-ryzen-chipset
Purpose Package Name(s)
Dependency Injection Microsoft.Extensions.DependencyInjection.Abstractions
Microsoft.Extensions.DependencyInjection
Autofac
Actor Model/System Akka
Service/Console App Scaffolding Topshelf
Microsoft.Extensions.Hosting
Logging Microsoft.Extensions.Logging.Abstractions
Microsoft.Extensions.Logging
log4net
Metrics
Database
Processes SimpleExec