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@ip-10-3-6-85 1622112465_ruby-2.6.6]# rvm list | |
ruby-2.6.6 [ x86_64 ] | |
# Default ruby not set. Try 'rvm alias create default <ruby>'. | |
# => - current | |
# =* - current && default | |
# * - default | |
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
import boto3 | |
import subprocess as subprocess | |
from subprocess import Popen, PIPE | |
def jmeter_staging(): | |
args = [ | |
'/bin/bash', '/home/paul.lupu/work/jmeter/reporting_sanity_check_staging.sh' | |
] | |
p = subprocess.Popen(args, stdin=PIPE, stdout=PIPE) |
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
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: [2021-04-05 15:24:59,897] ERROR in app: Exception on /amc [GET] | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: Traceback (most recent call last): | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: File "/var/www/option-sentiment/venv/lib/python3.8/site-packages/urllib3/response.py", line 438, in _error_catcher | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: yield | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: File "/var/www/option-sentiment/venv/lib/python3.8/site-packages/urllib3/response.py", line 767, in read_chunked | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: chunk = self._handle_chunk(amt) | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: File "/var/www/option-sentiment/venv/lib/python3.8/site-packages/urllib3/response.py", line 720, in _handle_chunk | |
Apr 05 15:24:59 ip-172-31-32-109 optionsentiment.service[9058]: returned_chunk |
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
html loader error | |
================= | |
Created vineri 02 aprilie 2021 | |
[2021-04-01 23:40:56,962] ERROR in app: Exception on /gme [GET] | |
Traceback (most recent call last): | |
File "/var/www/option-sentiment/venv/lib/python3.7/site-packages/urllib3/response.py", line 697, in _update_chunk_length | |
self.chunk_left = int(line, 16) | |
ValueError: invalid literal for int() with base 16: b'' |
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
>>> requests.get("https://api.nasdaq.com/api/quote/gme/option-chain/greeks?assetclass=stocks&date=2021-04-01", headers = {"Connection": "keep-alive","Accept-Encoding": "gzip, deflate, br","Accept": "*/*","User-Agent": "PostmanRuntime/7.26.8","Cache-Control": "no-cache","Scheme": "https","Host": "api.nasdaq.com","Filename": "/api/quote/gme/option-chain/greeks","Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8","Accept-Language": "en-US,en;q=0.5","Connection":"keep-alive","Cookie": "recentlyViewedList=GE|Stocks,TSLA|Stocks,API|Stocks,GME|Stocks","Upgrade-Insecure-Requests": "1"}) | |
<Response [200]> | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
this works | |
>>> url = "https://api.nasdaq.com/api/quote/gme/option-chain/greeks?assetclass=stocks&date=2021-04-01" | |
>>> headers = {"Connection": "keep-alive","Accept-Encoding": "gzip, deflate, br","Accept": "*/*","User-Agent": "PostmanRuntime/7.26.8","Cache-Control": "no-cache","Scheme": "https","Host": "api.nasdaq.com","Filename": "/api/quote/ |
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
> nuxt build | |
ℹ Production build 19:28:11 | |
✔ Builder initialized 19:28:11 | |
✔ Nuxt files generated 19:28:11 | |
✔ Client | |
Compiled successfully in 42.51s | |
✔ Server |
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
google-site-verification=7li8UZvgEwVxGkMk68dgA4Vlqv_FJ9ThXUXK5hkmC7M |
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
import requests | |
import os | |
HEROKU_APP=os.environ['HEROKU_APP'] | |
HEROKU_API_KEY=os.environ['HEROKU_API_KEY'] | |
### scale up our application to 4 dynos | |
url = 'https://api.heroku.com/apps/'+HEROKU_APP+'/formation' | |
head = {"Content-Type": "application/json", "Accept": "application/vnd.heroku+json; version=3", "Authorization": "Bearer "+HEROKU_API_KEY} | |
payload = { "updates": [ { "quantity": 4, "type": "web" } ]} |
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
import requests | |
import os | |
HEROKU_APP=os.environ['HEROKU_APP'] | |
HEROKU_API_KEY=os.environ['HEROKU_API_KEY'] | |
### scale up our application to 4 dynos | |
url = 'https://api.heroku.com/apps/'+HEROKU_APP+'/formation' | |
head = {"Content-Type": "application/json", "Accept": "application/vnd.heroku+json; version=3", "Authorization": "Bearer "+HEROKU_API_KEY} | |
payload = { "updates": [ { "quantity": 4, "type": "web" } ]} |
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@jenkins01:~/ansible_ami_builder# cat playbook.yaml | |
# AWS Playbook | |
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: False | |
vars: | |
key_name: troc-ec2-key |
NewerOlder