Skip to content

Instantly share code, notes, and snippets.

View yilmazdurmaz's full-sized avatar
🏠
Working from home

Yılmaz Durmaz yilmazdurmaz

🏠
Working from home
  • Turkey
View GitHub Profile
// ==UserScript==
// @name BlockAdblock Blocker
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Blocks block-adblock
// @match *://**/*
// @grant none
// @run-at document-start
// ==/UserScript==
@yilmazdurmaz
yilmazdurmaz / iptables_forward_to_hostname.md
Created November 15, 2022 01:38 — forked from rikka0w0/iptables_forward_to_hostname.md
Add/Update iptable NAT port forward rule based on hostname instead of ip address
#!/bin/bash

HostName=
PortListen=
PortTarget=

IPv4=$(ping -c1 $HostName | grep "bytes of data" | cut -d "(" -f2 | cut -d ")" -f1)
echo $IPv4
@yilmazdurmaz
yilmazdurmaz / c99.l
Created February 21, 2023 10:38 — forked from codebrainz/c99.l
C99 Lex/Flex & YACC/Bison Grammars
D [0-9]
L [a-zA-Z_]
H [a-fA-F0-9]
E ([Ee][+-]?{D}+)
P ([Pp][+-]?{D}+)
FS (f|F|l|L)
IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U))
%{
#include <stdio.h>
@yilmazdurmaz
yilmazdurmaz / #JS-Modules-in-HTML-and-Nodejs
Created May 26, 2023 04:47
Use same Javascript module in both HTML and Node.js
#JS-Modules-in-HTML-and-Nodejs
@yilmazdurmaz
yilmazdurmaz / Weblate_Simple_Change_Highlighter.js
Last active November 18, 2023 18:22
Weblate Simple Change Highlighter
'use strict';
// ==UserScript==
// @name Weblate Simple Change Highlighter
// @description On Weblate, while checking a translation, highlight the editbox if you make any changes.
// @version 0.2
// @license MIT
// @author Yılmaz Durmaz
// @namespace https://gist.github.com/yilmazdurmaz
// @match https://hosted.weblate.org/translate/*/*/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=weblate.org