Skip to content

Instantly share code, notes, and snippets.

@simofacc
simofacc / .buildpacks
Created June 26, 2018 08:09
Dokku Ruby Scraper Buildpacks
https://github.com/heroku/heroku-buildpack-ruby.git
https://github.com/heroku/heroku-buildpack-chromedriver.git
https://github.com/heroku/heroku-buildpack-google-chrome.git
@simofacc
simofacc / crontab -e
Created June 26, 2018 08:39
Dokku Ruby Scraper Cron Jobs
* * * * * dokku --rm-container run stats rake scraper:run_scraper
0 * * * * dokku --rm-container run stats rake scraper:hourly_cleanup
0 1 * * * dokku --rm-container run stats rake scraper:nightly_cleanup
* * * * * dokku --rm-container run stats rake scraper:backup_check
@simofacc
simofacc / wordpress-permissions
Created July 31, 2018 10:25
Wordpress Permissions
chown www-data:www-data -R *;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
@simofacc
simofacc / README.MD
Created February 15, 2020 19:19
Squarespace.com to Ghost export/import
@simofacc
simofacc / index.js
Created August 6, 2020 07:43
Tick multiple checkboxes and trigger onChange event
document.querySelectorAll("input[type=checkbox]").forEach(c => { c.checked = true; c.onchange(); });