Skip to content

Instantly share code, notes, and snippets.

@tosunkaya
tosunkaya / wpcom-cdn.php
Created January 14, 2024 13:31 — forked from waqasy/wpcom-cdn.php
Use the WP.com Photon image CDN without installing JetPack
<?php
/**
* Plugin Name: Photon CDN
* Version: 1.1
* Description: Use the WP.com Photon image CDN without installing JetPack
* Author: Zachary Scott
*/
namespace zacscott;
@tosunkaya
tosunkaya / DellXPS15_9560_AHCI_RAID.md
Created January 11, 2024 18:14 — forked from chenxiaolong/DellXPS15_9560_AHCI_RAID.md
Switching between AHCI and RAID on the Dell XPS 15 (9560)

Switching between AHCI and RAID on the Dell XPS 15 (9560)

This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.

Switching from RAID to AHCI

Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.

  1. To set the default boot mode to Safe Mode, use msconfig.exe or open an admin cmd/PowerShell window and run:
@tosunkaya
tosunkaya / antiNSA.bat
Created January 10, 2024 12:30 — forked from NewEraCracker/antiNSA.bat
antiNSA.bat
@REM
@REM Absolute Computrace/Lojack/BeeInject Disabler
@REM
@REM Works around the Ring -3 Bootkit part of
@REM NSA/TAO and CIA/IOC Framework
@REM
@REM This tool will backup original Computrace/Lojack files,
@REM disable the services and then add dummy read-only copies.
@REM
@REM Edited to strengthen protection against removal
@tosunkaya
tosunkaya / Cit0day.sites.lst
Created January 4, 2024 22:10 — forked from gvolluz/Cit0day.sites.lst
Cit0day breach, list of sites in Cit0day [_special_for_xss.is].txt and Cit0day Prem [_special_for_xss.is].txt (only dns, sorted, without duplicates)
0059.co.kr
007.no
007airsoft.com
008.vista.kz
01186mb.ca
012.ca
01nii.ru
0286776498.com
0286780777.com
02asat.photoherald.com
@tosunkaya
tosunkaya / Ublock_Filters.js
Created December 25, 2023 06:49 — forked from MohamedElashri/Ublock_Filters.js
My custom uBlock origin
#ignore top span results
google.*##.g:has(a[href*="thetopsites.com"])
duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])
## Facebook
facebook.com##div[role="feed"] div > span > span > a > span:upward(div[role="feed"] > div:not([data-pagelet*="group" i]))
facebook.com##div[data-pagelet*="FeedUnit"]:has(div:not([class]):not([id]):empty ~ div:not([class]):not([id]) > div:not([class]):not([id]) > div:not([class]):not([id]):first-child:has(span[dir="auto"]:only-child) + div:not([class]):not([id]) + div:not([class]):not([id]) + div:not([class]):not([id]):last-child)
facebook.com##div[data-pagelet="RightRail"] > div:not([data-visualcompletion]) > div > div[class]:has(> div[class] > div[class] div[class] > a[aria-label][href^="https://l.facebook.com/l.php?u="][target="_blank"])
facebook.com##[aria-label*="Marketplace"] object > a[href^="/ads/"] > span:not(:empty):upward(11)
facebook.com##[aria-label*="Marketplace"] object:has(> a[href^="/ads/"] > span:has-text(/^Sponsored$/)):upward(a):upward(3)
@tosunkaya
tosunkaya / youtube-force-quality.md
Created December 18, 2023 15:25 — forked from cvan/youtube-force-quality.md
Force video quality with YouTube (notes for Firefox Reality)

Forcing a better default playback quality of YouTube videos

If a user is browsing videos on YouTube.com from a web browser on a higher-end device (e.g., VR headsets), the user has to manually override the playback quality of a video through the playback-controls bar at the bottom of the video: Settings > Quality.


Forcing a different playback quality of a YouTube video

  1. Load a YouTube video. Example: https://www.youtube.com/watch?v=ELU-43DMNT4
  2. Then paste some of this code in the DevTools' Console.
  3. You'll notice the quality changes to the highest available for the video.
@tosunkaya
tosunkaya / background.js
Created December 7, 2023 08:26 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@tosunkaya
tosunkaya / Ldplayer.ad.css
Created November 23, 2023 06:29 — forked from Kuju29/Ldplayer.ad.css
Ldplayer.ad.css
# Ldplayer
adabdapi.ldmnq.com
apien.ldmnq.com
encdn.ldmnq.com
storeen.ldmnq.com
k-ring.msedge.net
# ledger.bt.co
ldmnq.com
# appstore.ldmnq.com
res.ldmnq.com
@tosunkaya
tosunkaya / ublock.txt
Created November 15, 2023 15:52 — forked from aclarknexient/ublock.txt
ublock origin hackernews dark mode and narrower comment display
! The following 2 lines are what I use to display news.ycombinator.com
! Limit comments to 70 characters wide, making them easier to read
news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;)
! Invert the colours of the site, making a dark mode that I like
! `invert(95%)` does most of the work,
! but you can tweak the hue-rotate value to fine tune the colours
news.ycombinator.com##html:style(filter:invert(95%) hue-rotate(200deg); background: white)
@tosunkaya
tosunkaya / README.md
Created October 21, 2023 09:24 — forked from cjpatton/README.md
ECH test client and server

Contents

  • client.go - ECH test client (uses a fixed ECHConfigsList).
  • server.go - ECH test server (uses a fixed set of ECH keys).
  • backend.crt, baackend.key - Test certificate and key for "example.com" (the backend server).
  • client_facing.crt, backend.key - Test certificate and key for "cloudflare-esni.com" (the client-facing server).
  • root.crt - Root certificate for backend.crt and client_facing.crt.
  • get_configs.py - Script for fetching the real ECHConfigsList for "crypto.cloudflare.com".

Testing