Skip to content

Instantly share code, notes, and snippets.


Victor vpakg

View GitHub Profile
vpakg /
Created Jan 22, 2016
Shell script to check SSL certificate info like expiration date and subject
#modified from Alain Kelder's script
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
vpakg / cordova-sqlite.js
Created Nov 18, 2015
cordova sqlite extention
View cordova-sqlite.js
// install : cordova plugin add
// link :
angular.module('ngCordova.plugins.sqlite', [])
.factory('$cordovaSQLite', ['$q', '$window', function ($q, $window) {
return {
openDB: function (options, background) {
vpakg / wkhtmltopdf.tablesplit.js
Last active Aug 27, 2015 — forked from niflostancu/wkhtmltopdf.tablesplit.js
WkHtmlToPdf Table Splitting Hack
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).
vpakg / laravel.js
Last active Jan 12, 2016 — forked from JeffreyWay/laravel.js
Laravel (4.2 and 5) JavaScript to implement "Delete" without using a form in the view.
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
You can’t perform that action at this time.