- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| namespace :db do | |
| require 'sequel' | |
| Sequel.extension(:migration) | |
| MIGRATIONS_PATH = 'db/migrations' | |
| def db_conn_env | |
| ENV["BOOKSHELF_DATABASE_URL"] | |
| end |
| {% set x_count = parameters.x_count %} | |
| {% set y_count = parameters.y_count %} | |
| {% set x_step = printer_profile.volume.width / (x_count - 1) %} | |
| {% set y_step = printer_profile.volume.depth / (y_count - 1) %} | |
| {% set zhop = parameters.z_hop %} | |
| {% set speed = parameters.travel_speed %} | |
| {% set speed_z = parameters.z_speed %} | |
| {% set pos_X = 0 %} | |
| {% set pos_Y = 0 %} | |
| M117 run {{ script.name }} |
RubyConf 2014 - Build the Unified Logging Layer with Fluentd and Ruby by Kiyoto Tamura
Fluentd is a data collector written in Ruby to solve this problem. Unlike other log management tools that are designed for a single backend system, Fluentd aims to connect many input sources into several output systems.
This talk surveys Fluentd's architecture and shows real-world use cases of how different users extend it to do more with their logs with less code.
Skynet Project – monitor, scale and auto-heal a system in the Cloud
| # Elixir has pipes `|>`. Let's try to implement those in Ruby. | |
| # | |
| # I want to write this: | |
| # | |
| # email.body | RemoveSignature | HighlightMentions | :html_safe | |
| # | |
| # instead of: | |
| # | |
| # HighlightMentions.call(RemoveSignature.call(email.body)).html_safe | |
| # |
| ! clean most of the modifiers | |
| clear control | |
| clear mod4 | |
| clear mod1 | |
| ! gt, lt | |
| keycode 49 = less greater less greater bar brokenbar bar | |
| keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032 | |
| ! ----------------- |
| #!/bin/zsh | |
| # | |
| # Highlight a given file and copy it as RTF. | |
| # | |
| # Simon Olofsson <[email protected]> | |
| # | |
| set -o errexit | |
| set -o nounset |
| (ns autores.core | |
| (:require [clojure.pprint :as pp] | |
| [net.cgrand.enlive-html :as en] | |
| [clojure.string :as str]) | |
| (:import [java.net URL])) | |
| (defn- get-links [url] | |
| (let [links (-> url | |
| URL. | |
| en/html-resource |