For signed cookies, refer here
from cloudfront_signed_url import generate_cloudfront_signed_url
generate_cloudfront_signed_url("https://your-cf-domain.com/path/to/file.txt", 3600)
sssh is currently being maintained at pj8/sssh | |
https://github.com/pj8/sssh |
For signed cookies, refer here
from cloudfront_signed_url import generate_cloudfront_signed_url
generate_cloudfront_signed_url("https://your-cf-domain.com/path/to/file.txt", 3600)
#!/usr/bin/python | |
# $Id: $ | |
# Converts Oracle, SQL-Server, and other DDL to Snowflake DDL | |
def usage(): | |
print """\ | |
# Usage: sql2sf.py input-file [output-file] | |
""" |
For signed URLs, refer here
from cloudfront_signed_url import generate_cloudfront_signed_url
url = "https://your-cf-domain.com/path/to/file.txt"
cookie = generate_cloudfront_signed_cookie(url, 3600)
<?php | |
/** | |
* Assumes https://github.com/Spomky-Labs/jose library is installed and autoloading is set up | |
* Decode and verify token guide: https://github.com/Spomky-Labs/jose/blob/master/doc/operation/Verify.md | |
*/ | |
use Jose\Factory\JWKFactory; | |
use Jose\Loader; | |
// We load the key set from a URL | |
// JSON Key URL (JKU) - https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/jwks.json. |
function doClick(e) { | |
alert($.label.text); | |
} | |
$.index.open(); | |
var alertFields = { | |
title: 'Notification', //Android Only | |
body : 'Just another notification', | |
badge: 1, |
package example; | |
import org.apache.commons.beanutils.expression.DefaultResolver; | |
public class SafeResolver extends DefaultResolver { | |
@Override | |
public String next(String expression) { | |
String property = super.next(expression); | |
if ("class".equalsIgnoreCase(property)) { |
/** | |
* A Resolver that doesn't call getClass(). | |
* | |
* @author kawasima | |
*/ | |
public class SafeResolver extends DefaultResolver { | |
private static final char NESTED = '.'; | |
private static final char MAPPED_START = '('; | |
private static final char MAPPED_END = ')'; | |
private static final char INDEXED_START = '['; |
/*When we load any website site in webView it generate some cache file also in the app cacheDirectory we | |
can delete this easily, here is the sample code*/ | |
var win = Ti.UI.createWindow({ | |
layout : 'vertical', | |
exitOnClose : true | |
}); | |
var delBtn = Ti.UI.createButton({ | |
top : 10, |
package com.yokogoshi.line_intent_test; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.util.List; |