Skip to content

Instantly share code, notes, and snippets.

View mertcangokgoz's full-sized avatar
👋
Hi

Mertcan GÖKGÖZ mertcangokgoz

👋
Hi
View GitHub Profile
@mertcangokgoz
mertcangokgoz / benchmark.log
Created September 10, 2025 00:49
NVMe VDS 3 6 Core 8Gb Ram 80GB Disk, DH Bulut Bilisim Istanbul AS34828
root@ubuntu:~# curl -sL https://yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-04-20 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Wed Sep 10 03:32:45 AM +03 2025
Basic System Information:

Keybase proof

I hereby claim:

  • I am mertcangokgoz on github.
  • I am gokgozmertcan (https://keybase.io/gokgozmertcan) on keybase.
  • I have a public key whose fingerprint is DD03 DA4B A4D3 5B77 36ED D2B9 B701 21B2 6132 ACB8

To claim this, I am signing this object:

@mertcangokgoz
mertcangokgoz / bencmark.log
Created January 29, 2025 19:38
Hetzner Falkenstein cax21 4 vCPU 8 GB RAM 80 GB Disk local bencmark
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Wed Jan 29 09:39:45 PM +03 2025
ARM compatibility is considered *experimental*
@mertcangokgoz
mertcangokgoz / mndp_decode.py
Last active July 14, 2024 11:14
This script decodes MikroTik Neighbor Discovery Protocol (MNDP) packets.
# Description: This script decodes MikroTik Neighbor Discovery Protocol (MNDP) packets.
# Author: Mertcan GÖKGÖZ
# Date: 2024-07-14
# Version: 1.0
import io
import struct
from enum import Enum
@mertcangokgoz
mertcangokgoz / r10net.js
Created March 2, 2024 23:12
R10 Yasaklı üyeleri gizlemek için bir kodtur.
// ==UserScript==
// @name R10.Net Yasaklı Listesi
// @namespace http://tampermonkey.net/
// @version 0.1
// @description R10 Yasaklı üyeleri gizlemek için bir kodtur.
// @author Hero
// @match https://www.r10.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=r10.net
// @grant none
// ==/UserScript==
@mertcangokgoz
mertcangokgoz / detect_encodings.py
Created August 31, 2022 03:00
character encoding detection via chardet
import logging
from collections import namedtuple
from chardet import UniversalDetector # pip install chardet
logger = logging.getLogger(__name__)
Guess = namedtuple("Guess", ["encoding", "confidence"])
@mertcangokgoz
mertcangokgoz / benchmark
Created August 30, 2022 23:09
Ilkbyte Cloud [4 Core / 8 GB / 80 GB Disk] Benchmark Result
root@debian:~# curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2022-08-20 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Wed 31 Aug 2022 01:50:51 AM +03
Basic System Information:
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from random_useragent import random_useragent
class RequestsHelper(object):
"""HTTP Request helper"""
def __init__(self):
Get-EventLog -LogName Security -after (Get-date -hour 0 -minute 0 -second 0) | Where-Object { (4624, 4778) -contains $_.EventID -and $_.Message -match 'logon type:\s+(10)\s' } | % {
(new-object -Type PSObject -Property @{
TimeGenerated = $_.TimeGenerated
ClientIP = $_.Message -replace '(?smi).*Source Network Address:\s+([^\s]+)\s+.*', '$1'
UserName = $_.Message -replace '(?smi).*Account Name:\s+([^\s]+)\s+.*', '$1'
UserDomain = $_.Message -replace '(?smi).*Account Domain:\s+([^\s]+)\s+.*', '$1'
LogonType = $_.Message -replace '(?smi).*Logon Type:\s+([^\s]+)\s+.*', '$1'
})
} | Sort-Object TimeGenerated -Descending | Select-Object TimeGenerated, ClientIP `
, @{N = 'Username'; E = { '{0}\{1}' -f $_.UserDomain, $_.UserName } } `
/*
**
** derleme:
** gcc -O3 -DMAX_THREAD=8 tcnouretici.c -lpthread
**
** i7-4770k 8 thread
** ./a.out > /dev/null 0.02s user 0.01s system 473% cpu 0.008 total
** ./a.out > /dev/null 0.03s user 0.00s system 382% cpu 0.008 total
** ./a.out > /dev/null 0.03s user 0.00s system 484% cpu 0.007 total
** ./a.out > /dev/null 0.03s user 0.00s system 377% cpu 0.008 total