This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To get a list of the files that were most recently modified: | |
find $* -type f -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort -r -n | head | |
# If you want to ignore files in hidden directories (that start with dot), such as eclipse metadata files, use: | |
find $* -not \( -type d -name ".*" -prune \) -and -type f -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort -r -n | head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Author: Joao Antunes | |
Version: 0.1 | |
*) | |
property database_file : "Library:iTunes:Scripts:index_ratings.txt" | |
property SET_ENCODING : "export LANG=en_US.UTF-8; " | |
on run | |
set FILEDB to POSIX path of ((path to home folder as string) & database_file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tasks/db.rake | |
require_relative 'helpers/seed_migration_helper' | |
namespace :db do | |
desc 'Run db:migrate and seed:migrate in chronological order' | |
task(migrate_with_data: :environment) do | |
schema_migrations = SeedMigrationHelper.schema_migrations | |
seed_migrations = SeedMigrationHelper.seed_migrations | |
migrations_to_run = (schema_migrations + seed_migrations).sort_by { |k| k[:version] } |