Skip to content

Instantly share code, notes, and snippets.

@bond-
bond- / disable-eval-tampermoney.js
Last active September 21, 2020 09:22
Disable eval to get rid of annoying malware popups (Chrome PDF Viewer)
// ==UserScript==
// @name Disable eval to get rid of annoying malware popups
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http*://*/*
// @exclude http*://*.google.com/*
// @run-at document-start
// @grant none
extension Sequence {
/**
Returns a filtered "view" of `self` where only one for all elements that return the same value for `taggingHandler` is kept. In other words: every element in the returned array was the first to return its value from `taggingHandler` when traversing the sequence in order.
```swift
[1, 1, 1, 2, 3, 3, 4, 5, 5, 5].unique { $0 }
// = [1, 2, 3, 4, 5]
[0, 1, -1, -2, 2, -3, -3].unique { abs($0) }
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 15, 2026 03:01 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@Pulimet
Pulimet / AdbCommands
Last active June 24, 2026 19:50
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
#!/usr/bin/env bash
set -euo pipefail
##########
# Config #
##########
readonly GIT_BRANCH='android-8.0.0_r4'
readonly API_LEVEL='26'
@steven2358
steven2358 / ffmpeg.md
Last active June 24, 2026 03:23
FFmpeg cheat sheet
@marcorodas
marcorodas / VectorDrawable2Svg.py
Created February 9, 2018 05:18
Android Vector to SVG
"""
VectorDrawable2Svg
This script convert your VectorDrawable to a Svg
Author: Alessandro Lucchet
See: https://gitlab.com/Hyperion777/VectorDrawable2Svg/blob/fac86195ba78f27301a70fb612b7c638f066a335/VectorDrawable2Svg.py
Usage: drop one or more vector drawable onto this script to convert them to svg format
"""
from xml.dom.minidom import *
import sys
@BramYeh
BramYeh / ViewPagerBottomSheetBehavior.java
Last active May 22, 2024 02:59
ViewPagerBottomSheetBehavior overrides package level methods and fields
package android.support.design.widget;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
/**
@dmsl1805
dmsl1805 / SnakeCase.swift
Last active September 25, 2024 23:14 — forked from ivanbruel/SnakeCase.swift
Camel case to snake case in Swift
extension String {
func snakeCased() -> String? {
let pattern = "([a-z0-9])([A-Z])"
let regex = try? NSRegularExpression(pattern: pattern, options: [])
let range = NSRange(location: 0, length: count)
return regex?.stringByReplacingMatches(in: self, options: [], range: range, withTemplate: "$1_$2").lowercased()
}
}
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 29, 2026 14:22
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}