Skip to content

Instantly share code, notes, and snippets.

View overdrivemachines's full-sized avatar

Dipen Chauhan overdrivemachines

View GitHub Profile
@overdrivemachines
overdrivemachines / wiki-100k.txt
Created April 23, 2019 18:16 — forked from h3xx/wiki-100k.txt
Wictionary top 100,000 most frequently-used English words [for john the ripper]
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources:
@overdrivemachines
overdrivemachines / OpenFolderWithSublimeText4.reg
Created July 3, 2021 03:10
Adds "Open folder with Sublime Text" in right click menu for Windows 10. Works with Sublime Text 4 Build 4107
Windows Registry Editor Version 5.00
; For folders.
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%1\""
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_convert_line_endings_to": "Unix",
"bold_folder_labels": true,
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"font_size": 17,
"highlight_line": true,
"highlight_modified_tabs": true,
@overdrivemachines
overdrivemachines / rails_cheat_sheet.md
Last active October 17, 2021 02:46
Ruby on Rails 6.1 Cheat Sheet

Ruby on Rails 6.1 Cheat Sheet

Naming Conventions

Filename: snake_case, orders_controller.rb
Classes: CamelCase, ApplicationController, 'PropertiesController'
Variables: snake_case, order_amount, total, var1
Methods: snake_case, index, create, save! (operates destructively or raise an exception instead of failing), empty? (returns bool value)
Database Tables: snake_case plural: users, orders, bigfoot_sightings
Model: CamelCase singular: User, Order, BigfootSighting

@overdrivemachines
overdrivemachines / sublime_text_packages.md
Last active March 9, 2022 20:59
List of Packages I installed on my Sublime Text 4

List of Packages:

  • Sass
  • Bracket Highlighter
  • JavaScript & NodeJS Snippets
  • DocBlockr
  • SublimeCodeIntel
  • Sublime Linter, SublimeLinter-Ruby, and SublimeLinter-rubocop
  • SublimeERB
  • DashDoc
@overdrivemachines
overdrivemachines / active_record.md
Created November 17, 2021 06:48
Active Record Basics & Migrations

Naming Conventions

Model Class - Singular: BookClub DB Table - Plural: book_clubs

Schema Conventions

  • Foreign keys - Singularized_table_name_id: item_id, order_id
  • Primary keys - id
  • created_at
  • updated_at
@overdrivemachines
overdrivemachines / UbuntuSetup.md
Last active July 18, 2023 17:10
Set up new Ubuntu Computer

Setup Ubuntu 22.04 for Ruby on Rails

Upgrade Ubuntu

sudo apt-get update && sudo apt-get upgrade -y

Use local time

timedatectl set-local-rtc 1 --adjust-system-clock
@overdrivemachines
overdrivemachines / git_cheatsheet.md
Last active July 27, 2022 07:17
Github Cheatsheet

Github Cheatsheet

# First time setup
$ cd hello_app
$ git init
$ git add -A
$ git commit -m "Initial commit"
$ git remote add origin https://github.com/overdrivemachines/hello_app.git
$ git branch -M main
$ git push -u origin main
@overdrivemachines
overdrivemachines / vscode-extensions.md
Last active November 20, 2023 23:44
My VS Code Extensions
  • akamud.vscode-theme-onedark
  • aki77.rails-db-schema
  • aliariff.vscode-erb-beautify
  • azemoh.one-monokai
  • bung87.rails
  • bung87.vscode-gemfile
  • castwide.solargraph
  • deerawan.vscode-dash
  • dsznajder.es7-react-js-snippets
  • eamodio.gitlens
@overdrivemachines
overdrivemachines / email-production-rails.md
Last active November 11, 2022 08:16
Send emails in production environment Ruby on Rails

Generate Gmail App Password

Go to https://myaccount.google.com/apppasswords and generate an App Password

Save App Password

In terminal open the rails credentials

rails credentials:edit

Save the following info: