Skip to content

Instantly share code, notes, and snippets.

View m4rr's full-sized avatar
๐Ÿš€
IPO

Marat m4rr

๐Ÿš€
IPO
View GitHub Profile
@m4rr
m4rr / vkontakte.js
Created August 2, 2018 12:51
Remove all vk.com wall posts (except 20 first and 20 last items.) First, load all wall posts on single page, then run in console:
(function () { 'use strict'; if (!confirm('ะฃะดะฐะปะธั‚ัŒ ะฒัะต ะทะฐะฟะธัะธ ัะพ ัั‚ะตะฝั‹?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick^="wall.deletePost"]'); for (var i = 20; i < deletePostLink.length - 20; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + ' posts deleted'); }());
@m4rr
m4rr / .zshrc
Created May 16, 2019 13:55
m4rr zshrc to view pull requests
gpr() {
git checkout develop
git pull
git branch -D "$1"
git checkout "$1"
git reset --soft $(git merge-base develop $(git rev-parse --abbrev-ref HEAD))
}
grpr() {
BRANCH=`git rev-parse --abbrev-ref HEAD`

Keybase proof

I hereby claim:

  • I am m4rr on github.
  • I am m4rr (https://keybase.io/m4rr) on keybase.
  • I have a public key ASBdAiIIyjGK6lCzTcAz7tZK4Ft72U6aP8NV_QP_AV2IVQo

To claim this, I am signing this object:

@m4rr
m4rr / macos india wifi.scpt
Last active March 24, 2020 08:53
restart macos wifi if there is no internet connection
repeat 30 times
(* run for 30 minutes every 1 minute *)
repeat 60 * 60 times
(* run for 60 minutes every 1 second *)
set status to do shell script "networksetup -getairportpower en0"
if status ends with "Off" then
@m4rr
m4rr / 1641983832.json
Last active January 17, 2022 18:59
Keychron K8 Setup
{
"title": "Keychron K8 Mic Button to Google Meet Mic Mute",
"rules": [
{
"description": "Change Fn+Spacebar to Cmd+D",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
@m4rr
m4rr / HiddenMacOSDebuggingPanel.md
Created July 31, 2024 13:10 — forked from usagimaru/HiddenMacOSDebuggingPanel.md
Enables useful debugging panel in macOS apps

Use _NS_4445425547 or NS๐Ÿž for enables debuggging panel. When enabled it, a ladybug ๐Ÿž menu appears in the app menu bar.

โ€œ4445425547โ€ means DEBUG in Unicode table.

0x44=D
0x45=E
0x42=B
0x55=U
0x47=G

private extension SwiftUI.Text {
init?(_ strOrNil: String?) {
if let strOrNil {
self.init(strOrNil)
} else {
return nil
}
}
}
Write
Sign in
Home
Following
Library