Skip to content

Instantly share code, notes, and snippets.

@tosunkaya
tosunkaya / google_search_maps_addon.js
Created September 1, 2024 12:24 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google maps addon
// @namespace http://tampermonkey.net/
// @version 2024-03-21
// @description Bring google maps button back
// @author You
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
@tosunkaya
tosunkaya / manifest-v2-chrome.md
Created August 17, 2024 22:09 — forked from velzie/manifest-v2-chrome.md
How to keep using adblockers on chrome and chromium

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

Linux

In a terminal, run:

@tosunkaya
tosunkaya / relay.py
Created August 14, 2024 09:21 — forked from socram8888/relay.py
Tp-Link Tapo C200 video relaying test
#!/usr/bin/env pyton3
import uuid
import requests
import ssl
import socket
import http.client
import json
import sys
@tosunkaya
tosunkaya / dom3d.js
Created August 7, 2024 13:35 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@tosunkaya
tosunkaya / adobe_exe_firewall_block_windows.bat
Created July 25, 2024 20:46 — forked from ph33nx/adobe_exe_firewall_block_windows.bat
Block All Adobe .exe files via Firewall on Windows Using Batch Script | Stop adobe apps to access internet
@REM Author: https://github.com/ph33nx
@REM Description: This script blocks or unblocks Adobe-related executables in Windows Firewall.
@REM Usage:
@REM - To block executables: adobe_block.bat
@REM - To unblock (delete) existing rules: adobe_block.bat -delete
@echo off
setlocal enabledelayedexpansion
REM Check if the script should delete existing rules
@tosunkaya
tosunkaya / expanse_palo_alto_networks_spam.txt
Created June 18, 2024 08:12 — forked from tsak/expanse_palo_alto_networks_spam.txt
SPAM: Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet.
198.235.24.131 - - [15/Apr/2022:01:52:23 +0000] "GET / HTTP/1.1" 301 162 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com"
198.235.24.3 - - [15/Apr/2022:03:45:35 +0000] "GET / HTTP/1.1" 301 162 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com"
198.235.24.16 - - [15/Apr/2022:16:39:17 +0000] "GET / HTTP/1.1" 301 162 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@pa
@tosunkaya
tosunkaya / promo_no_delay.html
Created June 10, 2024 10:23 — forked from boyangwang/promo_no_delay.html
hola_player promo with no delay
<!DOCTYPE html>
<html>
<head>
<script src="//player2.h-cdn.com/hola_player.dev.js?customer=demo"></script>
</head>
<body>
<div><h1>Video tag with Hola player - playing HLS</h1></div>
<style>
#wrapper {
position: relative;
@tosunkaya
tosunkaya / vivaldi.md
Created June 1, 2024 20:24 — forked from adamsvoboda/vivaldi.md
removes the vivaldi menu button and the padding on top of tabs, also moves down the tab group indicator so its visible after doing this
  1. open your vivaldi browser.html file: %LOCALAPPDATA%\Vivaldi\Application\1.0.435.42\resources\vivaldi (replace 1.0.435.42 with your version)

  2. add the following code under <link rel="stylesheet" href="style/common.css" />

<style>
  .vivaldi { display: none !important; }
  #tabs-container.top { padding-top: 0px !important;  padding-left: 0px !important; }
  .tab-group-indicator { top: -3px !important; }
@tosunkaya
tosunkaya / readme.md
Created May 24, 2024 10:14 — forked from jimmywarting/readme.md
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@tosunkaya
tosunkaya / processor-boost-mode.md
Created March 8, 2024 14:36 — forked from ehsan18t/processor-boost-mode.md
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

The thing is if your laptop cpu is getting really hot and you are trying to undervolt it then chances are 99% that there are no method to do so. I have also tried to do undervolt my Ryzen 7 5800H but no luck. Because the bios doesn't allow that much control over the cpu. I don't know the specific reasons for the manufactures to restrict such a great thing. But with this you can disable the Turbo Boost. While this might sounds stupid but trust me you won't see a massive difference in performance after turned it off.

When You should Do It?