View openssl_checker.sh
#!/bin/bash | |
#modified from Alain Kelder's script | |
usage() | |
{ | |
cat <<EOF | |
Usage: $(basename $0) [options] | |
This shell script is a simple wrapper around the openssl binary. It uses | |
s_client to get certificate information from remote hosts, or x509 for local | |
certificate files. It can parse out some of the openssl output or just dump all |
View cordova-sqlite.js
// install : cordova plugin add https://github.com/litehelpers/Cordova-sqlite-storage.git | |
// link : https://github.com/litehelpers/Cordova-sqlite-storage | |
angular.module('ngCordova.plugins.sqlite', []) | |
.factory('$cordovaSQLite', ['$q', '$window', function ($q, $window) { | |
return { | |
openDB: function (options, background) { |
View wkhtmltopdf.tablesplit.js
/** | |
* WkHtmlToPdf table splitting hack. | |
* | |
* Script to automatically split multiple-pages-spanning HTML tables for PDF | |
* generation using webkit. | |
* | |
* To use, you must adjust pdfPage object's contents to reflect your PDF's | |
* page format. | |
* The tables you want to be automatically splitted when the page ends must | |
* have a class name of "splitForPrint" (can be changed). |
View laravel.js
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
Slightly modified and updated for laravel 4.2 and 5 | |
*/ |