Skip to content

Instantly share code, notes, and snippets.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f28dbbb1814, pid=1247, tid=0x00007f28dc733700
#
# JRE version: (8.0_102-b14) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x89814] __memset_sse2+0x54
#
---
swagger: "2.0"
info:
description: "A simple API"
version: "1.0.0"
title: "A Service"
basePath: "/v1"
schemes:
- "https"
consumes:
#!/usr/bin/python2
from __future__ import division
from datetime import date
import re
with open('/var/log/pacman.log') as f:
first = f.readline()
y, m, d = [int(c, 10) for c in first[1:11].split('-')]
days = (date.today() - date(y, m, d)).days

Keybase proof

I hereby claim:

  • I am hacosta on github.
  • I am hacosta (https://keybase.io/hacosta) on keybase.
  • I have a public key whose fingerprint is 9D7D 294F F3F1 1DFD 0D2C 2874 0A70 A868 A436 11B8

To claim this, I am signing this object:

#!/usr/bin/python2
class Foo:
def __init__(self):
self.y = 4
@property
def x(self):
return 2 + 2
import logging
from barbicanclient.common import auth
from barbicanclient import client
def verify(auth_url, username, api_key, password):
if not password or api_key:
raise ValueError('Password or api_key must be provided')
if password:
#include <stdio.h>
#include <math.h>
int main()
{
double x = 0.5;
printf("orig\tround\tfloor\tceil\n");
printf("%.2f\t%.2f\t%.2f\t%.2f\n", x, round(x), floor(x), ceil(x));
#!/usr/bin/python2
import flask
app = flask.Flask(__name__)
@app.route('/')
def hello_world():
r = flask.Response(status=304)
r.headers['foo'] = 'bar'
return r
#!/usr/bin/python3
import sys
import re
import argparse
import itertools
import logging
import urllib.request
import bs4
import irc.bot
import random
@hacosta
hacosta / gist:5692028
Created June 1, 2013 23:15
Modified hal PKGBUILD
# Maintainer: Rohit Manokaran <rohitm000@yahoo.co.in>
# Contributor: Pawel "l0ner" Soltys <pwslts@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Link Dupont <link@subpop.net>
# Contributor: Calvin Morisson <mutantturkey@gmail.com>
pkgname=hal
pkgver=0.5.14
pkgrel=16
pkgdesc="Hardware Abstraction Layer"