Skip to content

Instantly share code, notes, and snippets.

View dionyziz's full-sized avatar
🐼

Dionysis Zindros dionyziz

🐼
View GitHub Profile
(venv)[0] dionyziz@ubuntu ~/workspace/ting (master*) % curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 7728 100 7728 0 0 16676 0 --:--:-- --:--:-- --:--:-- 16691
=> nvm is already installed in /home/dionyziz/.nvm, trying to update using git
=>
=> Source string already in /home/dionyziz/.zshrc
npm ERR! max depth reached: bower@1.4.1, required by undefined@undefined
npm ERR! max depth reached: socket.io@1.3.6, required by undefined@undefined
var browserify = require('browserify');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var reactify = require('reactify');
gulp.task('browserify', function() {
var b = browserify({
debug: true
});
b.transform(reactify);
[0] dionyziz@ubuntu ~/workspace/ting/client (client_tests*) % cat /etc/nginx/sites-enabled/ting.gr
server {
listen 80;
server_name local.ting.gr;
root /var/www/ting.gr/html;
index index.html index.htm index.php;
location /api/ {
proxy_pass http://localhost:8000/;
(venv)[0] dionyziz@ubuntu ~/workspace/ting/API (python_requirements*) % python manage.py test
Creating test database for alias 'default'...
.....F...F.........
======================================================================
FAIL: test_request_messages (chat.tests.MessageViewGETTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dionyziz/workspace/ting/API/chat/tests.py", line 204, in test_request_messages
self.assertEqual(messages[0]['datetime'], datetime_to_timestamp(message2.datetime))
AssertionError: 100000003000.0 != 100000003600.0
static OSStatus
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams,
uint8_t *signature, UInt16 signatureLen)
{
OSStatus err;
...
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
goto fail;
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
[0] dionyziz@gunther /var/www/endofcodes.com/html/database/migration (master) % for i in `ls -l|tail -n+11|grep -v 'migrate.php'|awk '{print $NF}'`; do DB_USER='endofcodes_admin' DB_PASSWORD='secret' ENVIRONMENT=development php $i; done
Migration successful.
Migration successful.
Migration successful.
Migration successful.
Migration successful.
Migration successful.
Migration successful.
Migration successful.
Migration successful.
dionyziz@erdos ~/endofcodes (travis*) % ./run testrun create name=models/user
1 unit test
================
## Unit test: UserTest, with 15 test methods ##
testCreate:
PASS - 3 assertions
testAuthenticatesWithPassword:
PASS - 1 assertion
<?php
public function testAddFieldNoFieldName() {
$this->createTable();
$emptySuccess = false;
try {
Migration::addField( 'testTable' );
}
catch ( MigrationException $e ) {
$emptySuccess = true;
}
function head( l ) {
return l[ 0 ];
}
function tail( l ) {
return l.slice( 1 );
}
function cons( head, tail ) {
var l = tail.slice( 0 );
import Data.Maybe
data Lexeme = Operator Char | Operand Int deriving (Show)
tokenize :: String -> [Lexeme]
tokenize e = map process $ words e
where process x = case x of
"+" -> Operator '+'
"-" -> Operator '-'
"/" -> Operator '/'