Skip to content

Instantly share code, notes, and snippets.

@7474
7474 / pusherlink.ts
Created March 1, 2023 17:52
Apollo for Pusher
@7474
7474 / gist:aafd6b15c9d4b440a62719d50cd3ad4b
Created January 21, 2020 00:03
Error Greengrass GPIOConnector after deploy greengrass group
==> /greengrass/ggc/var/log/user/ap-northeast-1/aws/GPIOConnector.log <==
# Greengrass Group デプロイでコネクタ停止
[2020-01-20T13:39:52.205Z][INFO]-lambda_runtime.py:364,Caught signal 15. Stopping runtime.
# デプロイ完了で再起動
[2020-01-20T13:40:46.958Z][INFO]-lambda_runtime.py:147,Running [arn:aws:lambda:ap-northeast-1:aws:function:GPIOConnector:1]
[2020-01-20T13:40:46.96Z][INFO]-ipc_client.py:192,Getting work for function [arn:aws:lambda:ap-northeast-1:aws:function:GPIOConnector:1] from http://localhost:8000/2016-11-01/functions/arn:aws:lambda:ap-northeast-1:aws:function:GPIOConnector:1/work
@7474
7474 / bootstrap.php
Last active December 10, 2018 14:26
FuelPHP1.8へのPHP7.2パッチ
// 先の security.php を classes に配置したうえでBootstrapで上書き指定する
Autoloader::add_classes(array(
// Add classes you want to override here
// Example: 'View' => APPPATH.'classes/view.php',
'Security' => APPPATH.'classes/security.php',
)
);
@7474
7474 / embedded-property-snipet.yml
Created April 19, 2018 06:08
Bitbucket PipelinesからのSSH接続を許可するSecurity Group入力設定
# AWS::EC2::SecurityGroup タイプの埋め込みプロパティでCloudFormationに設定するためのスニペット。
# Ref: https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html
# Ref: https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '22'
ToPort: '22'
CidrIp: 34.236.25.177/32
Description: Bitbucket Pipelines build environments
- IpProtocol: tcp