Skip to content

Instantly share code, notes, and snippets.

View itsjwala's full-sized avatar
🔥
Working Remotely

Jigar wala itsjwala

🔥
Working Remotely
View GitHub Profile
@itsjwala
itsjwala / s23.md
Created March 7, 2023 08:15
Stuff I do on my Samsung S23
@itsjwala
itsjwala / dom_css_path.js
Created March 6, 2023 13:33
get CSS path from DOM element node
/*
* Copyright (C) 2015 Pavel Savshenko
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
* Copyright (C) 2009 Joseph Pecoraro
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@itsjwala
itsjwala / notes.md
Last active August 28, 2022 07:22
Stuff I do on my iPhone 12
@itsjwala
itsjwala / migrate_redis_keys.sh
Created June 22, 2021 15:25
redis cli migrate keys
# use if keys are less, check redis metrics when this is done.
# "migrate" copies keys with TTL
redis-cli -h HOST1 -p 6398 keys \* | xargs -I '{}' -P 100 redis-cli -h HOST1 -p 6398 migrate HOST2 6398 "" 0 5000 COPY KEYS '{}'
# for lots of keys use SCAN to get keys in batches
@itsjwala
itsjwala / redmi8.txt
Last active May 9, 2024 19:22
Stuff I do on Dad's Redmi 8
https://kolappan.com/blog/2020/debloating-redmi-8/
find package using this
pm list packages -f | grep PACKAGE
uninstall package
130|olive:/ $ pm uninstall com.miui.android.fashiongallery
Failure [-1000]
@itsjwala
itsjwala / parse_aws_s3_bucket.js
Last active February 24, 2021 13:31
parse terraform file to create aws_s3_bucket resource
function parse (object,bucket) {
// console.log(object)
Object.keys(object).forEach(function (key) {
let val = object[key];
if (val == null) {
if (key == "bucket_prefix" || key == "acl"
|| key == "website_domain"
|| key == "website_endpoint") {
//skip
@itsjwala
itsjwala / realme7pro.txt
Last active January 1, 2022 14:00
stuff I do on realme 7 pro
setup ADB
https://www.xda-developers.com/install-adb-windows-macos-linux/
$ ./adb devices
$ ./adb shell
I don't like these..
pm uninstall --user 0 com.heytap.browser