Skip to content

Instantly share code, notes, and snippets.

View shierro's full-sized avatar
🏠
Working from home

Theo shierro

🏠
Working from home
View GitHub Profile
[
{
"id": 1,
"title": "React.js Powertools!",
"status": "published",
"views": 200000,
"content": "#lorem ispum #react.js",
"publishedAt": "2021-01-11T14:16:51.850Z",
"createdAt": "2021-01-10T14:16:51.850Z",
"updatedAt": "2021-01-11T14:16:51.850Z"
[
{
"id": 1,
"activePlacements": {
"total": 0,
"data": []
},
"address": {
"address1": "",
"address2": "",
service: cb-backend-boilerplate-lambda
parameters:
region: ap-southeast-2
path: &path /
provider:
name: aws
runtime: nodejs12.x
stage: ${env:STAGE, 'staging'}
{
"$jason": {
"title": "Territory Manager",
"theme": "#474747",
"body": {
"background": {
"type": "html",
"url": "https://app.territorymanager.tools",
"action": {
"type": "$default"
@shierro
shierro / test.json
Last active November 9, 2023 16:06
{
"$jason": {
"title": "Territory Manager",
"theme": "#474747",
"body": {
"action": {
"trigger": "$default"
},
"sections": [{
"items": [{
@shierro
shierro / copy-all-files-with-exclude-list.sh
Created February 3, 2019 13:46
Bash - copy all files except a folder, anywhere/to a specific folder
cp -r `ls -A | grep -v "IGNORE_DIR"` DEST_DIR
@shierro
shierro / reducers.js
Created October 27, 2018 03:46
combined reducers
/**
* Combine all reducers in this file and export the combined reducers.
*/
import { combineReducers } from 'redux-immutable';
import { fromJS } from 'immutable';
import { LOCATION_CHANGE } from 'react-router-redux';
import languageProviderReducer from 'containers/LanguageProvider/reducer';
import mapPageReducer from 'containers/MapPage/reducer';
@shierro
shierro / configureStore.js
Created October 27, 2018 03:43
store configuration of a react app
import { createStore, applyMiddleware, compose } from 'redux';
import { routerMiddleware } from 'react-router-redux';
import createSagaMiddleware from 'redux-saga';
import { createLogger } from 'redux-logger';
import { createOffline } from '@redux-offline/redux-offline';
import offlineConfig from '@redux-offline/redux-offline/lib/defaults';
import {
persist,
persistAutoRehydrate,
offlineStateLens,
@shierro
shierro / payload.json
Created September 10, 2018 13:26
payload.json
{
"fileDto": {
"checksum": "2a8e79a48743cc55ae457d015c1f9474",
"content": "data:application/pdf;base64,JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovQ3JlYXRvciAoQXBhY2hlIEZPUCBWZXJzaW9uIDIuMykKL1Byb2R1Y2VyIChBcGFjaGUgRk9QIFZlcnNpb24gMi4zKQovQ3JlYXRpb25EYXRlIChEOjIwMTgwOTA0MTEyMjM5KzAyJzAwJykKPj4KZW5kb2JqCjIgMCBvYmoKPDwKICAvTiAzCiAgL0xlbmd0aCAzIDAgUgogIC9GaWx0ZXIgL0ZsYXRlRGVjb2RlCj4+CnN0cmVhbQp4nO2ZZ1BUWRaA73udEw3dTZOhyUmihAYk5yQ5igp0N5kWmgwqigyOwAgiIkkRRBRwwNEhyCgqohgQBQVU1GlkEFDGwVFERWVp/DG7NT+2tmpr/2yfH+99de6pd859daveV/UAkCEmsBJTYH0AErmpPF9nO0ZwSCgD8wBgAQkQAQWgI1gpSZ5+Tv5gNQS14G/xfgxAgvt9HcF67jlSTNEHHcNjMy6P3040b/57/b8EkZ3IZQMA0VY5js1JYa3yrlWOYSeyBflZAWekJqUCAHuvMo23OuAqswUc+Y0zBRz9jYvXavx97Vf5GABYYvQa408LOHKNKd0CZsXwEgGQ7l+tV2El8VafLy3opfhthrUQFeyHEc3hcngRqRw2499s5T+Pf+qFSll9+f/1Bv/jPoKz843eWq6dCYhe+VduWzkAzNcAIEr/yqkcAYC8B4DO3r9ykScA6CoFQPIZK42X/i2HXJsd4AEZ0IAUkAfKQAPoAENgCiyADXAEbsAL+IMQsAWwQAxIBDyQAbaD3aAAFIFScAhUgzrQCJpBGzgLusAFcAVcB7fBPTAKJgAfTINXYAG8B8sQBGEgEkSFpCAFSBXShgwhJmQFOUIekC8UAoVD0RAXSoO2Q3u
@shierro
shierro / error.log
Created September 10, 2018 13:14
error.log
`
2018-09-10 21:09:25.951 WARN 61240 --- [nio-9595-exec-4] .w.s.m.a.ResponseStatusExceptionResolver : Resolved exception caused by Handler execution: com.eat.ebincloudweb.controller.exception.custom.AppException: Unable to post data on resource:invoices
2018-09-10 21:12:15.805 ERROR 61240 --- [nio-9595-exec-5] c.e.e.s.impl.GenericEbinServiceImpl : Exception while posting on resource:invoices
org.springframework.web.client.HttpServerErrorException: 500 null
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:97) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:79) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:766) ~[spring-w