Skip to content

Instantly share code, notes, and snippets.

File "/opt/bbc/openstack-10.0-bbc68/swift/local/lib/python2.7/site-packages/keystoneclient/session.py",
line 420, in _send_request#012
raise exceptions.SSLError(msg)#012SSLError: SSL exception connecting to https://bbg-staging-01.openstack.blueboxgrid.com:35358:
[Errno bad ca_certs: '"/etc/ssl/certs/ca-certificates.crt"']
[('system library', 'fopen', 'No such file or directory'),
('BIO routines', 'BIO_new_file', 'no such file'),
('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]
@warlyware
warlyware / gulpconfig.js
Created August 25, 2015 19:34
Gulp config file
module.exports = function() {
var client = './src/client';
var config = {
dir: {
temp: './.tmp',
// all js that needs checking and concating
js: [
'./src/**/*.js',
'./*.js'
require 'spec_helper'
describe Hydra::Works::FullTextExtractionService do
describe "extract pdf file" do
before do
@myfile = Hydra::Works::GenericFile::Base.create
Hydra::Works::AddFileToGenericFile.call(@myfile, File.open(File.join(fixture_path, 'test4.pdf')), :original_file)
Hydra::Works::FullTextExtractionService.run(@myfile)
package com.tamr.features.register;
import cucumber.api.PendingException;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
/**
* Created by steve on 8/25/15.
@preslavrachev
preslavrachev / The Technical Interview Cheat Sheet.md
Last active August 25, 2015 19:35 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
#!/usr/bin/env python
import bisect
import subprocess
import sys
def lookup(lib, find_addr):
funcs = {}
for line in subprocess.check_output(['readelf', '-s', lib]).splitlines():
line = line.strip()
var selectCtrl = function($element) {
var ctrl = this;
$element.on('click', function(e){
//use a method that I have to see in the docs for select the text in an input that I don't remember now, should be accesible
//$element
})
};
@jarmokivekas
jarmokivekas / 1087-grid.gpx
Last active August 25, 2015 19:35
quick python script for generating a coordinate grid for a given area
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="" version="1.1">
<trk>
<trkseg>
<trkpt lon="15.300000" lat="5.500000"></trkpt>
<trkpt lon="11.000000" lat="5.500000"></trkpt>
</trkseg>
<trkseg>
<trkpt lon="15.300000" lat="5.505000"></trkpt>
@bahamas10
bahamas10 / 0-output.txt
Last active August 25, 2015 19:36
dotted lookup performance
$ ./dotted-lookup.js a
new function begin
{ b: { c: 'hello' } }
new function end: 1ms
manual parsing begin
{ b: { c: 'hello' } }
manual parsing end: 0ms
$ ./dotted-lookup.js a.b
new function begin
@garethrees
garethrees / sed-delete-after-word.sh
Created August 25, 2015 19:38
sed: Delete After Word
#!/bin/sh
sed '
/ONE/ {
# append a line
N
# if TWO found, delete the first line
/\n.*TWO/ D
}' file