Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Alper Alimoglu avatar-lavventura

🎯
Focusing
Block or report user

Report or block avatar-lavventura

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View custom.json
{
"config": {
"chainId": 23422,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
View mpirun_error
--------------------------------------------------------------------------
A daemon (pid unknown) died unexpectedly with status 1 while attempting
to launch so we are aborting.
There may be more information reported by the environment (see above).
This may be because the daemon was unable to find all the needed shared
libraries on the remote node. You may set your LD_LIBRARY_PATH to have the
location of the shared libraries on the remote nodes and this will
automatically be forwarded to the remote nodes.
View runSlurm.sh
#!/bin/bash
# |
# To Run: sudo bash runSlurm.sh|
#--------------------------------
if [ "$EUID" -ne 0 ]
then echo "Please run as root."
exit
fi
View solc_24
[~]$ brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/9599ce8371d9de039988f89ed577460e58a0f56a/solidity.rb
######################################################################## 100.0%
Warning: solidity 0.5.0 is available and more recent than version 0.4.24.
==> Downloading https://github.com/ethereum/solidity/releases/download/v0.4.24/solidity_0.4.24.tar.gz
Already downloaded: /Users/alper/Library/Caches/Homebrew/downloads/901e9d034f6a2c114bcf56b7d1d3c73cc05b1890a43928baf3706ebddc1ca66f--solidity_0.4.24.tar.gz
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/l
==> make install
Last 15 lines from /Users/alper/Library/Logs/Homebrew/solidity/02.make:
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:792:5: note: candidate constructor not viable: requires 3 arguments, but 1 was provided
View performance_output
Performance counter stats for './getDeployedBlockNumber.py':
1452.607792 task-clock (msec) # 0.997 CPUs utilized
327 context-switches # 0.225 K/sec
147 cpu-migrations # 0.101 K/sec
35,548 page-faults # 0.024 M/sec
2,254,593,107 cycles # 1.552 GHz [26.64%]
<not supported> stalled-cycles-frontend
<not supported> stalled-cycles-backend
1,652,281,933 instructions # 0.73 insns per cycle [38.87%]
View gist:b504b008aec3a037f22c664dd5c9e555
import pytest
def test_receipt(web3, accounts, chain): #{
web3._requestManager = web3.manager
global blkArrayIndex;
global runTime;
import testrpc.client
testrpc.client.client.DEFAULT_GAS_LIMIT = 8000000
my_contract, _ = chain.provider.get_or_deploy_contract('eBlocBroker', deploy_transaction={"gas": 4000001})
View slurmctldLog
slurmctld: debug2: Processing RPC: REQUEST_SUBMIT_BATCH_JOB from uid=1003
slurmctld: debug3: JobDesc: user_id=1006 job_id=N/A partition=(null) name=run.sh
slurmctld: debug3: cpus=1-4294967294 pn_min_cpus=-1 core_spec=-1
slurmctld: debug3: Nodes=4294967294-[4294967294] Sock/Node=65534 Core/Sock=65534 Thread/Core=65534
slurmctld: debug3: pn_min_memory_job=-1 pn_min_tmp_disk=-1
slurmctld: debug3: immediate=0 features=(null) reservation=(null)
slurmctld: debug3: req_nodes=(null) exc_nodes=(null) gres=(null)
slurmctld: debug3: time_limit=-1--1 priority=-1 contiguous=0 shared=-1
slurmctld: debug3: kill_on_node_fail=-1 script=#!/bin/bash
#SBATCH -o slurm.out ...
View sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
View small example
llIndex[0x0] = 0x0
add(0x12345){
llIndex[0x12345] => 0
llIndex[0x0] => 0x12345
}
Then
add(0x6789){
llIndex[0x6789] => 0x12345
You can’t perform that action at this time.