Skip to content

Instantly share code, notes, and snippets.

@mohits
mohits / gist:555f599759a15062ea6f5b7976a4d9c7
Created May 22, 2026 12:41
Removing Dropbox from Windows Contex
-- Please use with care
-- Find me: x.com/onghu | https://ruby.social/@onghu | https://bsky.app/profile/onghu.com
Cleaning up the Shell Menu/ Shell Extension Menu
- https://www.nirsoft.net/utils/shell_menu_view.html
- https://www.nirsoft.net/utils/shexview.html
Download and unzip to d:\apps\sys_utils
Disabled:
- DropboxCopyHook Class Yes Copy Hook Handler Dropbox Shell Extension 1.0.77.0 Dropbox Dropbox, Inc. No No No No No No C:\Program Files (x86)\Dropbox\Client\DropboxExt64.77.0.dll {FBC9D74C-AF55-4309-9FB2-C426E071637F} 2024-12-26 7:10:11 PM 2024-12-26 7:10:12 PM No Directory AC 466,320 No No
- ContextMenuHandler Class Yes Context Menu Dropbox Shell Extension 1.0.77.0 Dropbox Dropbox, Inc. No No No No No No C:\Program Files (x86)\Dropbox\Client\DropboxExt64.77.0.dll {ECD97DE5-3C8F-4ACB-AEEE-CCAB78F7711C} 2024-12-26 7:10:11 PM 2024-12-26 7:10:12 PM No Directory\Background, *, .lnk, Directory, lnkfile AC 466,320 No No
@mohits
mohits / scratch.txt
Created September 30, 2020 13:51
Fast polylines - confirming it works on Ruby 2.6.6 on Windows
21:40:16.70>ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
21:41:25.13>gem build fast-polylines.gemspec
Successfully built RubyGem
Name: fast-polylines
Version: 2.1.0
File: fast-polylines-2.1.0.gem
21:41:35.02>gem install fast-polylines-2.1.0.gem
@mohits
mohits / failures.txt
Last active April 7, 2020 04:02
RedCloth JRuby - Spec Failures
Out of 5797 specs, there are 2 failures on JRuby. Both are related to encodings - the failures also happen on 4.2.9 for JRuby.
Case 1
------
if RUBY_VERSION > "1.9.0"
it "should preserve character encoding" do
input = "This is an ISO-8859-1 string"
input.force_encoding 'iso-8859-1'
output = RedCloth.new(input).to_html
@mohits
mohits / Gemfile
Created February 1, 2020 15:29
Radiant 1.1.4 in 2020 on Ruby 1.9.3-p551
# Force it to Ruby 1.9.3 since newer Ruby versions will not work
ruby "1.9.3"
# If HTTPS works, use the first line. If not, use the second line.
#source 'https://rubygems.org'
source 'http://rubygems.org'
# If you make any changes in this file, please run `bundle install`.
# If new versions of your installed gems are available, run `bundle update`
@mohits
mohits / Gemfile
Created October 9, 2019 05:52
Radiant 1.1.4 in 2019 - Gemfile and Gemfile.lock
# Gemfile for Radiant 1.1.4 in 2019 using 1.9.3
# This was modified and bullied till it worked for me on Windows
# ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
# see also Gemfile.lock since both needed to be used together
# note: source is set to http (not https) due to SSL issues that need to be fixed
source 'http://rubygems.org'
# If you make any changes in this file, please run `bundle install`.
# If new versions of your installed gems are available, run `bundle update`