Skip to content

Instantly share code, notes, and snippets.

@tosunkaya
tosunkaya / steamwebhelper_min.bat
Created August 2, 2023 10:24 — forked from AveYo/. steamwebhelper_min.bat
Steam minimal resource usage after removal of -no-browser launch option. Enter script in powershell then use Steam_min shortcut on Desktop instead
@(set '(=)||' <# lean and mean cmd / powershell hybrid #> @'
@set /a STEAMWEBHELPER_OFFLINE=0
@set /a USE_NEW_INGAME_OVERLAY=0
:: makes 2 Desktop shortcuts: Steam_min - use with auto-login; Steam_login - use if auto-login is not enabled and dialog is black
@echo off & title steamwebhelper_min || AveYo 2023.07.24
for /f "tokens=2*" %%R in ('reg query HKCU\SOFTWARE\Valve\Steam /v SteamPath 2^>nul') do for %%A in ("%%~S") do set "STEAM=%%~fA"
if 1%STEAMWEBHELPER_OFFLINE% gtr 10 (set OFFLINE=--proxy-server=localhost) else (set OFFLINE=--disable-background-networking)
if 1%USE_NEW_INGAME_OVERLAY% gtr 10 (set OVERLAY=-oldtraymenu) else (set OVERLAY=-vgui)
@tosunkaya
tosunkaya / AdbCommands
Created July 30, 2023 22:32 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@tosunkaya
tosunkaya / gist:b42eb47e46166ec7b4fe93d8f7a2d407
Created July 30, 2023 21:49 — forked from tsohr/gist:5711945
Android activity manager "am" command help
adb shell am
usage: am [subcommand] [options]
usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--R COUNT] [-S] [--opengl-trace] <INTENT>
am startservice <INTENT>
am force-stop <PACKAGE>
am kill <PACKAGE>
am kill-all
am broadcast <INTENT>
am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]
@tosunkaya
tosunkaya / adbToggleAirplane.sh
Created July 30, 2023 19:26 — forked from sebastiansommer/adbToggleAirplane.sh
Toggle airplane mode with adb and restart personal hotspot.
adb shell settings put global airplane_mode_on 1 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
sleep 15
adb shell settings put global airplane_mode_on 0 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
adb shell am start -n com.android.settings/.TetherSettings
adb shell input keyevent 20
adb shell input keyevent 66
@tosunkaya
tosunkaya / s10plus-bloatware-list.md
Created July 26, 2023 06:37 — forked from patrickdappollonio/s10plus-bloatware-list.md
Samsung Galaxy S10+ bloatware list

Samsung Galaxy S10+ Bloatware list you can disable

Disclaimers:

  • This won't uninstall the application -- even when the command says so. It'll simply remove it from your username, but it will still exist in your phone.
  • With the list, YMMV. Some features might stop working after disabling certain apps. Feel free to disable just the ones you don't use.
  • You need developer options enabled to run these commands, and a USB connection to your computer, with your computer running adb shell.

Samsung Dex

pm uninstall -k --user 0 com.sec.android.desktopmode.uiservice
@tosunkaya
tosunkaya / android-set-ntp-server.md
Created July 21, 2023 05:05 — forked from xujiaao/android-set-ntp-server.md
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@tosunkaya
tosunkaya / Microsoft Edge Testing on VirtualBox.md
Created July 9, 2023 07:49 — forked from theprivileges/Microsoft Edge Testing on VirtualBox.md
A simple guide on how to use VirtualBox and Virtual Machine images from modern.ie so you can test your project on MSEdge.

The following are the steps for downloading and running MSEdge on VirtualBox.

Step 1 — Download Virtual Box

Head to https://www.virtualbox.org/wiki/Downloads, and download the appropriate platform package.

Step 2 — Download Virtual Machine

Microsoft's modern.ie has kindly provided us with images from IE8 to MSEdge. You can download these images at https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/.

  • Select the MSEdge option under Virtual Machine.
  • Select VirtualBox under Platform.

Moving Authy to 1Password

1Password 5.3 for OSX, 5.2 for iOS, and 4.1.0.538 for Windows support OTP. I've been using Authy for a while now, but the fact is, I haven't really been using 2FA for some time. As mentioned by 1Password in a recent blog post, having the OTP generator and password on the same device is very much not 2FA. It's just an expiring OTP, which can help, but let's not kid ourselves too much.

With that out of the way. One of the things that was interesting to me was moving my OTP out of Authy and into 1Password. I like the control I get with 1Password, but I didn't want to have to reset all my OTP right away, that would suck. So, I got to dissecting the Authy Chrome App to see what I could do.

Run the Authy Chrome app and make sure it's unlocked.

Now, enable Developer mode in Chrome. We'll need this to inspect the background application that stores al

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

# Compiled from various networks that block things "because reasons"
# There are some pretty big ban hammers here.
# To make use of this you will need to do some sort of DNS wild-carding,
# which is beyond the scope of this document. Be careful, lest you break
# the internet, eg. blocking all of google or amazon ;)
#ccTLDs
ad
bg