Skip to content

Instantly share code, notes, and snippets.

View vladimir-paskov's full-sized avatar

Vladimir Paskov vladimir-paskov

View GitHub Profile
@vladimir-paskov
vladimir-paskov / webhook.php
Created February 19, 2024 07:29 — forked from erikdmitchell/webhook.php
PHP Webhook setup for STRAVA API
<?php
if (isset($_GET['hub_challenge'])) {
$data = ['hub.challenge' => $_GET['hub_challenge']];
header("HTTP/1.1 200 OK");
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
exit;
}
@vladimir-paskov
vladimir-paskov / disable-auto-android-file-transfer.md
Created January 7, 2022 20:29 — forked from zeroseis/disable-auto-android-file-transfer.md
Disable auto start for Android File Transfer
  • Close Android File Transfer
  • Open Activity Monitor and kill “Android File Transfer Agent”
  • Go to where you installed “Android File Transfer.app” (I have it under /Applications)
  • Ctrl+click –> “Show package contents”
  • Go to Contents/Resources
  • Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
  • Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
@vladimir-paskov
vladimir-paskov / android.txt
Created August 6, 2021 23:02 — forked from srishanbhattarai/android.txt
Android Emulator CPU/Memory high usage solution
https://stackoverflow.com/questions/37063267/high-cpu-usage-with-android-emulator-qemu-system-i386-exe
The cause of the constant CPU usage is the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file.
Change/add those two lines
hw.audioInput=no
hw.audioOutput=no
On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini
On Windows the file is located at C:\Users\<username>\.android\avd\<AVD_Name>.avd\config.ini