Skip to content

Instantly share code, notes, and snippets.

(function () {
'use strict';
angular.module('thx4showApp')
.controller('alerts.flashCtrl', ['$flash', function ($flash) {
var vm = this;
vm.service = $flash;
}]);
})();
@mgosk
mgosk / start
Created November 24, 2015 21:59
#! /bin/bash
### BEGIN INIT INFO
# Provides: ${{app_name}}
# Required-Start: ${{start_facilities}}
# Required-Stop: ${{stop_facilities}}
# Default-Start: ${{start_runlevels}}
# Default-Stop: ${{stop_runlevels}}
# Short-Description: ${{descr}}
### END INIT INFO
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashSet;
import java.util.Set;
// billion-laughs-style DoS for java serialization
public class SerialDOS {
@mgosk
mgosk / gist:e5fa9b39e3c3fb7e62237eb9eef35f65
Last active May 31, 2016 17:55
M233: Getting Started with Spark and MongoDB answers
Run a count of the number of documents in the nasa.eva namespace by running: $ mongo > use nasa > db.eva.count() What is the result?
375
Spark guarantees that your processing tasks completes in subseconds
false
Spark is a great system for performing updates on individual records efficiently
false
Spark is a great system for real-time OLTP workloads
@mgosk
mgosk / eth
Created September 4, 2016 11:30
0x691c89985d6ee21c6407771904c6667fBF6c3022
@mgosk
mgosk / a
Last active July 7, 2017 17:46
We couldn’t find that file to show.
2018-08-08 10:01:14,196+0000 WARN [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4JInitialiser - Your logging framework class org.ops4j.pax.logging.slf4j.Slf4jLogger is not known - if it needs access to the standard println methods on the console you will need to register it by calling registerLoggingSystemPackage
2018-08-08 10:01:14,206+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Package org.ops4j.pax.logging.slf4j registered; all classes within it or subpackages of it will be allowed to print to System.out and System.err
2018-08-08 10:01:14,222+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Replaced standard System.out and System.err PrintStreams with SLF4JPrintStreams
2018-08-08 10:01:14,231+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Redirected System.out and System.err to SLF4J for this context
2018-08-08 10:01:14,273+0000 INFO [FelixStartLevel] *S