Skip to content

Instantly share code, notes, and snippets.

View jacoblyles's full-sized avatar

Jacob jacoblyles

  • Feeling Good
  • Lancaster, PA
View GitHub Profile
@jacoblyles
jacoblyles / case.scala
Created April 11, 2017 18:05
Case Class Puzzle
case class A(
id: Int,
a: String,
b: String,
c: String,
d: String,
e: String)
case class Update(
a: Option[String],

Keybase proof

I hereby claim:

  • I am jacoblyles on github.
  • I am jacoblyles (https://keybase.io/jacoblyles) on keybase.
  • I have a public key whose fingerprint is 0591 8298 06AD 8C4B 1168 5656 2144 D7A3 841C 6F90

To claim this, I am signing this object:

Installing Electrum on an air-gapped Ubuntu Machine

This guide shows how to install Electrum on an air-gapped machine. You will also need an Ubuntu machine connected to the network in order to complete this guide (it can be a virtual machine).

On the online machine

If you are running Ubuntu 16.04 off of a live USB, there is a bug that affects the package manager. You need to run these two commands at the terminal to fix it:

$ sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old

71OUKK$VH33.J1Y/K8Q8T3-F8X59N/YIO*LXY.7320F/5.KN$EG47LC*I1VP$S7FS2+.KAJR5:8$-MDQTMHA54/QT3R$JVX/WRDLONP/*TJLGIHRB.KNSGZWVUW9TOSOE6G1::..-NLQNJD-R1GNJ.HA7A1M.6CS:-60X9LR9XHHB6B1KLTX4T/EZN3$ZWW+J10-Z9QU-N9HHU$EV865ED$3JD$ZUJ6IA2Z:.WXKXTCK2:BMZFW3F+QI.GS54BN3*Q1T*3C1ESF0QA:ZOX1RLG/I/I1GPL:FPLRKAKH:KO4*U0YAK16-CGI-Z7A3EQAJ8Q484VA05FE7JO$-U.HBFWNFSFD8EGPJR*QV3YJD5SHA3BLWM+FR0*FS7M89S115/PU7:6-XW:EPL4/+7N2RFM/**Z6J*/--97OD2QWSLUE7G5F42ATP0SAV52U1GV+WZAJX$T0R:49QIDYJUKOXWX.$UUTR5596EOVK88E$ALJ-/MEML4883J5572D1-LRSXTRYL:X39U8QQ0XII09I5M3:13$U+B7V3S1+YUQM3:G+A/IH9+$.CHEOGE-3NX:OZ+H1D*N3IFC9+/ZT*S/O45QLRC
@jacoblyles
jacoblyles / new_github_pr.css
Created February 3, 2014 21:53
Make github pull request view usable
span.css-truncate-target {
overflow: visible;
max-width: none;
}
.discussion-timeline {
width: auto;
}
@jacoblyles
jacoblyles / flatten.scala
Last active January 3, 2016 13:19
This flattens a scala playframework JsObject. The result will not contain any JsObjects as values
def flattenJsObject(obj: JsObject): JsObject = {
val newObj = obj.fields.map {
case (name, value) =>
value match {
case o: JsObject =>
Some((name, o))
case _ => None
}
}.flatMap(o => o).foldLeft(obj) {
case (prev, next) =>
@jacoblyles
jacoblyles / histogram.js
Created August 10, 2012 08:56
Coursera Age Histogram
function histogram(opts) {
opts = _.extend(
{
margin: {
top: 10,
right: 30,
bottom: 30,
left: 30
},
width: 500,
@jacoblyles
jacoblyles / gist:3260825
Created August 5, 2012 00:30
Age scraper coursera forum
(function(){
// convert nodelists from querySelector functions into arrays
var posts = Array.prototype.slice.call(
document.body.querySelectorAll('.post_text_container'));
var comments = Array.prototype.slice.call(
document.body.querySelectorAll('.comment_text_container'));
var texts = posts.concat(comments);
var re = /\b\d{2}\b/g;
var nums = [];
texts.forEach(function(item){
@jacoblyles
jacoblyles / about.md
Created August 10, 2011 00:41 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
var screens = {
iPhone: {
map: {width: 480, height: 300},
toolbar: {width: 480, height: 20, bottom: 0}
},
NexusOne: {
map: {width: 800, height: 380},
toolbar: {width: 800, height: 20, bottom: 0}
}
}