I hereby claim:
- I am shakataganai on github.
- I am shakataganai (https://keybase.io/shakataganai) on keybase.
- I have a public key ASBD1taS5cFXVX0sc9IOHeYf5LGNCaJPV4U4JoLpBUjz7wo
To claim this, I am signing this object:
function ddbLogSMS($act,$data){ | |
date_default_timezone_set("UTC"); | |
$now = time(); | |
$upd = array(); | |
$upd['ACTION'] = array("Action" => \Aws\DynamoDb\Enum\AttributeAction::PUT, | |
"Value" => array( | |
Type::STRING => $act | |
) | |
); |
/* | |
* Handy Reference: http://www.sublimetext.com/docs/file-type-preferences | |
*/ | |
{ | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_guide_options": | |
[ |
[ | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["super+shift+r"], "command": "reindent" } | |
] |
var express = require("express"); | |
var app = express(); | |
// http://localhost:9001/users/1 | |
app.get('/users/:id', function(req, res, next){ | |
var id = req.params.id; | |
if (checkPermission(id)) { | |
res.send("private"); | |
} else { |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: dd-agent | |
spec: | |
template: | |
metadata: | |
labels: | |
app: dd-agent | |
name: dd-agent |
var AWS = require('aws-sdk'); | |
exports.handler = (event, context, callback) => { | |
var iotdata = new AWS.IotData({endpoint: 'ASDFASDF.iot.us-west-2.amazonaws.com'}); | |
var params = { | |
topic: 'esp8266_RANDOMID/hellofromamzn', | |
payload: 'This is from Lambda', | |
qos: 0 | |
}; |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
var hr = { | |
'Strict-Transport-Security': 'max-age=600;', | |
'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', | |
'Pragma': 'no-cache', | |
'X-LambdaAtEdge': 'true' |
I hereby claim:
To claim this, I am signing this object:
from PIL import Image | |
import re | |
from os import listdir | |
from os.path import isfile, join | |
def clean(f): | |
image_file = open(f) | |
image = Image.open(image_file) | |
data = list(image.getdata()) |
#!/bin/bash | |
DIR="$( cd "$( dirname "$0" )" && pwd )" | |
mackup backup -f | |
cd $DIR | |
git add --all | |
git commit -m "automated backup `date`" | |
git push |