This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "http://www.ft.com/thing/0f432c22-2223-11e6-9d4d-c11776a5124d", | |
"type": "http://www.ft.com/ontology/content/Article", | |
"bodyXML": "<body><p>Greece’s international creditors have bought time to secure the country’s financial future after agreeing broad but inexact principles to ease its debt mountain and break an impasse between Germany and the <ft-content title=\"IMF urges eurozone to ease Greece’s debt pile with interest cap - FT.com\" type=\"http://www.ft.com/ontology/content/Article\" url=\"http://api.ft.com/content/2bf58684-2102-11e6-9d4d-c11776a5124d\">International Monetary Fund</ft-content>.</p>\n<p>After almost 11 hours of talks in Brussels, eurozone finance ministers and the IMF agreed to a range of measures to restructure <a href=\"http://www.ft.com/indepth/greece-debt-crisis\" title=\"Greece debt crisis in depth - FT.com\">Greece’s debts</a> when its €86bn bailout ends in 2018 — but put no figures on the concessions and left them subject to political decisions by eurozone countries. Mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "http://www.ft.com/thing/5123c256-760f-3f29-a9da-6a3437698f17", | |
"bodyXML": "<body>test helloo again and again and</body>", | |
"publishedDate": "2016-08-03T10:12:02.380Z", | |
"requestUrl": "http://xp-up-read.ft.com/enrichedcontent/5123c256-760f-3f29-a9da-6a3437698f17", | |
"brands": [ | |
"http://api.ft.com/things/dbb0bdae-1f0c-11e4-b0cb-b2227cce2b54" | |
], | |
"apiUrl": "http://xp-up-read.ft.com/enrichedcontent/5123c256-760f-3f29-a9da-6a3437698f17", | |
"types": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type EventLimiter struct { | |
ticker time.Ticker | |
trigger chan bool | |
timePassed chan bool | |
} | |
func NewLimiter() *EventLimiter { | |
ticker := time.NewTicker(60 * time.Second) | |
trigger := make(chan bool, 1) | |
timePassed := make(chan bool, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Csak az a mély és szent igazság, | |
Amit magába rejt a lélek, | |
Idétlen semmi, játszi hívság, | |
Amit leírok, elbeszélek. | |
Rendelteték, hogy néhány ember. | |
Tépődjék, sírjon mindhiába | |
S hogy meg ne értsék... Néhány ember | |
Ezernyi éve így csinálja... | |
Rendelteték, hogy dalba sírja | |
Néhány szegény bolond a lelkét |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.methode.find({"uuid": BinData(4,UUID("5b175a2e47d711e4a7d4002128161462").base64())}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample.stream | |
import akka.actor.ActorSystem | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model.headers.RawHeader | |
import akka.http.scaladsl.server.Route | |
import akka.stream.ActorFlowMaterializer | |
import akka.stream.scaladsl.{Sink, Source} | |
object Proxy extends App { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('SomeController', ['$http', function($http) { | |
var requestA = function () { | |
$http.post('http://incoming.example.com:9000/v1.0/oauth1/request-token', {}) | |
.success(function(data) { | |
... | |
}) | |
.error(function(data, status) { | |
... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# There is insufficient memory for the Java Runtime Environment to continue. | |
# Native memory allocation (mmap) failed to map 715849728 bytes for committing reserved memory. | |
# Possible reasons: | |
# The system is out of physical RAM or swap space | |
# In 32 bit mode, the process size limit was hit | |
# Possible solutions: | |
# Reduce memory load on the system | |
# Increase physical memory or swap space | |
# Check if swap backing store is full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'base64' | |
require 'cgi' | |
require 'openssl' | |
base = 'POST&https%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses%2Fupdate.json&include_entities%3Dtrue%26oauth_consumer_key%3Dxvz1evFS4wEEPTGEFPHBog%26oauth_nonce%3DkYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1318622958%26oauth_token%3D370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb%26oauth_version%3D1.0%26status%3DHello%2520Ladies%2520%252B%2520Gentlemen%252C%2520a%2520signed%2520OAuth%2520request%2521' | |
key = 'kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw&LswwdoUaIvS8ltyTt5jkRh4J50vUPVVHtR2YPi5kE' | |
puts CGI.escape(Base64.encode64("#{OpenSSL::HMAC.digest('sha1', key, base)}\n")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## So this is how i copied a file from src to dest through an Ansible command. | |
ansible -i poc gitlab-servers -m file -a "name=copying src=/home/git/gitlab/lib/support/logrotate/gitlab dest=/etc/logrotate./gitlab mode=0640 owner=root group=git" | |
server | success >> { | |
"changed": false, | |
"path": "copying", | |
"state": "absent" | |
} |