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:
#!/usr/bin/env ruby | |
require 'sequel' | |
require 'pp' | |
# script to copy data from my old, non-Rails postgres DB to my new rails DB. | |
# | |
# The DB has users, which have a number of Lists. | |
# And Lists, which have a number of Items. | |
# |
#!/usr/bin/env ruby | |
def runcmd(cmd) | |
pid = Process.spawn(cmd) | |
Process.wait(pid) | |
unless ( $?.exited? && $?.exitstatus == 0 ) | |
raise "oh noes" | |
end | |
$?.exitstatus | |
end |
#! /usr/bin/env ruby | |
# | |
# git-start.rb | |
# | |
# Quick-and-dirty utility to initialize a new git repo in the current | |
# directory, add all existing files and make an initial commit with message | |
# 'Initial commit'. | |
# | |
# Saves a few seconds here and there. | |
# |
#<TradeAPI:0x007fd9143fc6c8 @key="YOUR-API-KEY", @secret="YOUR-SECRET-KEY"> | |
#<TradeAPI:0x007fd9144134e0 @key="MY-OTHER-API-KEY", @secret="MY-OTHER-SECRET-KEY"> | |
#<TradeAPI:0x007fd9144129a0 @key="Master key!", @secret="Super S33krit"> |
depth=1 /C=US/O=GeoTrust, Inc./CN=RapidSSL CA | |
verify error:num=20:unable to get local issuer certificate | |
verify return:0 | |
CONNECTED(00000003) | |
OCSP response: no response sent | |
--- | |
Certificate chain | |
0 s:/serialNumber=RRAXldgzDrRZWQpGo6FHdTHV3qwvwXtD/OU=GT35895174/OU=See www.rapidssl.com/resources/cps (c)13/OU=Domain Control Validated - RapidSSL(R)/CN=*.rubygems.org | |
i:/C=US/O=GeoTrust, Inc./CN=RapidSSL CA | |
-----BEGIN CERTIFICATE----- |
#! /usr/bin/env ruby | |
class TradeAPI | |
attr_accessor :key | |
attr_accessor :secret | |
def initialize(key, secret) | |
@key = key | |
@secret = secret |
var util = require('util') | |
var coind = require('node-coind') | |
var client = new coind.Client({ | |
host: 'localhost', | |
port: 9998, // production = 9998 | |
user: process.env.DARKCOINRPC_USER, | |
pass: process.env.DARKCOINRPC_PASS | |
}) | |
var cb = function (err, data) { |
#ifndef __PTREE_H__ | |
#define __PTREE_H__ | |
#include <sys/types.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
## 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 |