Skip to content

Instantly share code, notes, and snippets.

View seangeleno's full-sized avatar

Sean Marcel Esteva seangeleno

View GitHub Profile
@seangeleno
seangeleno / .bashrc
Created December 8, 2017 19:44
Found this crazy .bashrc, so many good snippets ready to use!
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
#-------------------------------------------------------------
# Source global definitions (if any)
#-------------------------------------------------------------
@seangeleno
seangeleno / cipher.js
Created December 8, 2017 20:39
nodejs crypto cipher example
var crypto = require('crypto');
var plainText = '8a30e4ee9a592acdce626d0f3caccd020deb9b1fa1d5996bbf8908860ea5aa68';
var chooseCipher = crypto.getCiphers();
try
{
var cipher = crypto.createCipher(chooseCipher[32], 'password');
var cipherText2 = Buffer.concat([cipher.update(new Buffer(plainText)), cipher.final()]);
@seangeleno
seangeleno / cipher.js
Created December 8, 2017 20:39
nodejs crypto cipher example
var crypto = require('crypto');
var plainText = '8a30e4ee9a592acdce626d0f3caccd020deb9b1fa1d5996bbf8908860ea5aa68';
var chooseCipher = crypto.getCiphers();
try
{
var cipher = crypto.createCipher(chooseCipher[32], 'password');
var cipherText2 = Buffer.concat([cipher.update(new Buffer(plainText)), cipher.final()]);
@seangeleno
seangeleno / bitcoin.conf
Created December 10, 2017 00:36
Bitcoin Core Configuration File
### bitcoin.conf configuration file. Lines beginning with # are comments.
### Uncomment and edit options you wish to use.
## JSON-RPC options (for controlling a running bitcoin-qt/bitcoind process)
# server=1 tells Bitcoin to accept JSON-RPC commands.
server=1
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
# You should create your own new random password.
@seangeleno
seangeleno / zca.sh
Last active December 21, 2017 20:25
zcash installation script
#!/bin/bash
#ZCASH INSTALLATION SCRIPT
# set variables, change or mining proceeds will go to $ZMINEADDRESS
ZMINER=cryptology
ZMINEADDRESS=t1S7BWuvAwuE67APeFiCW6GVSAfk31j5XED
ZHOME=~/.zcash
ZCONF=$ZHOME/zcash.conf
DAEMONSTATUS=0
@seangeleno
seangeleno / vpn.sh
Created December 14, 2017 00:29
VPN
#!/bin/bash
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS
# This script will work on Debian, Ubuntu, CentOS and probably other distros
# of the same families, although no support is offered for them. It isn't
# bulletproof but it will probably work if you simply want to setup a VPN on
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and
# universal as possible.
@seangeleno
seangeleno / taddress.txt
Created December 14, 2017 16:30
zcash_mine
t1S7BWuvAwuE67APeFiCW6GVSAfk31j5XED
@seangeleno
seangeleno / ripple
Created December 15, 2017 16:11
Ripple Excel Data Import
WEB
1
https://coinmarketcap.com/currencies/ripple/#markets
Selection=EntirePage
Formatting=All
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
@seangeleno
seangeleno / erc20.md
Created December 19, 2017 17:18
ERC20 Protocol Specifications

Preamble

EIP: 20
Title: ERC-20 Token Standard
Author: Fabian Vogelsteller <fabian@ethereum.org>, Vitalik Buterin <vitalik.buterin@ethereum.org>
Type: Standard
Category: ERC
Status: Accepted
Created: 2015-11-19
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div class="reddit-embed" data-embed-media="www.redditmedia.com" data-embed-parent="true" data-embed-live="false" data-embed-uuid="bbfef09c-5e42-4100-b553-4c3243312350" data-embed-created="2017-12-20T00:14:21.940Z"><a href="https://www.reddit.com/r/Iota/comments/7kt4ke/new_announcement/drhcrl6/">Comment</a> from discussion <a href="https://www.reddit.com/r/Iota/comments/7kt4ke/new_announcement/">NEW ANNOUNCEMENT!</a>.</div><script async src="https://www.redditstatic.com/comment-embed.js"></script>