Skip to content

Instantly share code, notes, and snippets.

@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 / Youtubehyperweb.js
Last active July 23, 2022 05:57
Open in Youtube sideload hyperweb
let params = (new URL(window.location)).searchParams;
let name = params.get("v");
window.location.href = `youtube://${name}`;
@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;
};
@tosunkaya
tosunkaya / safari-favicons.sh
Created January 19, 2022 21:54 — forked from dardo82/safari-favicons.sh
Fix Safari FavIcons
#!/bin/zsh
# Fix Safari Favorites Icons
CS="cache_settings"; TIC="Touch Icons Cache"; DIR="$HOME/Library/Safari/$TIC/Images"
DB="$DIR/../${${TIC// }%%s*}${${(C)CS}//_}.db"; SQL=$(sqlite3 "$DB" "SELECT host FROM $CS")
sqlite3 "$DB" "UPDATE $CS SET ${${${(L)TIC// /_}#*_}//s/_is_in}=1, download_status_flags=1"
for png in "$1"/*.png; do URL="$(plutil -convert xml1 -o - "$DIR/../../Bookmarks.plist" | \
awk -F '[</>]' -v name="${${png##*/}%%.*}" '$3~name{getline;getline;getline;print $5}')"; \
cp -f -v "$png" "$DIR/${(U)$(md5 -q -s $URL)}.png"; done; chflags -v uappnd $DIR $DB*
@tosunkaya
tosunkaya / windscribe-ikev2.txt
Created February 3, 2022 20:51 — forked from prajaybasu/windscribe-ikev2.txt
Add all WS VPNs to Windows 10. Have both files in the same folder
<select id="location" name="location,
<option>Choose Location
us-central.windscribe.com,US Central
us-east.windscribe.com,US East
us-west.windscribe.com,US West
wf-us.windscribe.com,WINDFLIX US
ca.windscribe.com,Canada East
ca-west.windscribe.com,Canada West
wf-ca.windscribe.com,WINDFLIX CA
at.windscribe.com,Austria
System process daemons that are system-wide provided by mac os x are described by launchd preference files that can be showed with the command:
$ sudo ls -all /System/Library/LaunchDaemons/
Third party process daemons that are system-wide provided by the administrator are described by preference files that can be showed with the command:
$ sudo ls -all /Library/LaunchDaemons/
Launch Agents that are per-user provided by mac os x usually loaded when the user logs in. Those provided by the system can be found with:
$ sudo ls -all /System/Library/LaunchAgents/
Launch Agents that are per-user provided by the administrator and usually loaded when the user logs in. Those provided by the system can be found with:
@tosunkaya
tosunkaya / adb-dns.bat
Created April 5, 2022 22:36 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@tosunkaya
tosunkaya / remove-gamebar-powershell-win10.md
Created May 31, 2022 17:54 — forked from joshschmelzle/remove-gamebar-powershell-win10.md
How to Remove the Xbox Game Bar with Powershell on Windows 10

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
  3. Right-click on the app and pick Uninstall. Answer Yes to the prompt, and wait for the process to finish.
@tosunkaya
tosunkaya / Remove BlueStacks Ads
Created July 2, 2022 20:21 — forked from samchoi69/Remove BlueStacks Ads
Remove BlueStacks Ads
# Windows
1. Open Windows Command Prompt
2. Run command
"C:\Program Files (x86)\BlueStacks\HD-Adb.exe" shell
# Within BlueStacks shell
/system/xbin/bstk/su
pm disable-user com.bluestacks.s2p