Skip to content

Instantly share code, notes, and snippets.

@codebycliff
codebycliff / cloudSettings
Created May 10, 2019 18:57 — forked from tegandbiscuits/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-03T15:00:53.348Z","extensionVersion":"v3.2.7"}
@codebycliff
codebycliff / Dangerfile
Created May 27, 2020 18:45
Dangerfile for structure.sql
migration_added = git.added_files.include?('db/migrate/*.rb')
schema_modified = git.modified_files.include?('db/structure.sql')
warn 'Migration has been added, but structure.sql has not been modified' if
migration_added && !schema_modified
warn 'Schema has been modified, but no migration has been added' if
schema_modified && !migration_added
@codebycliff
codebycliff / ApacheWordPressSites.md
Created March 25, 2021 17:44 — forked from zachwright/ApacheWordPressSites.md
Setting up Apache WordPress Sites

Apache Server WordPress Sites

Things to remember when setting up a WordPress site on an Apache server

First add url to hosts

/etc/hosts add local url to 127.0.0.1

Second add virtual host

/etc/apache2/extra/httpd-vhosts.conf add vhost config for site - If Wordpress/bedrock the path needs to be the projectfolder/web

This file has been truncated, but you can view the full file.
EXPLAIN (ANALYZE) SELECT "entry_slip_selections"."id", "entry_slip_selections"."entry_slip_id", "entry_slip_selections"."option_type", "entry_slip_selections"."result", "entry_slip_selections"."actual_stat_value", "entry_slip_selections"."created_at", "entry_slip_selections"."updated_at", "entry_slip_selections"."option_id", "entry_slip_selections"."result_at", "entry_slip_selections"."metadata", "entry_slip_selections"."admin_graded", "entry_slip_selections"."payout_multiplier", "entry_slip_selections"."reboot_id", "entry_slip_selections"."power_up_id", "entry_slip_selections"."entry_slip_selection_match_group_id", "entry_slip_selections"."handle", "entry_slip_selections"."liability" FROM "entry_slip_selections" WHERE ("entry_slip_selections"."option_type" = $1 AND "entry_slip_selections"."option_id" IN ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44,