To install this gem, paste this line in your Gemfile:
gem "some-gem-name"| # Paste this a your production console to detect which tables are empty, which | |
| # columns are empty and which columns contain a single value. | |
| # | |
| # Adapted from http://blog.ianenders.com/coding/2013/07/02/detecting-unused-db-fields-in-rails.html | |
| connection = ActiveRecord::Base.connection | |
| connection.tables.each do |t| | |
| puts "----> #{t}" | |
| count_query = "SELECT COUNT(1) as count FROM #{t}" | |
| count = connection.select_all(count_query, "Count").first['count'] | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Générateur de titre de conférence XebiCon</title> | |
| <link | |
| href="https://fonts.googleapis.com/css?family=Lato&display=swap" | |
| rel="stylesheet" | |
| /> | |
| <style> | |
| p { | 
| # frozen_string_literal: true | |
| module Finder | |
| attr_reader :id | |
| def initialize(**) | |
| @id = self.class.count | |
| end | |
| def self.included(base) | 
| #!/usr/bin/env ruby | |
| def ffprobe_duration(wav) | |
| call( | |
| "ffprobe " \ | |
| "'#{wav}' " \ | |
| "-show_entries format=duration " \ | |
| "-of compact=p=0:nk=1 " \ | |
| "-v 0" | |
| ) | 
| from sgqlc.endpoint.http import HTTPEndpoint | |
| import base64 | |
| query = ''' | |
| { | |
| creations(limit: 20, offset: 0) { | |
| name | |
| url | |
| } | |
| } | 
| #!/usr/bin/env ruby | |
| deleted_branches = | |
| `git fetch --all --tags --prune --dry-run 2>&1 | grep deleted` | |
| .split("\n") | |
| .map { |line| line.split('origin/')[1] } | |
| .select { |branch| system("git rev-parse --verify #{branch} > /dev/null 2>&1") } | |
| deleted_branches.each do |branch| | |
| print "Delete #{branch}? Y/n " | 
To install this gem, paste this line in your Gemfile:
gem "some-gem-name"To install this gem, paste these lines in your Gemfile:
# Adds some things to your Rails app
gem "some-gem-name"| # XML Parsing library, required for our RSS feed reader | |
| gem "nokogiri" |