Skip to content

Instantly share code, notes, and snippets.

View ismaelhamed's full-sized avatar
🚀
lezduit

Ismael Hamed ismaelhamed

🚀
lezduit
  • Spain
  • 06:52 (UTC +02:00)
View GitHub Profile
@ismaelhamed
ismaelhamed / BundleConfig.cs
Created July 11, 2014 11:20
Bundling AngularJS Templates with ASP.NET MVC
using System.Web.Optimization;
namespace NgTemplateBundling
{
using NgTemplateBundling.Bundling;
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
@ismaelhamed
ismaelhamed / rebaselock.pre-rebase.ps1
Last active September 29, 2016 05:47 — forked from uasi/rebaselock.pre-rebase.sh
A pre-rebase hook that refuses to rebase if "branch.${BRANCH}.rebaselock" is true.
git config branch.master.rebaselock true
@ismaelhamed
ismaelhamed / QuarantinedNodesExtension.cs
Last active March 18, 2021 06:47
An extension to monitor whether we have been quarantined
public class QuarantinedNodesExtension : IExtension
{
private readonly ExtendedActorSystem system;
private readonly IActorRef listener;
public QuarantinedNodesExtension(ExtendedActorSystem system)
{
this.system = system;
listener = system.SystemActorOf(Props.Create<QuarantinedNodesListener>().WithDeploy(Deploy.Local), "QuarantinedNodesListener");
}
@ismaelhamed
ismaelhamed / HelloAkkaHttpServer.cs
Last active March 29, 2021 06:30
Hello Akka Http Server
internal class Program
{
private static readonly HttpResponse NotFound = HttpResponse.Create()
.WithStatus(404)
.WithEntity("Unknown resource!");
public static void Main(string[] _)
{
var system = ActorSystem.Create("HelloAkkaHttpServer");
var cs = CoordinatedShutdown.Get(system);
@ismaelhamed
ismaelhamed / Program.cs
Created November 17, 2021 07:30
Elastic.Apm.Extensions.Hosting dependecies mismatch
using Elastic.Apm.DiagnosticSource;
using Elastic.Apm.Extensions.Hosting;
using Microsoft.Extensions.Hosting;
namespace Sample
{
internal static class Program
{
private static void Main(string[] args)
{
@ismaelhamed
ismaelhamed / ActorBenchmarks.cs
Created February 27, 2023 10:19
ActorBenchmarks
[MemoryDiagnoser]
[SimpleJob(targetCount: 5, launchCount: 1, warmupCount: 5)]
public class ActorBenchmarks
{
[Params(100_000, 1_000_000)]
public int ActorCount { get; set; }
private ActorSystem system;
[IterationSetup]

Keybase proof

I hereby claim:

  • I am ismaelhamed on github.
  • I am ismaelhamed (https://keybase.io/ismaelhamed) on keybase.
  • I have a public key ASAzvtc9ecCc98TQx-k2b3DyWtig3huU0vg6lctJSst7-Ao

To claim this, I am signing this object: