Skip to content

Instantly share code, notes, and snippets.

@brancengregory
brancengregory / chrome_history.R
Created November 11, 2024 22:33
Chrome History in R with DuckDB
library(duckdb)
library(duckplyr)
library(dplyr)
chrome_history_path <- "./chrome_history.sqlite"
# Copy the db to the local directory because Chrome puts a lock on it
file.copy(
"~/.config/google-chrome/Default/History", # Adjust based on OS
chrome_history_path,

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps