Skip to content

Instantly share code, notes, and snippets.

View berkantkz's full-sized avatar
💎

berkant berkantkz

💎
  • Istanbul
View GitHub Profile
@berkantkz
berkantkz / NavBackOnMidMouseBtn.ahk
Created November 22, 2024 13:28
AutoHotkey script to navigate back on ms-edge on Middle Button click if cursor is not placed on an anchor (link)
#HotIf WinActive("Edge") and (A_Cursor != "Unknown")
MButton::Browser_Back
#HotIf
@berkantkz
berkantkz / ignore-ssl-verification.txt
Created March 6, 2024 07:50
pip install ssl error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)'))
I am getting this error on my company laptop at the office. In order to ignore SSL Verification, I install the library using the code below:
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <library-name>
source: https://stackoverflow.com/a/29751768
@berkantkz
berkantkz / focusinput.user.js
Last active February 19, 2025 13:39
FocusInput
// ==UserScript==
// @name FocusInput
// @namespace https://berkantkz.github.io
// @version 0.3
// @description Focus to the very first text input on a web page on any key press
// @author berkantkz
// @match *://*/*
// @homepage https://gist.github.com/berkantkz/cfa31157d8e54d821f1ddf345a93d36a
// @icon https://berkantkz.github.io/kz.png
// @grant none
@berkantkz
berkantkz / github_commits_button.user.js
Last active October 19, 2022 22:09
tampermonkey script to bring back the commits tab on github page of a repo https://greasyfork.org/tr/scripts/447309-github-commits-button
// ==UserScript==
// @name GitHub commits button
// @namespace http://berkantkz.me/
// @version 0.2
// @description bring back the commits tab on github repos
// @author berkantkz
// @match https://github.com/*
// @require http://code.jquery.com/jquery-3.6.0.min.js
// @icon https://berkantkz.me/kz.png
// @grant none
@berkantkz
berkantkz / sahibinden.com.dark.fancystyle.css
Last active April 17, 2022 14:24
sahibinden.com için gözüme daha hoş gelen stylus karanlık mod stil kuralları. stylus: https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne
@media (prefers-color-scheme: dark) {
body, div, td, tr, th, thead, tbody, dd, dt, dl, ul, li, a, p {
background: #242424 !important;
background-color: #242424 !important;
color: white !important;
}
dd {
border: 1px solid #fff5;
}
Assessment and comparison of impacts
The summary table overleaf shows the impacts of the five policy options as such (applied to mobile phones only) relative to the baseline, and without taking into
account any potential effects from increased voluntary decoupling that might follow from the options, or effects on other portable electronic devices (these are discussed
separately below). As can be seen:
1 Social impacts: Options 1, 4 and 5 would increase consumer convenience
overall, mainly due to the enhanced ability to charge different phones with different chargers, the increased likelihood of finding a compatible charger
while away from home (option 1), and/or reduced confusion about which charger works with what (options 4 and 5). There are also marginal benefits in
terms of product safety and the illicit market from all options except option 3, due to the expected small reductions in demand for (potentially unsafe and/or
counterfeit) stand-alone chargers.
@berkantkz
berkantkz / tampermonkey-scripts
Last active June 3, 2023 20:55
tampermonkey scripts that I use
Focus Input
https://gist.github.com/berkantkz/cfa31157d8e54d821f1ddf345a93d36a
YouTube Volume Mouse Controller
https://greasyfork.org/en/scripts/376002-youtube-volume-mouse-controller
Local YouTube Downloader
https://greasyfork.org/en/scripts/369400-local-youtube-downloader
Twitter Media Downloader
@berkantkz
berkantkz / twitter-desktop-to-mobile.user.js
Last active December 4, 2021 15:53
tampermonkey script for automatically switching to mobile view from desktop view
// ==UserScript==
// @name twitter desktop to mobile
// @namespace https://berkantkz.me
// @version 0.1
// @description automatically switch to mobile twitter site since the desktop version of twitter blocked on the wifi connection where I live by the administrator.
// @author berkantkz
// @match https://*.twitter.com/*
// @icon https://berkantkz.me/kz.png
// @grant none
// ==/UserScript==
@berkantkz
berkantkz / forum.donanimhaber.fancystyle.css
Created September 23, 2021 06:39
donanımhaber forum için gözüme daha hoş gelen bir stylus stil kuralları. stylus: https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne
@-moz-document domain("donanimhaber.com") {
.soltaraf {
max-width: 65% !important;
margin: 0 auto !important;
float: none !important;
}
.ki-cevapicerigi .icerik {
font-size: 15px;
line-height: 2;
@berkantkz
berkantkz / global.prop
Created July 8, 2021 09:53
mate 20 lite SNE-LX1 (C432E9R1P1) EUR EMUI10.0.0.245 (android 10) stock global props [adb shell settings list global]
CarrierPhoneId_0=-1
Phenotype_boot_count=4
Phenotype_flags=activity_starts_logging_enabled:alarm_manager_constants:alarm_manager_dummy_flags:always_on_display_constants:anomaly_config:anomaly_config_version:anomaly_detection_constants:app_idle_constants:app_standby_enabled:appop_history_parameters:backup_agent_timeout_parameters:battery_stats_constants:battery_tip_constants:binder_calls_stats:ble_scan_low_power_interval_ms:ble_scan_low_power_window_ms:blocking_helper_dismiss_to_view_ratio:blocking_helper_streak_limit:device_idle_constants:emergency_call_codes_data:gnss_satellite_blacklist:hybrid_sysui_battery_warning_flags:job_scheduler_constants:job_scheduler_quota_controller_constants:job_scheduler_time_controller_constants:location_background_throttle_interval_ms:location_ignore_settings_package_whitelist:network_watchlist_enabled:night_display_forced_auto_mode_available:notification_snooze_options:phenotype_test_setting:settings_use_external_provider_api:settings_use_psd_api:smart_replies_in_notifications