Skip to content

Instantly share code, notes, and snippets.

View msx752's full-sized avatar
🎯
Focusing

Mustafa Salih ASLIM msx752

🎯
Focusing
View GitHub Profile
@msx752
msx752 / UO_LEGACY_COLOR_PICKER.txt
Last active December 6, 2020 20:45
hue list codes
public static uint[,] getHues(int brightnessLevel = 2) //RETURNING Z
{
uint[] allHues = HueData.GetAllHues();
if (brightnessLevel < 2)//for hue picker
brightnessLevel = 2;
else if (brightnessLevel > 6)//for hue picker
brightnessLevel = 6;
@msx752
msx752 / clientBinaries.json
Last active January 30, 2018 11:34
Temporary Ethereum Wallet Sync Bug Fix (29.01.2018)(Windows 10 x64 is tested)
{
"clients": {
"Geth": {
"version": "1.7.3",
"platforms": {
"linux": {
"x64": {
"download": {
"url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.7.3-4bb3c89d.tar.gz",
"type": "tar",
@msx752
msx752 / gist:a419e0ac7534832ca743d7c1143bb12e
Last active December 6, 2020 20:49
sahibinden angular manipulate
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BizimLastikStokKontrol.Sahibinden
{
public static class SahibindenAPI
{
public static string IlanBot(object ilanObj)
{
string IlanInfo = $"var step2Data={JsonConvert.SerializeObject(ilanObj)};";
@msx752
msx752 / Program.cs
Created December 5, 2020 23:24
SignalR Cache Service (Experimental Thread Safe Caching)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SignalRCacheService.ConsoleApp
{
class Program
{
@msx752
msx752 / AtomicBenchmark.cs
Last active June 30, 2024 22:08
experimental c# atomiclock
using BenchmarkDotNet.Attributes;
namespace Extendlocked
{
public class AtomicBenchmark
{
#region Increment
[Benchmark]
public void IncrementByte()
@msx752
msx752 / CustomHttpClientBuilder.cs
Created February 23, 2022 12:42
Ocelot WebApplicationFactory
using Ocelot.Configuration;
using Ocelot.Logging;
using Ocelot.Requester;
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
public class CustomHttpClientBuilder : Ocelot.Requester.IHttpClientBuilder
{
private readonly IHttpClientCache _cacheHandlers;
@msx752
msx752 / Configure ApiBehaviorOptions.cs
Last active August 24, 2024 14:21
Example code to suppress ModelStateInvalidFilter
// Example code to suppress ModelStateInvalidFilter
services.Configure<ApiBehaviorOptions>(options =>
{
options.SuppressModelStateInvalidFilter = true;
});
@msx752
msx752 / Dockerfile
Last active September 3, 2024 13:06
Self-Hosted Github Actions Runner on Docker Container
# Use the official Ubuntu as a parent image
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && \
apt-get install -y curl git libicu66 sudo apt-transport-https ca-certificates gnupg lsb-release jq && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*