Skip to content

Instantly share code, notes, and snippets.

View BrianGallew's full-sized avatar

Brian Gallew BrianGallew

View GitHub Profile
@BrianGallew
BrianGallew / Makefile
Last active January 19, 2016 01:04
Result of linking Bacula-7.4.0
/home/bgallew/src/cdn-bacula/build/bacula-7.4.0/libtool --tag=CXX --mode=link /usr/bin/g++ \
-L../lib -L../cats -L../findlib -o bacula-dir dird.o admin.o authenticate.o autoprune.o backup.o \
bsr.o catreq.o dir_plugins.o dird_conf.o expand.o fd_cmds.o getmsg.o inc_conf.o job.o jobq.o mac.o \
mac_sql.o mountreq.o msgchan.o next_vol.o newvol.o recycle.o restore.o run_conf.o scheduler.o ua_acl.o \
ua_cmds.o ua_dotcmds.o ua_query.o ua_input.o ua_label.o ua_output.o ua_prune.o ua_purge.o ua_restore.o \
ua_run.o ua_select.o ua_server.o snapshot.o ua_status.o ua_tree.o ua_update.o vbackup.o verify.o \
-lbacfind -lbacsql -lbaccats -lbaccfg -lbac -lm -lpthread -ldl -ldl \
-lwrap -lssl -lcrypto -lcap
libtool: link: /usr/bin/g++ -o .libs/bacula-dir dird.o admin.o authenticate.o autoprune.o backup.o bsr.o catreq.o \
dir_plugins.o dird_conf.o expand.o fd_cmds.o getmsg.o inc_conf.o job.o jobq.o mac.o mac_sql.o mountreq.o msgchan.o \
@BrianGallew
BrianGallew / gist:c6118526dc915155f122
Created January 12, 2016 22:28 — forked from lukecyca/gist:907c4a62758c068fd464
Impersonating a user with the JIRA API
"""
Example of making a request to JIRA as a trusted application.
In this example, we create a new issue as an arbitrary user.
More information on this technique at:
https://answers.atlassian.com/questions/247528/how-do-you-impersonate-a-user-with-jira-oauth
"""
import oauth2
import time
#!jinja|pyobjects
# Set up logging
import logging
logger = logging.getLogger(__name__)
import os
import yaml
import socket
'''
{% from "zookeeper/map.jinja" import zookeeper, zookeeper_environment with context %}
# [CHOMP lots of other stuff]
my_zookeeper_environment: {{ zookeeper_environment }}
### Keybase proof
I hereby claim:
* I am BrianGallew on github.
* I am geekatcmu (https://keybase.io/geekatcmu) on keybase.
* I have a public key whose fingerprint is BA12 645D 0A08 E725 A330 5425 8F1D CFB8 916A 3309
To claim this, I am signing this object:
<!DOCTYPE html>
<meta charset="utf-8">
<!-- this works from within the examples folder -->
<link href="../src/nv.d3.css" rel="stylesheet" type="text/css">
<style>
body {