Skip to content

Instantly share code, notes, and snippets.

View mbukatov's full-sized avatar

Martin Bukatovic mbukatov

View GitHub Profile
@kennethreitz
kennethreitz / 0_urllib2.py
Created May 16, 2011 00:17
urllib2 vs requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(gh_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
@kazuhisya
kazuhisya / README.md
Created July 29, 2011 08:43
npm rpm spec
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active September 24, 2024 14:52 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@aaronwolen
aaronwolen / slides.md
Last active November 11, 2022 23:57
Pandoc template to generate reveal.js slideshows.

% Title % Name % Date

My first slide

List

@zhzhxtrrk
zhzhxtrrk / wiki.lua
Last active April 19, 2020 18:31
pandoc confluence markup writer
-- that is very similar to that of pandoc's HTML writer.
-- There is one new feature: code blocks marked with class 'dot'
-- are piped through graphviz and images are included in the HTML
-- output using 'data:' URLs.
--
-- Invoke with: pandoc -t sample.lua
--
-- Note: you need not have lua installed on your system to use this
-- custom writer. However, if you do have lua installed, you can
-- use it to test changes to the script. 'lua sample.lua' will
@jayunit100
jayunit100 / build.gradle
Last active August 29, 2015 14:01
first attempt at building gradle runner for bigtop tests
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
//needed to avoid groovy not on classpath error.
testCompile module('org.codehaus.groovy:groovy:1.8.0')
@SpotlightKid
SpotlightKid / getdocstrings.py
Created September 1, 2014 09:22
Parse Python source code and get or print docstrings.
# -*- coding: utf-8 -*-
"""Parse Python source code and get or print docstrings."""
__all__ = ('get_docstrings', 'print_docstrings')
import ast
from itertools import groupby
from os.path import basename, splitext
@mbbx6spp
mbbx6spp / README.md
Last active October 22, 2024 13:13
Gerrit vs Github for code review and codebase management

Gerrit vs Github: for code review and codebase management

Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.

Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:

  • Fast-forward submits to the target branch are better than allowing merge commits to the target branch. The reason I personally prefer this is that, even if a non-conflicting merge to the target branch is possible, the fact that the review/pull request is not up to date with the latest on the target branch means feature branch test suite runs in the CI pipeline reporting on the review/PR may not be accurate. Another minor point is that forced merge commits are annoying as fuck (opinion) and clutter up Git log histories unnecessarily and I prefer clean histories.
  • Atomic/related changes all in one commit is something worth striving for. Having your dev
@ypandit
ypandit / Xvfb.service
Last active September 8, 2023 13:13
Xvfb as a systemd service
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24
[Install]
WantedBy=multi-user.target
https://www.youtube.com/watch?v=kI-KpfQFgug # python coroutines
https://www.youtube.com/watch?v=M_ns_vIshmw # gnu radio
https://www.youtube.com/watch?v=t-TwCLwYIGE # Apache HTrace
https://www.youtube.com/watch?v=aieG8gjpqsw # gimp tricks
https://www.youtube.com/watch?v=jWM3HTwsNE8 # glusterfs @ facebook
https://www.youtube.com/watch?v=4NG1ngz0nnY # BTR'ed ZFS
https://www.youtube.com/watch?v=zkHkrSVHTjA # btrfs dedup
https://www.youtube.com/watch?v=jr4zQc3g1Ts # terryble git ideas
https://www.youtube.com/watch?v=Snr44e7Fjgw # QEMU/libvirt
https://www.youtube.com/watch?v=X1NAJbLqEv8 # SELinux