Skip to content

Instantly share code, notes, and snippets.

View pixfy's full-sized avatar
:octocat:
Working from home

pixfy

:octocat:
Working from home
View GitHub Profile
@kidroca
kidroca / Chart.jsx
Last active June 6, 2024 00:01
Render recharts svg chart inside a PDF document created with react-pdf/renderer
import React from 'react';
import { Global } from 'recharts';
import { htmlSvgToPdfSvg } from '../imageFromSvg';
export const ChartSvg = ({ debug, style, children, width, height }) => {
return chartToPdfSvg(children, width, height, debug, style);
};
const chartToPdfSvg = (children, width, height, debug, style) => {
############################################################################################################
################## #############################
################## #############################
This Gist collection contains all localstack related examples
################## #############################
################## #############################
############################################################################################################
@choyno
choyno / nginxsetup.txt
Last active March 23, 2024 15:21
RESTART NGINX AMAZON LINUX AMI
Try to run the following two commands:
sudo fuser -k 80/tcp
sudo fuser -k 443/tcp
NGINX BASIC COMMAND
sudo service nginx restart
sudo service nginx start
sudo service nginx stop
@snggeng
snggeng / test.md
Last active July 15, 2022 12:25
Setting up Automated Testing & CI
@amazingandyyy
amazingandyyy / SES.sample.js
Last active May 25, 2021 13:04
AWS SES(simple email service) API (NodeJS snippet)
// To send email with AWS Simple Email Service(SES) API in Node.js.
/*----------------------Sample codes----------------------*/
// .env
// AWS_KEY='AKAMTCsample2FUUQ'
// AWS_SECRET='4RsVEfTBJudFA9/pyFnjPvFsampleCbfq69bRV'
// AWS_IAM_NAME='IAM_NAME'
// AWS_SES_SENDER='email@aws.com'