Compounding gains are a marvelous thing. Here is a simple script to claim and reinvest your BLD stake.
On your validator machine:
touch ~/reinvest.sh
chmod +x ~/reinvest.sh
vi ~/reinvest.sh
And add the following:
Compounding gains are a marvelous thing. Here is a simple script to claim and reinvest your BLD stake.
On your validator machine:
touch ~/reinvest.sh
chmod +x ~/reinvest.sh
vi ~/reinvest.sh
And add the following:
var http = require('http'), | |
request = require('request'); | |
const geth_node_url = 'https://mainnet.infura.io/v3/<project_id>' | |
const anyblock_api_key = '<api_key>'; | |
var trace_api = [ | |
'trace_call', | |
'trace_callMany', | |
'trace_rawTransaction', |
files: | |
# If this file is edited, it must be removed from EC2 instance prior to deploy. | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn_install.sh" : | |
mode: "000775" | |
owner: root | |
group: users | |
content: | | |
#!/usr/bin/env bash | |
set -xe |
On Tue Oct 27, 2015, history.state.gov began buckling under load, intermittently issuing 500 errors. Nginx's error log was sprinkled with the following errors:
2015/10/27 21:48:36 [crit] 2475#0: accept4() failed (24: Too many open files)
2015/10/27 21:48:36 [alert] 2475#0: *7163915 socket() failed (24: Too many open files) while connecting to upstream...
An article at http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ provided directions that mostly worked. Below are the steps we followed. The steps that diverged from the article's directions are marked with an *.
su
to run ulimit
on the nginx account, use ps aux | grep nginx
to locate nginx's process IDs. Then query each process's file handle limits using cat /proc/pid/limits
(where pid
is the process id retrieved from ps
). (Note: sudo
may be necessary on your system for the cat
command here, depending on your system.)fs.file-max = 70000
to /etc/sysctl.confenum FloatToDate { | |
case Second(Double) | |
case Minute(Double) | |
case Hour(Double) | |
case Day(Double) | |
case Week(Double) | |
case Month(Double) | |
case Year(Double) | |
func ago() -> NSDate { |
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan |
tell application "Notes" | |
set theNotes to every note of the folder "Notes" | |
repeat with thisNote in theNotes | |
set myTitle to the name of thisNote | |
set myText to the body of thisNote | |
set myCreateDate to the creation date of thisNote | |
set myUpdateDate to the modification date of thisNote | |
tell application "Evernote" | |
set theTransferredNote to create note with html myText ¬ | |
title myTitle ¬ |
--- 1.txt 2012-04-06 14:09:33.000000000 -0400 | |
+++ 2.txt 2012-04-06 14:09:45.000000000 -0400 | |
@@ -119,28 +119,35 @@ | |
} | |
//END:progressivelyMigrateURLFindModels | |
//See if we can find a matching destination model | |
//START:progressivelyMigrateURLFindMap | |
NSMappingModel *mappingModel = nil; |
// | |
// NSString+Levenshtein.h | |
// PyHelp | |
// | |
// Modified by Michael Bianco on 12/2/11. | |
// <http://mabblog.com> | |
// | |
// Created by Rick Bourner on Sat Aug 09 2003. | |
// [email protected] |