Skip to content

Instantly share code, notes, and snippets.

View pashkatrick's full-sized avatar
🐝
work hard

Pavel Yudin pashkatrick

🐝
work hard
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhruvSHA256
dhruvSHA256 / debloatmiui.sh
Last active August 12, 2025 14:04
remove bloatware from MIUI
adb shell pm disable-user --user 0 com.mi.globalbrowser
adb shell pm disable-user --user 0 com.miui.android.fashiongallery
adb shell pm uninstall --user 0 cn.wps.moffice_eng
adb shell pm uninstall --user 0 cn.wps.xiaomi.abroad.lite
adb shell pm uninstall --user 0 code.name.monkey.retromusic
adb shell pm uninstall --user 0 com.alibaba.aliexpresshd
adb shell pm uninstall --user 0 com.allgoritm.youla
adb shell pm uninstall --user 0 com.amazon.avod.thirdpartyclient
adb shell pm uninstall --user 0 com.amazon.mShop.android.shopping
adb shell pm uninstall --user 0 com.android.bips
@moshfeu
moshfeu / extension.js
Created September 22, 2018 22:02
Get current line content in vscode extension
const {text} = activeEditor.document.lineAt(activeEditor.selection.active.line);
@chhantyal
chhantyal / send.js
Last active June 14, 2022 14:37
One thousands (1000) HTTP requests: async using NodeJs vs sync using Python vs using Python (with threads)
// npm install request
let request = require('request')
let range = n => Array.from(Array(n).keys())
data = range(1000)
data.forEach(function (item) {
request.get("https://httpbin.org/ip", function (error, response, body){
console.log("Request " + item + " complete.")
@sameoldmadness
sameoldmadness / README.md
Last active September 16, 2025 15:34
Нагрузочное тестирование c Yandex.Tank и JMeter

Нагрузочное тестирование c Yandex.Tank и JMeter

На этой странице описывается процесс настройки нагрузочного тестирования внешних ресурсов.

Кратко

Для тестирования поведения сервиса под нагрузкой используется утилита Yandex Tank.

Танку можно указать патроны (HTTP-запросы, которые будут отправлены на целевой сервер) и расписание (количество запросов в секунду к целевому серверу в каждый момент времени стрельб, а также продолжительность стрельб). Также к танку можно подключить плагин мониторинга, позволяющий снимать показатели (например, количество свободной памяти или загрузку процессора) с целевого сервера.

@olih
olih / jq-cheetsheet.md
Last active December 5, 2025 21:17
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@jclosure
jclosure / docker_reverting
Created June 5, 2015 08:07
How to revert a docker container to a previous commit
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB
$ docker tag 2844 imagename # <-- that's the secret right there
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
@sloria
sloria / bobp-python.md
Last active January 16, 2026 08:01
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens