This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PageDrop < Liquid::Drop | |
include ActionView::Helpers::AssetTagHelper | |
include Rails.application.routes.url_helpers | |
include AlbumsHelper | |
include ImagesHelper | |
def initialize(page) | |
@page = page | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"authenticated_peers" : null, | |
"pending_peers" : [ | |
"159.122.134.146:11625", | |
"169.51.72.53:11625", | |
"54.216.51.168:11625", | |
"54.155.184.129:11625", | |
"218.98.33.37:11625", | |
"47.52.252.116:11625", | |
"199.201.65.2:11625", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lnd = Lnrpc::Client.new({ | |
address: "127.0.0.1:10001", | |
credentials_path: "/Users/ramon/.polar/networks/1/volumes/lnd/alice/tls.cert", | |
macaroon_path: "/Users/ramon/.polar/networks/1/volumes/lnd/alice/data/chain/bitcoin/regtest/admin.macaroon", | |
}) | |
# This works | |
lnd.lightning.get_info | |
response = lnd.signer.sign_message({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" at ~/.config/nvim/init.vim | |
call plug#begin(stdpath('data') . '/plugged') | |
"" Gruvbox theme. | |
Plug 'gruvbox-community/gruvbox' | |
Plug 'airblade/vim-gitgutter' " show + / - changes if git repo | |
Plug 'AndrewRadev/splitjoin.vim' " expand/collapse blocks | |
Plug 'davidhalter/jedi-vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
LIMIT=30 #limit on seconds | |
PROCESS="convert" #change to process u want to grep | |
COMMAND="ps -eo pid,cmd,etime" | |
process_list = `#{COMMAND} | grep #{PROCESS}` | |
process_list = process_list.split("\n") # make an array of process strings | |
process_list = process_list.select {|process| process !~ /grep/} # remove the grep process | |
process_list.each do |process| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method=POST path=/stellar/bridge_callbacks format=json controller=StellarBase::BridgeCallbacksController action=create status=200 duration=45.94 view=0.00 db=6.17 params={"amount"=>"195.2500000", "asset_code"=>"PHPT", "asset_issuer"=>"GCADSE5JJJPNC4HPOZTSUOYOFLR4JPG6N5METWZH3ZLZGSI3MALLWXHW", "data"=>"", "from"=>"GCO7WYNIWF2T3PRD7XGKV4KZ4LCHV355WA5VK7NYF6V5ZMGAJF2X3ZDR", "memo"=>"", "memo_type"=>"", "route"=>"", "transaction_id"=>"c207ab582ad039d5df8f46a858640f661af325c41c9fb39a2ed3159969547e49"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
// ---------------------------------------------------------------------------- | |
// 'BX87' token contract | |
// | |
// Deployed to : 0xdE500E92ba8E27bB8DaBc8F45CE654171b12a804 | |
// Symbol : BX87 | |
// Name : BX87 | |
// Total supply: 8,000,000,000 | |
// Decimals : 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
// ---------------------------------------------------------------------------- | |
// 'BX8' token contract | |
// | |
// Deployed to : 0xdE500E92ba8E27bB8DaBc8F45CE654171b12a804 | |
// Symbol : BX8 | |
// Name : BX8 | |
// Total supply: 8,000,000,000 | |
// Decimals : 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## .. setup envelope_base64 | |
response = horizon.transactions._post(tx: envelope_base64) | |
result_xdr = response._response.body["result_xdr"] | |
decoded_result_xdr = Stellar::Convert.from_base64(result_xdr) | |
tx_result = Stellar::TransactionResult.from_xdr(decoded_result_xdr) | |
=> #<Stellar::TransactionResult:0x007febe07e0a58 | |
@attributes= | |
{:fee_charged=>100, | |
:result=> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"_links"=>{"transaction"=>{"href"=>"https://horizon-testnet.stellar.org/transactions/c8a1cc9439bdaf85ee681b271b09d53d15b514cd60f7a027ba2dbe23498cc7dc"}}, | |
"hash"=>"c8a1cc9439bdaf85ee681b271b09d53d15b514cd60f7a027ba2dbe23498cc7dc", | |
"ledger"=>9072358, | |
"envelope_xdr"=> | |
"AAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAZACKbt4AAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAAFQSFAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAExLQAAB6EgAAAAAQAAAAAAAAAAAAAAAAAAAAHXcRf2AAAAQOZUB5Aa3ELGt8xp2/S97enQcYSZK2RSAdYIe4Kytstm/azXzsWGKKSmocuDVY/e8OLg+nJhOHXbE3KATQdHFw8=", | |
"result_xdr"=> | |
"AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAAAAGG6cAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAAFQSFAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAExLQAAB6EgAAAAAQAAAAAAAAAAAAAAAA==", | |
"result_meta_xdr"=> | |
"AAAAAAAAAAEAAAADAAAAAACKbuYAAAACAAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAAAAGG6 |
NewerOlder