`
derlang
  • 浏览: 35077 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

mini code and tools

阅读更多
on startup:

./.erlang
$HOME/.erlang

From http://mryufeng.iteye.com/blog/pdf
引用
io:format("~s~n", [binary_to_list(erlang:system_info(info))]).
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
ethtool -S eth0
inet:i().
ets:i().
erts_debug:set_internal_state(available_internal_state, true).

slave
pool
erl_boot_server
shell


timer:tc(MFA)

Alg+g
> h

random
timer

%% -define(debug, true).

-ifdef(debug).
-define(INFOMSG(X), error_logger:info_msg("{~p,~p}: ~p~n", [?MODULE, ?LINE, X])).
-else.
-define(INFOMSG(X), true).
-endif.

-ifdef(debug).
-define(LOG(X), io:format("{~p,~p}: ~p~n", [?MODULE,?LINE,X])).
-else.
-define(LOG(X), true).
-endif.

-record(verid,  {id = 0, version = 0}).
-record(diskid, {id = 0, version = 0}).
-record(chkid,  {id = 0, version = 0}).
-record(fileid, {id = 0, version = 0}).

-record(mdp_chkget_req, {
        chkid  = #chkid{} :: #chkid{},
        chkno  = 0        :: integer(),
        chkrep = 0        :: integer(),
        chklen = 0        :: integer()
    }).
-record(mdp_chkget_rep, {
        chkid  = #chkid{} :: #chkid{}, 
        chkrep = 0        :: integer(), 
        disks  = []       :: list()
    }).

-record(mdp_chkload_req, {
        chkid  = #chkid{} :: #chkid{},
        chkno  = 0        :: integer(),
        chkrep = 0        :: integer(),
        chklen = 0        :: integer()
    }).
-record(mdp_chkload_rep, {
        chkid  = #chkid{} :: #chkid{}, 
        chkrep = 0        :: integer(), 
        disks  = []       :: list()
    }).
分享到:
评论

相关推荐

    jHipster.zip

    The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster. ...

    Getting Started with Unity 2018 , 3rd Edition

    Debug code and provide smooth error handling Who This Book Is For If you are an aspiring game developer interested in learning Unity 2018 and becoming familiar with its core features, then this book ...

    Scipy - Scipy Lecture Notes

    Object-oriented programming is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields (often known as attributes or properties), and code...

    Learning Pentaho CTools(2016)(随书代码)

    Being an introductory chapter Chapter 1, Getting Started with CTools andChapter 9: Pentaho App Builder, Chapter 10, Embed, Deploy, and Debugdoes not contain code files. Chapter 1, Getting Started ...

    ng-book The Complete Book on Angular 6

    Imagine how quickly you could work if you knew the best practices and the best tools? Stop wasting your time searching and have everything you need to be productive in one, well-organized place, with...

    Mastering Ionic 2: The Definitive Guide [2017]

    Featuring lots of mini-projects and in-depth resources in an easy to read format you'll build your knowledge and skills in no time and understand why millions of developers worldwide love working with...

    sympy-docs-pdf-1.0.pdf

    This module provides tools for working with Lie algebras and related structures. ##### 5.14 Logic Module Logic is a branch of mathematics that deals with logical reasoning. This module includes ...

    PHP.7.Real.World.Application.Development

    Each module is a mini course in its own right, taking your basic PHP programing skills to the next level by showing you intermediate to advanced PHP techniques with a focus on PHP 7. This way, get you...

    python3.6.5参考手册 chm

    PEP 471 - os.scandir() function – a better and faster directory iterator PEP 475: Retry system calls failing with EINTR PEP 479: Change StopIteration handling inside generators PEP 485: A function...

    VB编程资源大全(英文源码 网络)

    So 下载 the code and get involved with the News Group, help us to help you.<END><br>4 , urllink.zip User control to launch web browser and jump to URL.<END><br>5 , vbftp.zip Sample application ...

    Android 4.0 Compatibility Definition

    The resources section likely contains links to additional documents, guides, and tools that help developers and manufacturers understand and implement the compatibility requirements effectively. ...

    Hi3520D_V100R001C01SPC022

    │ └─uboot_tools ------------------- uboot image creation tools, xls files and the ddr initialization script, bootrom tool ├─toolchain ----------------------------- Tool chain store directory │ ...

    微软内部资料-SQL性能优化5

     Analyze the information collected from various tools.  Formulate resolution to query performance problems. Lesson 1: Index Concepts Indexes are the most useful tool for improving query ...

    MiniSTM32.zip

    5. **烧录工具和固件(Flashing Tools and Firmware)**:如JLink、STM32CubeProgrammer等,用于将源代码烧录到开发板的MCU中。 6. **示例程序(Example Projects)**:演示了STM32的一些基本功能,便于学习和参考。...

    lunch_cb5801_r58_20160907.7z

    给全志R58增加一个lunch为cb5801.txt 开发板:全志R58的官方开发板R58_PER3_LPDDR3_32X1_V1_1.pdf 目标:给全志R58增加一个lunch为cb5801 BSP:r58_20160823.tar.gz(2016/8/22从全志的git服务器拿下来的系统) ...

    lunch_r58_20160906.7z

    给全志R58增加一个lunch为cb5801.txt 开发板:全志R58的官方开发板R58_PER3_LPDDR3_32X1_V1_1.pdf 目标:给全志R58增加一个lunch为cb5801 BSP:r58_20160823.tar.gz(2016/8/22从全志的git服务器拿下来的系统) ...

    vs2010如何修改工程使得应用程序崩溃自动生成dump文件

    - Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 - Debugging Tools for Windows (x86) #### 三、实现步骤 ##### 1. 配置项目 首先,在VS2010中打开或创建一个新的项目,然后进行如下设置: -...

    bpi_a64_android初步编译为LCD显示20170309_1442.7z

    Created filesystem with 2422/131072 inodes and 260574/524288 blocks Install system fs image: out/target/product/bpi-m64-lcd/system.img out/target/product/bpi-m64-lcd/system.img+out/target/product/bpi-...

    ros by example for indigo volume 2

    2. Installing the ros-by-example Code...............................................................3 3. Task Execution using ROS..........................................................................

    Digging into WordPress.pdf

    1.4.4 Text / Code Editor ......................................................................19 1.4.5 FTP Program .............................................................................19 2 ...

Global site tag (gtag.js) - Google Analytics