yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit
wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
tar xfz tsung-1.6.0.tar.gz
cd tsung-1.6.0
./configure && make && make install
mkdir /root/.tsung
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
const express = require('express'); | |
const { Pool } = require('pg'); | |
const app = express(); | |
const port = 3000; | |
const pool = new Pool({ | |
host: 'localhost', | |
user: 'project_rewards', | |
password: 'project_rewards', |
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
#!/bin/bash | |
# Check if Redis CLI is installed | |
if ! command -v redis-cli &> /dev/null | |
then | |
echo "redis-cli could not be found, please install it first" | |
exit | |
fi | |
# Infinite loop to ping Redis |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
# MAPPING created using DRF function | |
# https://github.com/encode/django-rest-framework/blob/master/rest_framework/schemas/generators.py#L72 | |
# from rest_framework.schemas.generators import EndpointEnumerator | |
# EndpointEnumerator().get_api_endpoints() | |
# Input | |
MAPPING = { | |
"urn:app:api": [ | |
"/api/v2/user/{id}", | |
"/api/v2/followers/{user_id}", |
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
[root@cls-ebizu ~]# scrapy shell "http://www.focus.de/sport/formel1/michael-schumacher-in-schumachers-abwesenheit-ausstellung-zur-formel-1-karriere-eroeffnet_id_5286608.html" | |
2016-03-03 17:52:54 [scrapy] INFO: Scrapy 1.0.5 started (bot: scrapybot) | |
2016-03-03 17:52:54 [scrapy] INFO: Optional features available: ssl, http11, boto | |
2016-03-03 17:52:54 [scrapy] INFO: Overridden settings: {'LOGSTATS_INTERVAL': 0, 'DUPEFILTER_CLASS': 'scrapy.dupefilters.BaseDupeFilter'} | |
2016-03-03 17:52:55 [scrapy] INFO: Enabled extensions: CloseSpider, TelnetConsole, CoreStats, SpiderState | |
2016-03-03 17:52:55 [boto] DEBUG: Retrieving credentials from metadata server. | |
2016-03-03 17:52:55 [boto] ERROR: Caught exception reading instance data | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/boto/utils.py", line 210, in retry_url | |
r = opener.open(req, timeout=timeout) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Simple Bot to reply to Telegram messages. | |
This program is dedicated to the public domain under the CC0 license. | |
This Bot uses the Updater class to handle the bot. | |
First, a few handler functions are defined. Then, those functions are passed to | |
the Dispatcher and registered at their respective places. | |
Then, the bot is started and runs until we press Ctrl-C on the command line. | |
Usage: |
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
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; | |
namespace ConsoleApp | |
{ | |
class Program | |
{ | |
static string Domain = "serverless.id"; |
NewerOlder