Skip to content

Instantly share code, notes, and snippets.

View derveloper's full-sized avatar
:shipit:

Tristan Leo derveloper

:shipit:
View GitHub Profile
@derveloper
derveloper / gist:6496632
Created September 9, 2013 14:48
pad error
/sites/pad/etherpad-lite/src/node_modules/log4js/lib/date_format.js:26
.replace(/y{1,4}/g, vYear)
^
RangeError: Maximum call stack size exceeded
exports.eejsBlock_embedPopup = function(hook_name, args, cb) {
var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad;
var padID = args.renderContext.req.url.split('/')[2];
var pad = new Pad(padID);
var isPublic = false;
pad.init(null, function() {
isPublic = pad.getPublicStatus();
console.log('requested pad is '+isPublic);
if(isPublic) {
args.content = args.content + eejs.require('ep_make_public/templates/embedPopup_public.html', {}, module);
ssl on;
ssl_certificate ssl_chain.crt;
ssl_certificate_key ssl.key;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_session_cache builtin:1000 shared:SSL:10m;
[vileda:~] % sslscan fnordeingang.de G RC4
Failed SSLv2 128 bits RC4-MD5
Failed SSLv2 40 bits EXP-RC4-MD5
Rejected SSLv3 128 bits ECDHE-RSA-RC4-SHA
Rejected SSLv3 128 bits ECDHE-ECDSA-RC4-SHA
Rejected SSLv3 128 bits AECDH-RC4-SHA
Rejected SSLv3 128 bits ADH-RC4-MD5
Rejected SSLv3 128 bits ECDH-RSA-RC4-SHA
Rejected SSLv3 128 bits ECDH-ECDSA-RC4-SHA
Rejected SSLv3 128 bits RC4-SHA
init: function init () {
if(!$$(".firstemployee a")[0]) return;
$$('.employeeDecider li a').addEvent('click', this.employeeDeciderClicked.bindWithEvent(this));
this.enableEmployeeDecider($$(".firstemployee a")[0]);
}
nc -l -u localhost 7355 | sox -t raw -esigned-integer -b 16 -r 48000 - -esigned-integer -b 16 -r 22050 -t raw - | multimon-ng -t raw -a POCSAG512 -a POCSAG1200 -a POCSAG2400 -f alpha -
@derveloper
derveloper / console.txt
Created July 6, 2016 19:06
kiste bier ist mir
fooDispatch function dispatch(action) {
return _dispatch(action);
}
store.js?5dc3:13fooNext function (action) {
console.log("barDispatch", dispatch.toString());
console.log("barNext", next.toString());
next(action);
}
store.js?5dc3:17barDispatch function dispatch(action) {
return _dispatch(action);
@derveloper
derveloper / train.coffee
Last active August 28, 2016 22:10
Hubot script for training hubot with facebook's fastText neural network - https://github.com/facebookresearch/fastText
fs = require 'fs'
execSync = require('child_process').execSync
tmp = require('tmp')
execSync('wget -c https://github.com/facebookresearch/fastText/archive/master.tar.gz')
execSync('tar xvfz master.tar.gz && cd fastText-master && make && cp fasttext ../')
module.exports = (robot) ->
robot.respond /train \"(.+)\" (.+)/i, (res) ->
import com.sun.crypto.provider.DHKeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class DHKeyTest
{
public static void main(String[] args) throws NoSuchAlgorithmException
{
KNN Classifiaction of fnordeingang opening times
=================================================
WEDNESDAY 2016-11-23T16:51
THURSDAY 2016-11-24T17:11
SATURDAY 2016-11-26T01:57:30
SUNDAY 2016-11-27T16:47:30
MONDAY 2016-11-28T18:40
TUESDAY 2016-11-29T17:56
WEDNESDAY 2016-11-30T16:51