Skip to content

Instantly share code, notes, and snippets.

@elliotwutingfeng
elliotwutingfeng / disable_google_assistant_pixel.md
Created June 14, 2024 10:04
Disable Google Assistant on Google Pixel devices

Disable Google Assistant on Google Pixel devices

Stop Google Assistant from popping up whenever you plug in your earphones by disabling the "Google" app on your Google Pixel device (phone or tablet).

@elliotwutingfeng
elliotwutingfeng / motp.rb
Created April 28, 2024 01:08
mOTP algorithm in Ruby under a permissive license. Permission has been granted by original author Matthias Straub to redistribute the mOTP algorithm under the MIT License.
# mOTP algorithm in Ruby under a permissive license. Permission has been granted by original author Matthias Straub
# to redistribute the mOTP algorithm under the MIT License.
# References: https://github.com/elliotwutingfeng/motp/blob/main/CREDITS.md and https://motp.sourceforge.net
require 'openssl'
secret = '0123456789ABCDEF'
pin = '0000'
period = 10
digits = 6
unix_seconds = Time.now.to_i
@elliotwutingfeng
elliotwutingfeng / trash_telegram_09042024.txt
Created April 9, 2024 09:20
Phishing sites from an abandoned Telegram group
claim-dapp.com
claim-mf-bdget24.xyz
cutt.ly
dappradarsas.com
eoro.io
fafuf.com
faqey.com
flufff.io
fluffland.io
fowun.com
@elliotwutingfeng
elliotwutingfeng / generate_totp.sh
Created March 30, 2024 15:34
One-liner Linux terminal command to generate TOTP code using oathtool (https://www.nongnu.org/oath-toolkit/oathtool.1.html)
#!/bin/sh
# SHA1, 30 seconds, 6 digits; the most common configuration.
# Adjust accordingly if your OTP credential uses different parameter values.
# Upon entering this command, type in your TOTP secret (it will not be echoed back to the screen), then press 'Enter'
stty -echo;oathtool --totp=SHA1 --time-step-size=30s --digits=6 --base32 -;stty echo
@elliotwutingfeng
elliotwutingfeng / remove_debug_apps.sh
Created March 25, 2024 10:13
Remove Android debug apps from your phone
adb uninstall com.example.example_app
@elliotwutingfeng
elliotwutingfeng / genpass.sh
Last active April 13, 2024 15:22
One-liner to generate alphanumeric password in Ruby (1.8.2+)
ruby -e "require 'openssl'; puts (0...24).map { c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; i = OpenSSL::Random.random_bytes(1).unpack('C').first % c.length; c[i..i] }.join"
# Or alternatively to avoid homoglyphs (https://en.wikipedia.org/wiki/Homoglyph)
# ruby -e "require 'openssl'; puts (0...24).map { c = '3479AEFHJLNQRTYabdefghijnqrty'; i = OpenSSL::Random.random_bytes(1).unpack('C').first % c.length; c[i..i] }.join"
@elliotwutingfeng
elliotwutingfeng / RubyOnArch.md
Created March 17, 2024 04:59 — forked from jhass/RubyOnArch.md
My Ruby setup on Archlinux

Ruby on Archlinux

I thought I would document my setup, since it's somewhat non-standard but working quite well for me.

What this does

  • Install major Ruby versions at their latest patch release
  • Allow to switch between them seamlessly
  • Use chruby
  • Encourage bundler usage
@elliotwutingfeng
elliotwutingfeng / phishing_bitwarden.txt
Last active March 14, 2024 03:11
List of phishing websites that attempt to impersonate the Bitwarden website. Visiting any of these websites is strongly discouraged. See https://bitwarden.com/help/bitwarden-addresses for an exhaustive list of official addresses used by Bitwarden.
3bitwarden.com
amsbitwarden.com
app-bitwarden.com
appbitwarden.com
bbitwarden.com
bitwarden360.com
bitwardenaccount.net
bitwarden.app
bitwarden-app.com
bitwardendamveien.com
@elliotwutingfeng
elliotwutingfeng / useful_web_browser_content_filtering_addons.md
Created March 10, 2024 20:52
Useful Web Browser Content Filtering Addons

Useful Web Browser Content Filtering Addons

These should all be available on Firefox/Chrome/Edge.

  • ClearURLs
    • Remove tracking elements from URLs.
  • Decentraleyes
    • Protects you against tracking through "free", centralized, content delivery.
  • Disconnect
  • Lets you visualize and block the invisible websites that track you.
@elliotwutingfeng
elliotwutingfeng / setting-up-oh-my-zsh.md
Last active March 9, 2024 17:21
Setting up oh-my-zsh

oh-my-zsh

Install oh-my-zsh and some useful plugins

# Install oh-my-zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting