Skip to content

Instantly share code, notes, and snippets.

View krvajal's full-sized avatar
:electron:
What's happening?

Miguel Carvajal krvajal

:electron:
What's happening?
  • @wearesinch
  • Antwerpen, Belgium
View GitHub Profile
@krvajal
krvajal / Gemfile
Created June 26, 2020 22:20 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
{"errors":[{"code":0,"status":404,"title":"","meta":{"type":"Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException","trace":[{"file":"\/var\/www\/noproject\/releases\/20200526091256\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":612,"function":"match","class":"Illuminate\\Routing\\RouteCollection","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/noproject\/releases\/20200526091256\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":601,"function":"findRoute","class":"Illuminate\\Routing\\Router","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/noproject\/releases\/20200526091256\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":590,"function":"dispatchToRoute","class":"Illuminate\\Routing\\Router","type":"-\u003E","args":[{"attributes":{},"request":{
2020-05-25T10:00:09.641Z eaa7d278-4132-469e-a458-4eafeefb8f20 ERROR {"message":"error executing the function","errorName":"Error","errorMessage":"404: {\"errors\":[{\"code\":0,\"status\":404,\"title\":\"\",\"meta\":{\"type\":\"Sweepbright\\\\Exceptions\\\\NotFoundHttpException\",\"trace\":[{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":98,\"function\":\"render\",\"class\":\"Sweepbright\\\\Exceptions\\\\Renderers\\\\ModelNotFoundRenderer\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":66,\"function\":\"handleException\",\"class\":\"Sweepbright\\\\Exceptions\\\\Handler\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/vendor/laravel/framework/src
2020-05-25T10:00:09.641Z eaa7d278-4132-469e-a458-4eafeefb8f20 ERROR {"message":"error executing the function","errorName":"Error","errorMessage":"404: {\"errors\":[{\"code\":0,\"status\":404,\"title\":\"\",\"meta\":{\"type\":\"Sweepbright\\\\Exceptions\\\\NotFoundHttpException\",\"trace\":[{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":98,\"function\":\"render\",\"class\":\"Sweepbright\\\\Exceptions\\\\Renderers\\\\ModelNotFoundRenderer\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":66,\"function\":\"handleException\",\"class\":\"Sweepbright\\\\Exceptions\\\\Handler\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/vendor/laravel/framework/src
2020-05-25T10:00:09.641Z eaa7d278-4132-469e-a458-4eafeefb8f20 ERROR {"message":"error executing the function","errorName":"Error","errorMessage":"404: {\"errors\":[{\"code\":0,\"status\":404,\"title\":\"\",\"meta\":{\"type\":\"Sweepbright\\\\Exceptions\\\\NotFoundHttpException\",\"trace\":[{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":98,\"function\":\"render\",\"class\":\"Sweepbright\\\\Exceptions\\\\Renderers\\\\ModelNotFoundRenderer\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":66,\"function\":\"handleException\",\"class\":\"Sweepbright\\\\Exceptions\\\\Handler\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/vendor/laravel/framework/src
#include <cstdio>
class Command
{
public:
virtual void execute() = 0;
virtual ~Command();
protected:
@krvajal
krvajal / imagemagick.bash
Created August 5, 2019 19:32 — forked from bensie/imagemagick.bash
ImageMagick Static Binaries for AWS Lambda
#!/usr/bin/env bash
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at:
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
#
# As of May 21, 2019, this is:
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30)
#
# You need to prepend PATH with the folder containing these binaries in your Lambda function
# to ensure these newer binaries are used.

Everything I Know About UI Routing

Ingredients

  1. Location
    1. pathname
    2. state
    3. search/query
    4. hash
  2. Path
animated.DialogOverlay = animated(DialogOverlay)
animated.DialogContent = animated(DialogContent)
function NewPostDialog({ date, show, onDismiss }) {
const rootRef = useRef(null)
const transitions = useTransition(show, null, {
from: { opacity: 0, y: -10, blur: 0 },
enter: { opacity: 1, y: 0, blur: 8 },
leave: { opacity: 0, y: -10, blur: 0 },
@krvajal
krvajal / IAMCredentials.json
Last active March 11, 2019 19:07 — forked from ServerlessBot/IAMCredentials.json
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",