Wednesday, June 27, 2018

How to add FEDERATION_SERVER to stellar.toml

The important to define the FEDERATION_SERVER  before any others sections
# stellar.toml example asset
# Federation service provided by StellarID.io
FEDERATION_SERVER="https://stellarid.io/federation/"
[[CURRENCIES]]
code="GERSH"
issuer="GD5NE236O2MQTHADAU3T5JNDKAEV2HCCR75MBISLNMG6IRTKI3M26UCK"
display_decimals=8
name="Gershon Test"
desc="1 GERSH token entitles you to a share of revenue from Elkins Goat Farm."
conditions="There will only ever be 200000000 GERSH tokens in existence. The 100000000 will be distributed as 2500000 accross 5 years"
image="https://crypto-il.club/crypto_il-logo.png"

Wednesday, June 20, 2018

Node.js redis over SSL Connection Examples

var redis = require('redis');
var tls = require('tls');
var fs = require('fs');

var ssl = {
key: fs.readFileSync("private.key",encoding='ascii'),
cert: fs.readFileSync("user.crt",encoding='ascii'),
ca: [ fs.readFileSync("ca.pem",encoding='ascii') ],
rejectUnauthorized: false
};
var options = {
tls: ssl,
password:'xxxxxx'
};

var client = redis.createClient([the redis port], '[The redis url]', options);

try {
client.on('connect', function() {
console.log('Connected to Redis');
});
}
catch (e) {
console.log('1' + e)
}
console.log('here')

try{
client.set("foo", "bar", redis.print);
}
catch (e){
console.log('2' + e)
}
try{
client.get("foo", function (err, reply) {
if (err) throw err;
console.log(reply.toString());
});}
catch (e) {
console.log('3' + e)
}

try{
client.on('reconnecting', function() {
console.log('Connected to Redis');
});
}
catch (e) {
console.log('4' + e)
}

Thursday, June 14, 2018

Error when installing electron wallet on windows

The firs step is define the missing elements:
# npm list

npm ERR! peer dep missing: electron-builder-lib@~20.15.0, required by electron-builder-squirrel-windows@20.15.0
then install the missing
# npm install electron-builder-lib

Friday, December 29, 2017

How to mine LBTC - LiteBitcoin by using CPU

Set-up Procedure

# dependencies
 $ sudo apt-get update 
 $ sudo apt-get install git
 $ sudo apt-get install automake
 $ sudo apt-get install gcc
 $ sudo apt-get install g++

 # Compilation dependencies
$ sudo apt-get install libcurl4-openssl-dev
$ sudo apt-get install libssl-dev
  
# Switch to our home directory
$ cd /home/ubuntu/
  
# Download latest source
$ git clone https://github.com/tpruvot/cpuminer-multi
$ cd cpuminer-multi

  
# Compile
~/cpuminer-multi $ ./autogen.sh
~/cpuminer-multi $ ./configure --with-crypto --with-curl
 ~/cpuminer-multi $ make
  
# Test
~/cpuminer-multi $ ./cpuminer --cputest
  
# Run miner
~/cpuminer-multi $ ./cpuminer -a cryptonight -ostratum+tcp://168.235.67.167:3008 -u [Your wallet address] -p x --api-bind 0

# Chek
Here http://168.235.67.167:8081/workers You can search for Your wallet ans see the worker status

Monday, November 20, 2017

Chrome canary want to start

After spending hours to find solutions i'm writing this post.
Chrome canary Version 64.0.3273.3 (Official Build) canary (64-bit) after upgrade want to start at all.
reinstall and window reboot wasn't help.
from debug log the error as following:
[1119/204105.812:ERROR:main_dll_loader_win.cc(134)] Failed to load Chrome DLL from C:\Users\GershonA\AppData\Local\Google\Chrome SxS\Application\64.0.3273.0\chrome.dll: The specified module could not be found. (0x7E)
[1119/204143.885:ERROR:main_dll_loader_win.cc(134)] Failed to load Chrome DLL from C:\Users\GershonA\AppData\Local\Google\Chrome SxS\Application\64.0.3273.0\chrome.dll: The specified module could not be found. (0x7E)
[1119/205239.003:ERROR:main_dll_loader_win.cc(134)] Failed to load Chrome DLL from C:\Users\GershonA\AppData\Local\Google\Chrome SxS\Application\64.0.3273.0\chrome.dll: The specified module could not be found. (0x7E)
[1119/210213.953:ERROR:main_dll_loader_win.cc(134)] Failed to load Chrome DLL from C:\Users\GershonA\AppData\Local\Google\Chrome SxS\Application\64.0.3273.0\chrome.dll: The specified module could not be found. (0x7E)

[1119/224059.389:ERROR:main_dll_loader_win.cc(134)] Failed to load Chrome DLL from C:\Users\GershonA\AppData\Local\Google\Chrome SxS\Application\64.0.3273.0\chrome.dll: The specified module could not be found. (0x7E)

The problem is Windows Defender , after disabling "check apps and file" Chrome canary is started.
But i guess there is more Serious problem , probably malware.

Wednesday, November 18, 2015

Starting up mlog2waffle in "batch" mode, using config file /etc/mlog2waffle.conf Error in HTTP connection: 403 Forbidden


The problem is authentication.
Probably  sensor name has white spaces.
2015-07-09 16_32_26-WAF-FLE

Reduce TIME_WAIT socket connections


Some time in your life you’ll run across an Apache server that always has tons of TIME_WAIT connections just seeming to hang out. While these don’t take up as many resources as an ESTABLISHED connection, why keep them around so long? This short article will show you how to identify how many you have, and how to tell your server to reduce them, reuse and recycle them (see, recycling IS a good thing).
First, SSH into your server and become root.
Next, let’s see how many TIME_WAITs you have hanging out:
You should see something like:
So – let’s get that number smaller.
See what your current values are in these files by catting them to the screen:
If you have default settings, you’ll probably see values of 60, 0 and 0. Let’s change those values to 30, 1, 1.
Now, let’s make the change persistent by adding them to the sysctl.conf file. First however, let’s make sure there aren’t any entries in there yet for these settings.. cat the file and grep for the changes we’re about to make:
Make notes of what your settings are if you had any results..
Now, edit the /etc/sysctl.conf with your favorite editor and add these lines to the end of it (or edit the values you have in yours if they exist already):
Now, let’s rerun that command from before and see where your TIME_WAITs are at:
You may need to wait at least a minute or so (depending on what your old values were) to see a change here.