I hereby claim:
- I am joshmh on github.
- I am joshmh (https://keybase.io/joshmh) on keybase.
- I have a public key ASAkYhpe8FkcT1Gb0mptrRLke1OaT2O2sQpMsF53SL7BPQo
To claim this, I am signing this object:
require 'pango' | |
mini_surface = Cairo::ImageSurface.new Cairo::FORMAT_ARGB32, 1, 1 | |
mini_ctx = Cairo::Context.new mini_surface | |
layout = mini_ctx.create_pango_layout | |
fd = Pango::FontDescription.new('Raanan') | |
fd.set_size(90 * Pango::SCALE) | |
layout.set_font_description(fd) | |
layout.text = 'אהלן!' | |
width = layout.get_pixel_extents.last.width |
<?php | |
function btc_price($price_in_usd) { | |
$url = 'https://mtgox.com/api/0/data/ticker.php?Currency=usd'; | |
$response = http_parse_message(http_get($url))->body; | |
$obj = json_decode($response, true); | |
$last = $obj['ticker']['last']; | |
return number_format( ($price_in_usd / $last), 2 ) . " BTC"; | |
} |
{ | |
"trailing": false, | |
"node": true, | |
"unused": "last-param", | |
"globalstrict": true | |
} |
88 npm -g install bunyan restart lamassu-server lamassu_env=debug | |
91 restart lamassu-server lamassu_env=debug | |
100 restart lamassu-server LAMASSU_ENV=debug | |
106 history | grep restart |
apt-get install emdebian-archive-keyring | |
echo "deb http://ftp.us.debian.org/debian/ squeeze main" >> /etc/apt/sources.list.d/emdebian.list | |
echo "deb http://www.emdebian.org/debian/ squeeze main" >> /etc/apt/sources.list.d/emdebian.list | |
apt-get update | |
apt-get install binutils-arm-linux-gnueabi | |
apt-get install cpp-4.4-arm-linux-gnueabi | |
apt-get install g++-4.4-arm-linux-gnueabi | |
apt-get install gcc-4.4-base-armel-cross | |
apt-get install gcc-multilib g++-multilib |
# New ARM processors | |
# This is for newer Ubuntus | |
export AR=arm-linux-gnueabihf-ar | |
export CC=arm-linux-gnueabihf-gcc | |
export CXX=arm-linux-gnueabihf-g++ | |
export LINK=arm-linux-gnueabihf-g++ | |
./configure --without-snapshot --dest-cpu=arm --dest-os=linux | |
make | |
make install DESTDIR=~/node-armhf/ |
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 9.5.5 | |
-- Dumped by pg_dump version 9.5.5 | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; | |
SET client_encoding = 'UTF8'; |
I hereby claim:
To claim this, I am signing this object:
#include <mutex> | |
#include <condition_variable> | |
#include <thread> | |
#include <chrono> | |
#include <string> | |
#include <iostream> | |
std::atomic<bool> sigg; | |
std::string s = "na"; | |
std::mutex m; |