Skip to content

Instantly share code, notes, and snippets.

View anuith's full-sized avatar
💭
Hello World

Thiwakorn anuith

💭
Hello World
View GitHub Profile
@bouroo
bouroo / 60-sysctl.conf
Last active April 21, 2025 01:48
Kernel tuning for dedicated linux server. /etc/sysctl.d/60-sysctl.conf
# /etc/sysctl.d/60-sysctl.conf
# High‑performance settings for API/Web server
# Optimized for modern Linux kernels (4.9+ recommended for BBR/fq_codel)
# Based on original by Kawin Viriyaprasopsook <[email protected]>
# Run `sysctl --system` after installing this file
########################
# System Options #
########################
# Reduce console noise from kernel messages
using Android.Content;
using Android.Content.Res;
using Android.Graphics.Drawables;
using System;
using System.Threading.Tasks;
using YourProject.Droid.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(Button), typeof(CustomButtonRenderer))]
@rdingwall
rdingwall / FilterIPAttribute.cs
Created March 13, 2012 13:45
FilterIPAttribute for ASP.NET Web API (IIS only, port of MVC version from http://stackoverflow.com/a/4605086/91551)
using System;
using System.Configuration;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace Miscellaneous.Attributes.Controller
{
/// <summary>
/// Filter by IP address (ASP.NET Web API version)