Skip to content

Instantly share code, notes, and snippets.

View vacijj's full-sized avatar

Vaci vacijj

View GitHub Profile
@blin86
blin86 / promise-sample.js
Last active December 11, 2016 14:41
Constructing and using an AngularJS promise
angular.module('app', [])
.factory('FakeAmazonService', function($http, $q) {
return {
validateShippingAdddress: function(address) {
var deferred = $q.defer();
$http.post('/api/address/validate', address)
.then(function(resp) {
deferred.resolve({ success: true, data: resp});
}),
function(error) {
@dhrrgn
dhrrgn / gist:10125477
Last active February 26, 2021 18:42
Upgrade Ubuntu OpenSSL to patch Heartbleed
sudo apt-get update
sudo apt-get install -y libssl1.0.0 openssl
# Confirm Build Date is at least Aril 7th 2014
openssl version -a
# Restart all services listed by this command:
sudo lsof -n | grep ssl | grep DEL
@kj187
kj187 / gist:9857991
Last active June 28, 2021 11:21
Inspiring Conference 2014 in Kolbermoor