Examples for mounting Windows network filesystem(s) from an OSX client.
-
List available shares/disks on computer 'mb052361' (as local Windows user 'root'):
smbutil view //root:password@mb052361
Output:
# Ruby reverse bytes in hex string (endianness) | |
def flip_bytes(hex) | |
return hex.scan(/../).reverse.join('') | |
end | |
hs = "e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7" | |
puts flip_bytes(hs) |
#! /usr/bin/env ruby | |
# Utility converting BIP32 extended key version bytes | |
require './dashutil' | |
xkey = ARGV.shift | |
pref = ARGV.shift | |
# xpub661MyMwAqRbcFnEEbFf8idiyo8QGKiqhTujUmaJsDhAEZ82cEQPMq69Y4V27vGc5rJnxsd26kyHpBJDW72YMjntsmASbdBy1awfGMsUvLCa |
<?php | |
use BitWasp\Bitcoin\Base58; | |
use BitWasp\Buffertools\Buffer; | |
use BitWasp\Buffertools\BufferInterface; | |
use BitWasp\Buffertools\Buffertools; | |
require "./vendor/autoload.php"; | |
class XKeyUtil { |
## bitwalletrecover.py - recover private keys from your darkcoin wallet | |
## (this version was not tested with bitcoin/litecoin). | |
## Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), | |
## and base58 (https://pypi.python.org/pypi/base58). | |
## | |
## Starting with Python 3.4, pip is included by default with the Python binary | |
## installers. To install pip for older versions 3.x: | |
## | |
## sudo apt-get install python3-setuptools | |
## sudo easy_install3 pip |
var eu = require('ethereumjs-util') | |
var uncompressed_public_key_hex = '04320c6bb9c30cd4ee54484ad10b01d2742105a70b9333b2310be8e870344f18f23d70897cf0588510fc28cf76b637902179cc2d3ead649718bef61c6eb95cec7e' | |
var upk_buf = new Buffer(uncompressed_public_key_hex, 'hex') | |
var addr_buf = eu.pubToAddress(upk_buf.slice(1,65)) | |
var addr = addr_buf.toString('hex') | |
console.log("addr: " + eu.toChecksumAddress(addr) ) |
armstrong-economics.zip | |
aws-lambda/ |
import re | |
def shorten(ipv6_long): | |
hextets = ipv6_long.split(':') | |
temp = [] | |
for hextet in hextets: | |
# trim leading '0's | |
hextet = re.sub(r'^0+', '', hextet) |
I hereby claim:
To claim this, I am signing this object: