Skip to content

Instantly share code, notes, and snippets.

Henry Poydar henrypoydar

Block or report user

Report or block henrypoydar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@henrypoydar
henrypoydar / Environment variables in Heroku
Last active Jun 18, 2019
Rails + Sidekiq + Puma + Heroku
View Environment variables in Heroku
WEB_PROCESSES=2
WEB_THREADS=5
WORKER_THREADS=15
@henrypoydar
henrypoydar / manifest.json
Last active Oct 8, 2018
MS Teams connector manifest
View manifest.json
{
"$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",
View gist:f1df3a05bf5acbfc169abc91f8836e7e
+----------------------+-------+-------+---------+---------+-----+-------+
| 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 |
View gist:7fb473a18f82c94d56f403728bfada19
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
View Gemfile
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 Nov 20, 2017
Rails 5.1 CircleCI 2.0 Configuration
View config.yml
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 Jun 25, 2016
MakerBot Desktop - Restart Service log with Replicator 2 on OSX 10.11.5
View log.txt
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
@henrypoydar
henrypoydar / gist:18516916923b3b6653d4bb994889e68c
Last active Jun 23, 2016
Makerbot Desktop 3.9.1.1143 error connecting to Replicator 2 on OSX 10.11.5
View gist:18516916923b3b6653d4bb994889e68c
2016-06-23 18:54:29,442 | INFO | MainThread:123145303375872 | __init__.py:1531 | conveyor.server.Server:usb_device_inserted | Device {u'iserial': '75334323935351B0B0C1', u'pid': 45079, u'port_type': 'UsbPort', u'vid': 9153} inserted
2016-06-23 18:54:29,466 | ERROR | MainThread:123145303375872 | EepromReader.py:47 | EepromReader:__init__ | Could not find /Library/MakerBot/python/makerbot_driver-0.1.1-py2.7.egg/makerbot_driver/EEPROM/eeprom_map_706_0x00.json
2016-06-23 18:54:29,536 | INFO | MainThread:123145303375872 | s3g.py:360 | conveyor.machine.s3g._S3gMachine:connect | Connecting {u'can_print': True, u'number_of_toolheads': 2, u'display_name': 'Replicator 2', u'name': {u'iserial': '75334323935351B0B0C1', u'pid': 45079, u'port_type': 'UsbPort', u'vid': 9153}, u'platform_temperature': 0, u'has_heated_platform': True, u'profile_name': u'Replicator2X', u'toolhead_target_temperature': [0], u'build_volume': [246, 152, 155], u'state': u'IDLE', u'driver_name': u's3g', u'printer_type': u'The Replicator 2X', u'firmw
@henrypoydar
henrypoydar / examples.sh
Created Dec 10, 2015
For payloads sent to webdook urls generated by the Slack Button or in response to Slash Commands, text with @usernames or #channelnames is not linked when displayed in Slack, even with link_names set to 1 in the payload.
View examples.sh
# Using an 'Incoming Webhook' url, the link_names directive works and #channel and @user are linked in payload text when displayed in Slack
curl -X POST --data-urlencode 'payload={"link_names": 1, "text": "This references the #general channel and the @hpoydar user using a webhook generated as an *Incoming Webhook* configuration", "attachments": [{"text": "Referencing the #general channel and the @hpoydar user in an attachment"}], "channel": "#demo", "username": "webhook-bot", "icon_emoji": ":large_blue_circle:"}' https://hooks.slack.com/services/INCOMING_WEBHOOK_URL
# Using a webhook url generated from the creation of a Slack Button, the link_names directive does not work and #channel and @user are not linked in payload text when displayed in Slack. Same goes for payloads returned in response to slash commands
curl -X POST --data-urlencode 'payload={"link_names": 1, "text": "This references the #general channel and the @hpoydar user using a webhook generated as from a *Slack Button* configuration", "attach
@henrypoydar
henrypoydar / feature_macros.rb
Created Apr 28, 2015
spec/rails_helper.rb, spec/support/network.rb, spec/support/macros/feature_macros.rb
View feature_macros.rb
module FeatureMacros
def fill_in_stripe_checkout_form(kind = 'Visa')
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
within_frame stripe_iframe do
case kind
when 'MasterCard'
3.times {page.driver.browser.find_element(:id, 'card_number').send_keys('5555')}
1.times {page.driver.browser.find_element(:id, 'card_number').send_keys('4444')}
when 'Visa_declined'
You can’t perform that action at this time.