Skip to content

Instantly share code, notes, and snippets.

@sebkouba
sebkouba / gist:8564ec713bce206272c0
Created November 5, 2015 12:36
concatenate all xls files in directory tree
import os
import shutil
import xlrd
import xlwt
rootdir = os.getcwd()
wkbk = xlwt.Workbook()
outsheet = wkbk.add_sheet('Sheet1')
@sebkouba
sebkouba / ParentChild.es6
Created February 17, 2016 06:00
Basic example to pass values between parent and child components in React.
/**
* Basic example to pass values between parent and child components in React
* Seems to be in line with this
* http://stackoverflow.com/questions/24147331/react-the-right-way-to-pass-form-element-state-to-sibling-parent-elements
* Now I have the state in parent and child. Is that good or bad? Why would I need it in child?
* Could probably take that out
* */
class Parent extends React.Component {
constructor(props) {
super(props);
@sebkouba
sebkouba / webpack.config.babel.js
Created May 4, 2016 06:37
Annotated webpack.config file from Tyler McG's React Course including HMR
/**
* putting babel into the filename means the file runs through babel
* so we can use ES6 to merge configs at the bottom
* */
import webpack from 'webpack'
import path from 'path'
import HtmlWebpackPlugin from 'html-webpack-plugin'
// references which npm command we are running - start or production
@sebkouba
sebkouba / gist:f2a982ea1c2b658574dcc3da8de09de6
Last active June 4, 2021 13:14 — forked from sunggun-yu/gist:4416430
Install NMON - CentOS 7 64bit
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz
# Untar archive
tar -xzvf nmon16e_mpginc.tar.gz
@sebkouba
sebkouba / delete_worklog.py
Created December 13, 2016 13:16
Batch delete Jira worklogs using Python wrapper
from jira import JIRA
jira = JIRA(server="https://domain.com", basic_auth=('username', 'password'))
# first initial search
query = "timespent > 0 AND project = PROJKEY and issuetype=defect"
relevant_issues = jira.search_issues(query, maxResults=50)
# loop hast to be adjusted if the number of results is very large so the search is executed again
while relevant_issues:
@sebkouba
sebkouba / delete_worklogs2.py
Created December 14, 2016 10:24
Delete jira worklogs by one user on particular day
# -*- coding: utf-8 -*-
from jira import JIRA
jira = JIRA(server="http://something.com/", basic_auth=('user', 'password'))
query = "worklogdate = 2016-11-30 and worklogauthor = vfprelea"
relevant_issues = jira.search_issues(query, maxResults=50)
while relevant_issues:
for issue in relevant_issues:

Keybase proof

I hereby claim:

  • I am sebkouba on github.
  • I am sebkb (https://keybase.io/sebkb) on keybase.
  • I have a public key ASDV3ReUfqvsUF3AeO3N36RbRFVnVUBq5C9IHeSaBgti2Qo

To claim this, I am signing this object:

name phone
Seb 123
Lotte 345
Luki 334
Lorain 331
Barbara