Skip to content

Instantly share code, notes, and snippets.

View henrypoydar's full-sized avatar
🤓

Henry Poydar henrypoydar

🤓
View GitHub Profile
@henrypoydar
henrypoydar / eleventy.config.js
Last active March 3, 2024 22:55
Using Eleventy and ScreenshotOne for on-the-fly social graph image generation
const ogImageSource = require('./_src/_utilities/ogImageSource.js');
@henrypoydar
henrypoydar / development.js
Created December 8, 2020 19:43
Use webpack-dev server to hot reload Rails views when they change in development
process.env.NODE_ENV = process.env.NODE_ENV || "development";
const environment = require("./environment");
// Hot reload views via webpack dev server.
// https://github.com/rails/webpacker/issues/1879
// However, Circle CI system test choke on this. NODE_ENV is
// 'development' in tests by default. So check RAILS_ENV and
// skip hot reload in testing.
if (process.env.RAILS_ENV == "development") {
@henrypoydar
henrypoydar / 0 [before] Gemfile
Last active July 1, 2020 01:15
Sidekiq - undefined method `retrieve_work'
ruby "2.6.6"
gem "rails", "6.0.3.2"
gem "redis", "~> 4.1.4"
gem "sidekiq-ent", source: "https://enterprise.contribsys.com/"
gem "sidekiq-pro", source: "https://enterprise.contribsys.com/"
@henrypoydar
henrypoydar / Environment variables in Heroku
Last active March 19, 2023 18:13
Rails + Sidekiq + Puma + Heroku
WEB_PROCESSES=2
WEB_THREADS=5
WORKER_THREADS=15
@henrypoydar
henrypoydar / manifest.json
Last active October 8, 2018 17:48
MS Teams connector manifest
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.3/MicrosoftTeams.schema.json",
"manifestVersion": "1.3",
"version": "1.0.7",
"id": "760108a2-3c13-45e2-aa70-11a8acd32e3a",
"packageName": "com.statushero",
"developer": {
"name": "Status Hero",
"websiteUrl": "https://statushero.com/",
"privacyUrl": "https://statushero.com/privacy",
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 977 | 772 | 24 | 79 | 3 | 7 |
| Helpers | 528 | 469 | 0 | 42 | 0 | 9 |
| Jobs | 14 | 12 | 2 | 2 | 1 | 4 |
| Models | 1556 | 1293 | 24 | 105 | 4 | 10 |
| Mailers | 10 | 7 | 1 | 1 | 1 | 5 |
| Javascripts | 276 | 197 | 0 | 34 | 0 | 3 |
| Libraries | 243 | 168 | 5 | 15 | 3 | 9 |
416 text files.
415 unique files.
25 files ignored.
github.com/AlDanial/cloc v 1.76 T=1.22 s (329.1 files/s, 18375.4 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Ruby 241 2273 784 9781
Haml 80 468 37 2570
source "https://rubygems.org"
ruby "2.4.3"
gem "rails", "4.2.10"
gem 'aasm', '~> 4.12.0'
gem 'bootstrap-sass', '~> 3.3.3'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'
gem "bootstrap-will_paginate", "~> 0.0.10"
gem 'carrierwave', '~> 0.10.0'
@henrypoydar
henrypoydar / config.yml
Created November 20, 2017 00:19
Rails 5.1 CircleCI 2.0 Configuration
version: 2
jobs:
build:
environment:
working_directory: ~/circleci-myapp
docker:
- image: circleci/ruby:2.4.2-node-browsers
environment:
CC_TEST_REPORTER_ID: XXXYYY
RAILS_ENV: test
@henrypoydar
henrypoydar / log.txt
Created June 25, 2016 15:00
MakerBot Desktop - Restart Service log with Replicator 2 on OSX 10.11.5
Marker - Jun 25, 2016, 10:57:44
2016-06-25 10:57:53,034 | INFO | MainThread:123145303375872 | main.py:227 | conveyor.server.__main__.ServerMain:_log_startup | conveyord 3.8.3 started
2016-06-25 10:57:53,034 | INFO | MainThread:123145303375872 | main.py:228 | conveyor.server.__main__.ServerMain:_log_startup | git hash: 9be3a7fbafebc0a71e0f91adba228331c0395c78
2016-06-25 10:57:53,034 | INFO | MainThread:123145303375872 | main.py:229 | conveyor.server.__main__.ServerMain:_log_startup | process id: 4634
2016-06-25 10:57:53,035 | INFO | MainThread:123145303375872 | main.py:230 | conveyor.server.__main__.ServerMain:_log_startup | python version: '2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]'
2016-06-25 10:57:53,044 | INFO | MainThread:123145303375872 | main.py:231 | conveyor.server.__main__.ServerMain:_log_startup | python platform: 'Darwin-15.5.0-x86_64-64bit'
2016-06-25 10:57:53,045 | INFO | MainThread:123145303375872 | main.py:232 | conveyor.server.__main__.Se