Skip to content

Instantly share code, notes, and snippets.

🍰
is a lie

Dmitry Chirkin josser

🍰
is a lie
Block or report user

Report or block josser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@josser
josser / .phoenix.js
Created Jul 27, 2018
Phoenix config
View .phoenix.js
'use strict';
var keys = [];
var controlAlt = [ 'ctrl', 'alt' ];
var margin = 0;
var increment = 0.1
function log() {
Phoenix.log(JSON.stringify(arguments[0], true, 2));
}
View db_sync.sh
#!/bin/bash
DB_TARGET_NAME='techcheck-dev';
DB_TARGET_USER='postgres';
DB_TARGET_PW='postgres';
DB_TARGET_HOST='';
DB_TARGET_PORT='5432';
DB_SOURCE_NAME='';
DB_SOURCE_USER='';
View .phoenix.js
'use strict';
var keys = [];
var controlAlt = [ 'ctrl', 'alt' ];
var margin = 0;
var increment = 0.1
function log() {
Phoenix.log(JSON.stringify(arguments[0], true, 2));
}
View index.js
import fs from 'fs'
import path from 'path'
import Sequelize from 'sequelize'
import config from '../config'
const sequelize = new Sequelize(
config.db.database, config.db.username, config.db.password, config.db.options
)
const db = {}
View .phoenix.js
'use strict';
var keys = [];
var controlAlt = [ 'ctrl', 'alt' ];
var margin = 0;
var increment = 0.1
function log() {
Phoenix.log(JSON.stringify(arguments[0], true, 2));
}
View keybase.md

Keybase proof

I hereby claim:

  • I am josser on github.
  • I am josser (https://keybase.io/josser) on keybase.
  • I have a public key ASBnqM8fMlxKvEMi1UvJfqsUHnrz7XGGo-LCDfOGdJLNuQo

To claim this, I am signing this object:

View user_ldap.js
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://10.10.0.10'
});
client.bind('user@donaim', 'pw', function(error) {
if (error) {
View gist:4fb2b816f059e329f52a69fca1b3d251
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://10.10.0.10'
});
client.bind('user@donaim', 'pw', function(error) {
if (error) {
View .phoenix.js
'use strict';
var keys = [];
var controlAlt = [ 'ctrl', 'alt' ];
var margin = 0;
var increment = 0.1
function log() {
Phoenix.log(JSON.stringify(arguments[0], true, 2));
}
View reducers_todos.js
import { ADD_TODO } from 'constants/ActionTypes'
export const initialState = [
{
text: 'Use Redux',
completed: false,
id: 0
}
]
You can’t perform that action at this time.