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 / 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 / iOS-8-web-app.html
Last active January 13, 2021 13:18 — forked from tfausak/ios-8-web-app.html
iOS 8 Web App
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@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 / 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 / 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'