Skip to content

Instantly share code, notes, and snippets.

View shashank-bhatotia's full-sized avatar
🚀

Shashank Bhatotia shashank-bhatotia

🚀
View GitHub Profile
@shashank-bhatotia
shashank-bhatotia / clean-rn.sh
Last active May 16, 2025 17:29
React Native Project Cleaner (Advanced Bash CLI)
#!/bin/bash
set -euo pipefail
show_help() {
cat << EOF
Usage: ./clean-rn.sh [options]
Options:
--no-install Skip reinstalling JS and Pod dependencies
@shashank-bhatotia
shashank-bhatotia / google_play_verification.rb
Created July 6, 2023 17:57 — forked from jkotchoff/google_play_verification.rb
Verifying an Android subscription in a Ruby on Rails app using the Google Play API
class GooglePlayVerification
require 'google/api_client'
# Refer:
# https://code.google.com/p/google-api-ruby-client/issues/detail?id=72
# and
# http://jonathanotto.com/blog/google_oauth2_api_quick_tutorial.html
# and
# http://milancermak.wordpress.com/2012/08/24/server-side-verification-of-google-play-subsc/
GOOGLE_KEY = 'xxx-xxx.apps.googleusercontent.com'
@shashank-bhatotia
shashank-bhatotia / the % notation in ruby.md
Created September 20, 2022 05:06 — forked from jakimowicz/the % notation in ruby.md
%Q, %q, %W, %w, %x, %r, %s, %I, %i

%Q, %q, %W, %w, %x, %r, %s, %i

Perl-inspired notation to quote strings: by using % (percent character) and specifying a delimiting character.

Any single non-alpha-numeric character can be used as the delimiter, %[including these], %?or these?, %~or even these things~.

Strings

% or %Q

@shashank-bhatotia
shashank-bhatotia / terminal-commands.md
Created September 16, 2022 08:45 — forked from bradtraversy/terminal-commands.md
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database