This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
PJD_DOCUMENT__CHANGE_REQUEST.Job, | |
PJD_DOCUMENT__CHANGE_REQUEST.Contract_Item, | |
PJD_DOCUMENT__CHANGE_REQUEST.Internal, | |
PJD_DOCUMENT__CHANGE_REQUEST.Number, | |
PJD_DOCUMENT__CHANGE_REQUEST.Cr_Misc_Date, | |
PJD_DOCUMENT__CHANGE_REQUEST.Cr_Misc_List, | |
PJD_DOCUMENT__CHANGE_REQUEST.Status, | |
PJD_DOCUMENT__CHANGE_REQUEST.Schedule_Impact, | |
PJD_DOCUMENT__CHANGE_REQUEST.Date, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#wsgi file: | |
import os | |
import sys | |
project_home = u'/home/<user-name>/web2py' | |
if project_home not in sys.path: | |
sys.path = [project_home] + sys.path | |
sys.stdout = sys.stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
session = boto3.Session( | |
aws_access_key_id="id", | |
aws_secret_access_key="secret", | |
region_name="us-east-1" | |
) | |
s3 = session.resource("s3") | |
obj = s3.Object("mybucket", "test.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AddPerm", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::pobook/*" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
U G O | |
rwx rwx rwx | |
111 111 111 | |
U = User | |
G = Group | |
O = Owner | |
7 = 111 | |
6 = 110 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File Upload: | |
- https://astaxie.gitbooks.io/build-web-application-with-golang/content/en/04.5.html | |
- https://stackoverflow.com/questions/40684307/how-can-i-receive-an-uploaded-file-using-a-golang-net-http-server | |
Secure Golang REST API: | |
- https://medium.com/@adigunhammedolalekan/build-and-deploy-a-secure-rest-api-with-go-postgresql-jwt-and-gorm-6fadf3da505b | |
- https://auth0.com/blog/authentication-in-golang/ | |
Integrating Negroni Middleware With Go-Chi: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package swaggerui | |
import ( | |
"net/http" | |
) | |
//go:generate go-bindata-assetfs -pkg=swaggerui -prefix=static/swagger-ui static/swagger-ui/dist/... | |
/* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host all postgres 127.0.0.1/8 md5 | |
host all postgres ::1/128 md5 | |
local all postgres peer | |
############################################################################ | |
host all all 192.168.0.0/24 md5 |
OlderNewer