- Create your bot with botfather
- Make you bot an admin of your channel
Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path
https://web.telegram.org/k/#-9999999999999
There is an issue with openssl < 3.0 and most versions of Erlang
To fix, install openssl into some directory
cd /usr/local/src
sudo mkdir openssl
sudo chown username:staff openssl
cd openssl
git clone git://git.openssl.org/openssl.git
ExUnit.start(auto_run: false) | |
defmodule CalculatorTest do | |
use ExUnit.Case, async: false | |
describe "Testing the addition function" do | |
test "2 plus 3 is 5" do | |
assert 2 + 2 == 5 | |
end | |
end | |
end |
require 'json' | |
require 'net/http' | |
require 'uri' | |
#### USE ############################################################################ | |
# | |
# ruby foursquare_categories.rb MYOAUTHTOKEN > foursquare_categories.md | |
# | |
# or if you have the markdown utility installed | |
# |
// Found in this issue thread https://github.com/jinzhu/gorm/issues/516#issuecomment-109055198 | |
// License unknown | |
// | |
// | |
// Postgres' JSONB type. It's a byte array of already encoded JSON (like json.RawMessage) | |
// which also saves itself correctly to PG's jsonb type. It would probably also work on | |
// PG json types. | |
type JSONB []byte | |
func (j JSONB) Value() (driver.Value, error) { |
[2012-10-22T15:29:32+02:00] INFO: Processing package[ffmpeg] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: package[ffmpeg] installed version 6:0.8.3-6ubuntu2 | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[automake] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[autoconf] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[libtool] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[intltool] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[g++] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[yasm] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[swig] action install (mlt::default line 10) | |
[2012-10-22T15:29:54+02:00] INFO: Processing package[libmp3lame-dev] action install (mlt::default line 10) |
EthMan uses raw TCP/IP connections (not HTTP) for remote management and statistics. Optionally, "psw" field is added to requests is the password for remote management is set for miner. The following commands are available (JSON format):
REQUEST:
{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}
RESPONSE:
defmodule MyApp.Search.SolrClient do | |
require Logger | |
def url, do: Application.get_env(:my_app, :solr)[:url] | |
def select_url(url), do: "#{url}/select" | |
def update_url(url), do: "#{url}/update" | |
def update_json_url(url), do: "#{url}/update/json/docs" | |
def select(params) when is_list(params) do |