Skip to content

Instantly share code, notes, and snippets.

<!-- Modify this according to your requirement -->
<h3>
Redirecting to duckdev.com after <span id="countdown">10</span> seconds
</h3>
<!-- JavaScript part -->
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
# Block Taboola ads
127.0.0.1 popup.taboola.com
127.0.0.1 www.popup.taboola.com
127.0.0.1 taboola.com
127.0.0.1 www.taboola.com
127.0.0.1 cdn.taboolasyndication.com
127.0.0.1 taboolasyndication.com
127.0.0.1 www.taboolasyndication.com
127.0.0.1 www.cdn.taboolasyndication.com
127.0.0.1 trc.taboola.com
@tosunkaya
tosunkaya / block-csgo-matchmaking-servers.md
Created October 21, 2020 20:42 — forked from jakoch/block-csgo-matchmaking-servers.md
Block all CS:GO MatchMaking Servers (allow only Amsterdam, Frankfurt, London, Luxemburg, Vienna)

Block all CS:GO MatchMaking Servers (allow only Amsterdam, Frankfurt, London, Luxemburg, Vienna)

IPs are taken from github.com/SteamDatabase/SteamTracking/Random/NetworkDatagramConfig.json

Add Firewall Rule to lock servers

netsh advfirewall firewall add rule name="csgo-mm-servers-block" dir=out action=block remoteip=18.162.88.34/32,34.85.12.153/32,34.85.40.62/32,34.85.47.228/32,34.212.218.15/32,42.81.120.140/32,42.81.120.141/32,42.81.120.142/32,42.81.120.143/32,42.81.120.144/32,42.81.120.145/32,61.182.135.15/32,61.182.135.16/32,61.182.135.18/32,61.182.135.72/32,103.10.124.40/32,103.10.124.43/32,103.10.124.44/32,103.10.124.45/32,103.10.124.99/32,103.10.124.100/32,103.10.124.101/32,103.10.124.102/32,103.10.125.146/32,103.10.125.154/32,103.10.125.162/32,111.32.164.141/32,111.32.164.142/32,111.32.164.143/32,111.32.164.144/32,111.32.164.145/32,111.32.164.146/32,116.211.132.11/32,116.211.132.12/32,116.21
1. Fire up the command prompt.
2.1. Execute: gcc shm_server.c -o shm_server
2.2. Execute: gcc shm_client.c -o shm_client
3. Execute: ./shm_server &
4. Execute: ./shm_client
@tosunkaya
tosunkaya / check-website-availability.php
Created May 21, 2021 18:05 — forked from Digiover/check-website-availability.php
PHP/cURL function to check a web site status. If HTTP status is not 200 or 302, or the requests takes longer than 10 seconds, the website is unreachable. See https://www.saotn.org/php-curl-check-website-availability/.
<?php
/**
* PHP/cURL function to check a web site status. If HTTP status is not 200 or 302, or
* the requests takes longer than 10 seconds, the website is unreachable.
*
* Follow me on Twitter: @HertogJanR
*
* @param string $url URL that must be checked
*/
function url_test($url) {
@tosunkaya
tosunkaya / BBC.m3u
Created June 16, 2021 00:16 — forked from random-robbie/BBC.m3u
BBC HLS Streams - let me know if i missed any
#EXTM3U
#EXTINF:-1 tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="https://s4.postimg.org/k5xl5dmf1/bbc_one.png" group-title="BBC",BBC One HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_hd.m3u8
#EXTINF:-1 tvg-id="BBC One London" tvg-name="BBC One London" tvg-logo="https://s4.postimg.org/z61nj8qd9/Bbc_london_logo.jpg" group-title="BBC",BBC One London
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/hls_tablet/ak/bbc_one_london.m3u8
#EXTINF:-1 tvg-id="BBC One Northern Ireland HD" tvg-name="BBC One Northern Ireland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Northern Ireland HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_northern_ireland_hd.m3u8
#EXTINF:-1 tvg-id="BBC One Scotland HD" tvg-name="BBC One Scotland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Scotland HD
http://a.fi
@tosunkaya
tosunkaya / AndroidUtils.kt
Created July 13, 2021 17:42 — forked from maxost/AndroidUtils.kt
Kotlin: make phone call in Android
fun Context.makePhoneCall(number: String) : Boolean {
try {
val intent = Intent(Intent.ACTION_DIAL, Uri.parse("tel:$number"))
startActivity(intent)
return true
} catch (e: Exception) {
e.printStackTrace()
return false
}
}
@tosunkaya
tosunkaya / Description
Created September 5, 2021 00:13 — forked from Fuzion24/Description
Android Reversing - Showing an uber basic conditional patch
Running apktool d APKNAME.apk will result in output that can be modified and later repackaged and ran.
isRegistered() is hardcoded to return false.
Changing
const/4 v0, 0x0
to
const/4 v0, 0x1
will cause isRegistered to ALWAYS return true. Thus always telling the application that it is registered.
@tosunkaya
tosunkaya / yoast_seo_opengraph_change_image_size.php
Created September 17, 2021 20:12 — forked from amboutwe/yoast_seo_opengraph_change_image_size.php
Code snippet to change or remove OpenGraph output in Yoast SEO. There are multiple snippets in this code.
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Change size for Yoast SEO OpenGraph image for all content
* Credit: Yoast Development team
* Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1
* Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail'
* Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/
*/
@tosunkaya
tosunkaya / cadmium-playercore-6.0033.414.911.js
Created January 15, 2022 15:08
Cadmium playercore modified to force DDPlus Dolby Atmos on Safari
This file has been truncated, but you can view the full file.
a000.Z4L = function() {
return typeof a000.D4L.g4L === 'function' ? a000.D4L.g4L.apply(a000.D4L, arguments) : a000.D4L.g4L;
};
a000.j4L = function() {
return typeof a000.D4L.V4L === 'function' ? a000.D4L.V4L.apply(a000.D4L, arguments) : a000.D4L.V4L;
};
function a000() {}
a000.J4L = function() {
return typeof a000.D4L.V4L === 'function' ? a000.D4L.V4L.apply(a000.D4L, arguments) : a000.D4L.V4L;
};