Skip to content

Instantly share code, notes, and snippets.

View viktor-evdokimov's full-sized avatar
👷‍♂️
Focusing

Viktor Evdokimov viktor-evdokimov

👷‍♂️
Focusing
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@viktor-evdokimov
viktor-evdokimov / mig.py
Last active August 29, 2015 14:12 — forked from Jach/mig.py
'''
Steps:
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
!/usr/bin/env python
# current-tasks.py
# author: Anthony McClosky - http://amcclosky.com
import requests
import json
JIRA_ROOT_URL = "jira.example.com"
JIRA_API_ENDPOINT = "http://%s/rest/api/2.0.alpha1/" % JIRA_ROOT_URL
class PylonstestingController(BaseController):
jac = {'server': 'someSite'}
jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
def index(self, id):
#jac = {'server': 'someSite'}
#jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
searchString = 'project=' + id + '&status=open'
using ServiceStack.WebHost.Endpoints;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security;
using ServiceStack.Common.Web;
using ServiceStack.Logging;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
@viktor-evdokimov
viktor-evdokimov / gulpfile.js
Created January 21, 2015 14:36
gulp browserify reactify boilerplate gulp file
var gulp = require('gulp')
, browserify = require('browserify')
, concat = require('gulp-concat')
, reactify = require('reactify')
, source = require("vinyl-source-stream")
gulp.task('browserify', function(){
var b = browserify();
b.transform(reactify); // use the reactify transform
b.add('./src/js/main.js');
@viktor-evdokimov
viktor-evdokimov / install.ps1
Created January 21, 2015 16:52
install package from local folder
Install-Package SomePackage -Source C:\PathToThePackageDir\
@viktor-evdokimov
viktor-evdokimov / convert.sh
Last active August 29, 2015 14:14
generate pfx ( pkcs12) from .crt
openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt