For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
class RepeatTableHeadersHandler extends Paged.Handler { | |
constructor(chunker, polisher, caller) { | |
super(chunker, polisher, caller) | |
this.splitTablesRefs = [] | |
} | |
afterPageLayout(pageElement, page, breakToken, chunker) { | |
this.chunker = chunker | |
this.splitTablesRefs = [] |
FROM debian:8.1 | |
MAINTAINER Craig Minihan <craig@ripcordsoftware.com> | |
RUN apt-get update && apt-get install -y apt-utils wget | |
#RUN apt-get install -y libboost1.55 | |
RUN apt-get install -y libboost-system1.55.0 libboost-filesystem1.55.0 libboost-thread1.55.0 libboost-date-time1.55.0 libboost-regex1.55.0 libboost-program-options1.55.0 libboost-chrono1.55.0 | |
RUN adduser --disabled-password --gecos "" avancedb && cd ~avancedb && mkdir Downloads && cd Downloads && wget ftp://ftp.ripcordsoftware.com/pub/avancedb/avancedb-0.1.0-alpha-debian-8.x.tar.gz | |
RUN cd ~avancedb && mkdir bin && cd bin && tar xvfz ../Downloads/avancedb-0.1.0-alpha-debian-8.x.tar.gz | |
EXPOSE 5994 | |
CMD su -c "cd ~/bin && ./avancedb" avancedb |
document.addEventListener( 'DOMContentLoaded', function() { | |
var parentNode = document.querySelector('#paypalButon'); | |
PAYPAL.apps.ButtonFactory.create( 'YOUR PAYPAL ID', { | |
button: { value: 'buynow' }, | |
name: { value: 'Some Product' }, | |
quantity: { value: '1' }, | |
amount: { value: '5.99' }, | |
currency: { value: 'AUD' }, |
// | |
// AppDelegate.swift | |
// pushtest | |
// | |
// Created by sawapi on 2014/06/08. | |
// Copyright (c) 2014年 sawapi. All rights reserved. | |
// | |
// iOS8用 | |
import UIKit |
module.exports = function(grunt) { | |
// easy way to load grunt tasks in package.json | |
// require('load-grunt-tasks')(grunt); | |
// or the normal way | |
grunt.task.loadNpmTasks('grunt-concurrent'); | |
grunt.task.loadNpmTasks('grunt-contrib-connect'); | |
grunt.task.loadNpmTasks('grunt-contrib-watch'); | |
// configure local dev server | |
grunt.config('connect.dev', { |
var svg = document.querySelector( "svg" ); | |
var svgData = new XMLSerializer().serializeToString( svg ); | |
var canvas = document.createElement( "canvas" ); | |
var ctx = canvas.getContext( "2d" ); | |
var img = document.createElement( "img" ); | |
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) ); | |
img.onload = function() { |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
<!DOCTYPE html> | |
<! -- | |
A very basic example in Javascript of how to attach a file to a CouchDB document. This will work wether or not the Document ID you define exists. | |
Log in at /_utils, upload this file to a document, and then view it for your own uploader. See the code for comments. ajaxSubmit() is the magic that attaches | |
as long as the Couch Doc exists because you can't submit a new Couch Document with an attachment. | |
by @rjsteinert http://rjsteinert.com | |
--> | |
<html xmlns="http://www.w3.org/1999/xhtml"> |
var http = require('http'), | |
request = require('request'), // request module from https://github.com/mikeal/request | |
url = require('url'); | |
http.createServer(function (req, res) { | |
var href = url.parse(req.url,true).href; | |
request('http://127.0.0.1:5984' + href).pipe(res); | |
}).listen(1337); | |
// now try something like http://127.0.0.1:1337/your_db_name/_all_docs/?limit=10 |