I hereby claim:
- I am martinzuern on github.
- I am martinzuern (https://keybase.io/martinzuern) on keybase.
- I have a public key ASC0c0x2BnMUy6HCcK-iXYw9szHeUa9iAV5GDQMlnEWdpwo
To claim this, I am signing this object:
import React, { Dispatch, SetStateAction } from 'react'; | |
import Log from './Log'; | |
const isPlainObject = (obj: any) => Object.prototype.toString.call(obj) === '[object Object]'; | |
const keyStr = (obj: any) => Object.keys(obj).sort().toString(); | |
export function useStateWithLocalStorage<S = undefined>( | |
localStorageKey: string, | |
initialState: S | (() => S) | |
): [S, Dispatch<SetStateAction<S>>] { |
{ | |
"page": 1, | |
"per_page": 3, | |
"total": 12, | |
"total_pages": 4, | |
"data": [{ | |
"id": 1, | |
"first_name": "george", | |
"last_name": "bluth", | |
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA unzip | |
cd /home/ec2-user | |
curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O | |
unzip CloudWatchMonitoringScripts-1.2.1.zip | |
rm -rf CloudWatchMonitoringScripts-1.2.1.zip | |
chown ec2-user:ec2-user aws-scripts-mon | |
echo "* * * * * ec2-user /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --swap-util --aggregated --auto-scaling --from-cron" >> /var/spool/cron/ec2-user | |
echo "0 * * * * ec2-user /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --disk-space-used --disk-space-avail --disk-space-util --disk-path=/ --aggregated --auto-scaling --from-cron" >> /var/spool/cron/ec2-user |
#!/bin/sh | |
set -e | |
HOST=localhost | |
DB=test-entd-products | |
COL=asimproducts | |
S3PATH="s3://mongodb-backups-test1-entd/$DB/$COL/" | |
S3BACKUP=$S3PATH`date +"%Y%m%d_%H%M%S"`.dump.gz | |
S3LATEST=$S3PATH"latest".dump.gz | |
/usr/bin/aws s3 mb $S3PATH |