Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
ERLANG=18.0
SQLITE=amalgamation-3071700
cd /root
SSLV=1.0.1o
[ -f /usr/bin/gcc ] || (apt-get update && apt-get install -y build-essential)
#!/usr/bin/env escript
%%
%%
-mode(compile).
-compile(export_all).
main([Port]) ->
{ok, _} = application:ensure_all_started(ssh),
ERLYVIDEO-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Gauge32, enterprises FROM SNMPv2-SMI
OBJECT-GROUP FROM SNMPv2-CONF
DisplayString FROM SNMPv2-TC;
erlyvideo MODULE-IDENTITY
Found cast extension: boadgeojelhgndaghljhdicfkmllpafd
1e17c9085d81388f6b6271423292e50f37331bce.guerilla.js:4 Uncaught TypeError: Cannot read property '2' of null
app-021a7e7d.js:544 sessionController:onInitSuccess_
1e17c9085d81388f6b6271423292e50f37331bce.guerilla.js:4 Uncaught TypeError: Cannot read property '2' of null
app-021a7e7d.js:544 receiver not found
app-021a7e7d.js:603 receiver status updated not_found
-module(double_gzip).
-compile(export_all).
% curl -v http://localhost:4020/ -H "Accept-Encoding: gzip" gives trash
% curl -v http://localhost:4021/ -H "Accept-Encoding: gzip" is ok
start() ->
{ok,_} = application:ensure_all_started(cowboy),
Dispatch = cowboy_router:compile([
#define __USE_GNU
#define _GNU_SOURCE
#include <pthread.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "erl_nif.h"
#include "frog_draw.h"
-module(map_test1).
-export([main/0]).
-record (r1, {map_data, a = 0}).
main() ->
R1 = #r1{map_data = #{count => 1}},
io:format("Created: ~p~n", [R1]),
R2 = modify(R1),
io:format("Modified: ~p~n", [R2]).
#!/usr/bin/env escript
%! -env ERL_LIBS deps -pa deps/io_libc/ebin
-mode(compile).
main([]) ->
code:add_pathz("deps/io_libc/ebin"),
Time = {{2015,3,21},{17,30,57}},
Count = 100000,
#!/bin/bash
ERLANG=17.4
SQLITE=amalgamation-3071700
cd /root
[ -f /usr/bin/gcc ] || (apt-get update && apt-get install -y build-essential)
[ -f /usr/bin/chrpath ] || apt-get -y install chrpath
2015-02-04 18:33:03 =ERROR REPORT====
OS_MON (memsup) timeout, no data collected
2015-02-04 18:33:03 =ERROR REPORT====
** Generic server memsup terminating
** Last message in was {collected_ext_sys,[{system_total_memory,12590178304},{free_swap,0},{total_swap,0},{cached_memory,422768640},{buffered_memory,3723264},{free_memory,230199296},{total_memory,12590178304}]}
** When Server state == [{data,[{"Timeout",60000000}]},{items,{"Memory Usage",[{"Allocated",12416077824},{"Total",12590178304}]}},{items,{"Worst Memory User",[{"Pid",<0.66.0>},{"Memory",1115016}]}}]
** Reason for termination ==
** {badarg,[{erlang,cancel_timer,[undefined],[]},{memsup,handle_info,2,[{file,"memsup.erl"},{line,471}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,599}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
2015-02-04 18:33:03 =CRASH REPORT====
crasher: