Skip to content

Instantly share code, notes, and snippets.

View shadone's full-sized avatar

Denis Dzyubenko shadone

  • Oslo, Norway
View GitHub Profile

Keybase proof

I hereby claim:

  • I am shadone on github.
  • I am ddenis (https://keybase.io/ddenis) on keybase.
  • I have a public key whose fingerprint is E627 64B5 D944 D670 2FF9 AF9F 0468 C26E 4482 D7D9

To claim this, I am signing this object:

root@rescue ~ # smartctl -a /dev/sdb
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-4.1.15] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST3000DM001-9YN166
Serial Number: S1F082BP
LU WWN Device Id: 5 000c50 04a3d64f6
Firmware Version: CC4C
FROM ubuntu:14.04
MAINTAINER Denis Dzyubenko <denis@ddenis.info>
ENV QUASSEL_POSTGRESQL_USERNAME quassel
ENV QUASSEL_POSTGRESQL_PASSWORD password
ENV QUASSEL_POSTGRESQL_HOSTNAME postgres
ENV QUASSEL_POSTGRESQL_PORT 5432
ENV QUASSEL_POSTGRESQL_DATABASE quassel
RUN groupadd -r quassel && useradd -r -g quassel quassel
@shadone
shadone / speedtest_tester.sh
Created February 6, 2016 23:03
Send speedtest.net results to influxdb
#!/bin/bash
INFLUXDB_HOST="localhost"
INFLUXDB_PORT="8086"
DATABASE="home"
[ -f /etc/default/speedtest_tester ] && . /etc/default/speedtest_tester
while [[ $# > 0 ]]; do
key="$1"
function Base() {
}
Base.foo = 'foo';
function Derived() {
Base.call(this);
}
Derived.prototype = Object.create(Base.prototype);
// Derived.prototype.constructor = Derived; // {1}
Derived.bar = 'bar';
2015-01-04 20:37:33,577 (10cb8d000) : DEBUG (runtime:717) - Handling request GET /video/trakt
2015-01-04 20:37:33,580 (10cb8d000) : DEBUG (runtime:814) - Found route matching /video/trakt
2015-01-04 20:37:33,581 (10cb8d000) : DEBUG (base:125) - Checking if com.plexapp.plugins.trakttv is broken
2015-01-04 20:37:33,582 (10cb8d000) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_'
2015-01-04 20:37:33,604 (10cb8d000) : DEBUG (runtime:106) - Sending packed state data (108 bytes)
2015-01-04 20:37:33,604 (10cb8d000) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1116 bytes
2015-01-04 20:37:33,617 (10cb8d000) : DEBUG (runtime:717) - Handling request GET /video/trakt/sync/synchronize
2015-01-04 20:37:33,618 (10cb8d000) : DEBUG (runtime:814) - Found route matching /video/trakt/sync/sync
This file has been truncated, but you can view the full file.
Date/Time: 2014-12-16 00:48:33 +0100
OS Version: 10.10.1 (Build 14B25)
Architecture: x86_64
Report Version: 21
Command: KSP
Path: /Users/USER/Library/Application Support/Steam/*/KSP.app/Contents/MacOS/KSP
Version: Unity Player version 4.5.5f1 (4.5.5f1)
Parent: launchd [1]
PID: 52510
Process: KSP [52541]
Path: /Users/USER/Library/Application Support/Steam/*/KSP.app/Contents/MacOS/KSP
Identifier: unity.Squad.Kerbal Space Program
Version: Unity Player version 4.5.5f1 (4.5.5f1)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: KSP [52541]
User ID: 501
Date/Time: 2014-12-16 01:01:04.101 +0100
diff --git a/changelog.md b/changelog.md
index 7d7d046..4c37125 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,71 @@
-Notice: All 1.7.x changes are present in 2.0.x aswell
+# 2.0.0-rc2
+- [FEATURE] Added to posibility of using a sequelize object as key in `sequelize.where`. Also added the option of specifying a comparator
+- [FEATURE] Added countercache functionality to hasMany associations [#2375](https://github.com/sequelize/sequelize/pull/2375)
+- [FEATURE] Basic JSON support [#2314](https://github.com/sequelize/sequelize/pull/2314)
app.post('/admin/item', isLoggedIn, function(req, res) {
var form = new multiparty.Form({
autofiles: true, // without this it will give a write stream(?)
uploadDir: __dirname + '/../public/uploads',
maxFilesSize: '10m'
});
form.parse(req, function(err, fields, files) {
if (err) {
console.log(JSON.stringify(err));
res.status(500).end();