Skip to content

Instantly share code, notes, and snippets.

@adamjonas
adamjonas / gist:a4399dd277892dfb0654473a6fdfb6f3
Created June 27, 2019 20:08
categorization of first principle issues
Fungibility/Privacy:
Scalability:
Trustlessness/Decentralization:
@adamjonas
adamjonas / gist:8da156886ffa414541eaa43c0c5074ca
Created June 27, 2019 19:58
Privacy Leaks in Lightning
1) How can Gossip protocol be exploited to leak privacy?
2) How do BOLT 11 strings potentially leak privacy?
3) What is the minimal amount of info watchtowers need to know to work?
4) How can we minimize what is broadcasted to the base layer and how can the base layer leak our privacy?
#!/usr/local/rvm/rubies/ruby-2.3.3/bin/ruby
require 'net/http'
require 'json'
MONITORED_HOSTGROUPS = {
ironboard: 'Web Servers',
postgres: 'Database',
flatchat: 'Chat',
ide: 'IDE'
curl http://elasticsearch05.fe.flatironschool.com:9200/users_development/_search?pretty -d '{
"query":{
"dis_max":{
"queries":[
{
"match":{
"github_username.analyzed":{
"query":"adam",
"operator":"and",
"boost":10,
results = ActiveRecord::Base.connection.execute(
'select d.github_source, e.* from
(select a.github_source, count(*) as count FROM
(SELECT DISTINCT github_source FROM assignments) as sources
INNER JOIN assignments as a ON sources.github_source = a.github_source group by a.github_source) as d
inner join assignments as e on d.github_source = e.github_source where d.count > 1;'
)
with_content_ids = []
no_content_ids = []
select d.github_source, e.* from
(select a.github_source, count(*) as count FROM
(SELECT DISTINCT github_source FROM assignments) as sources
INNER JOIN assignments as a ON sources.github_source = a.github_source group by a.github_source) as d
inner join assignments as e on d.github_source = e.github_source where d.count > 1;
results = ActiveRecord::Base.connection.execute(
'select d.github_source, e.* from
(select a.github_source, count(*) as count FROM
(SELECT DISTINCT github_source FROM assignments) as sources
`curl -o tmp/latest.dump \`heroku pgbackups:url -a fis-ironboard-production\``
@adamjonas
adamjonas / gist:8965462
Created February 12, 2014 22:03
gem file
source 'https://rubygems.org'
# Frameworks
gem 'rails', '4.0.2'
# Server
gem 'unicorn'
# Database
gem 'pg'

order: 3 question: 'How does it work?' answer: 'There are two ways to participate:

DEVELOPMENT

Online submission of innovative, feasible concepts to the DEVELOPMENT track. Proposals will be judged on technical and business criteria (listed in the Judging section below). As participants advance to semi-final and final rounds, they will receive mentorship, education, and resources to help optimize the potential of their ideas. Winners will receive up to $500,000 in funding, gain business development support to launch their products, and attend the MAKE IT WEARABLE final presentation and gala event. If a winning submission is made by a team or organization, prizes will be awarded to the team or organization as a whole (not on an individual basis).

VISIONARY

@adamjonas
adamjonas / Pergola
Last active December 24, 2015 02:29
Pergola
###cURL
#Authenticate
curl -X POST --data '[email protected]&password=1password' https://api.vineapp.com/users/authenticate
#My profile
curl -H "vine-session-id:#{key}" https://api.vineapp.com/users/me
###httparty
gem install httparty