Skip to content

Instantly share code, notes, and snippets.

View viktor-evdokimov's full-sized avatar

Viktor Evdokimov viktor-evdokimov

View GitHub Profile
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
var port = process.env.PORT || 3000;
var fs = require('fs');
var express = require('express');
var passport = require('passport')
, OAuthStrategy = require('passport-oauth').OAuth2Strategy;
passport.serializeUser(function(user, done) {
done(null, user);
// Based off example code from Hal Robertson
// See discussion:!topic/passportjs/zCz0nXB_gao
var restify = require('restify')
// config vars
var FB_LOGIN_PATH = '/api/facebook_login'
var FB_CALLBACK_PATH = '/api/facebook_callback'
viktor-evdokimov / Class1.cs
Last active December 15, 2015 03:49
TraceSource test
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lib
public class Class1

Build your own private, encrypted, open-source Dropbox-esque sync folder


  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

viktor-evdokimov /
Last active August 29, 2015 14:12 — forked from Jach/
1. Create any milestones
2. Create any labels
3. Create each issue, linking them to milestones and labels
3.1: Update status for new issue if closed
4: Create all the comments for each issue
import getpass
import json
#!/usr/bin/env python2.6
# Copyright (c) 2010, Code Aurora Forum. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above
sample code to demonstrate using JIRA's oauth API
from rauth.session import OAuth1Session
from rauth.oauth import RsaSha1Signature
from Crypto.PublicKey import RSA
from Crypto.Hash import MD5
from Crypto import Random
from jira.client import JIRA