Skip to content

Instantly share code, notes, and snippets.

View renatovieiradesouza's full-sized avatar
Working from home

Renato Souza renatovieiradesouza

Working from home
View GitHub Profile
Attaching to ubuntu_duckrails_1
duckrails_1 | WARNING: Environment variable SECRET_KEY_BASE has not been set - Setting a random SECRET_KEY_BASE
duckrails_1 | The PGconn, PGresult, and PGError constants are deprecated, and will be
duckrails_1 | removed as of version 1.0.
duckrails_1 |
duckrails_1 | You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
duckrails_1 |
duckrails_1 | Called from /opt/duckrails/vendor/bundle/ruby/2.4.0/gems/activesupport- `load_dependency'
duckrails_1 | rake aborted!
duckrails_1 | PG::ConnectionBad: could not connect to server: Connection timed out
function GetUrl() {
# Build the URL for calling the org-level Resource Areas REST API for the RM APIs
$orgResourceAreasUrl = [string]::Format("{0}/_apis/resourceAreas/{1}?api-preview=5.0-preview.1", $orgUrl, $AreaId)
sudo yum install -y git gcc make readline-devel openssl-devel
git clone git:// ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone ~/.rbenv/plugins/ruby-build
rbenv install -l
import requests, hashlib, json
#Recupera texto cifrado e diretrizes de decodificacao
def resgataTextoCifrado():
url = ""
query = {"token":"c335374e8256c92a323d169944a44c3267ce965a"}
headers = {
'Cache-Control': "no-cache",
'Host': "",
mesg: ttyname failed: Inappropriate ioctl for device
[1] Puma starting in cluster mode...
[1] * Version 3.10.0 (ruby 2.4.2-p198), codename: Russell's Teapot
[1] * Min threads: 0, max threads: 16
[1] * Environment: development
[1] * Process workers: 3
[1] * Phased restart available
[1] * Listening on tcp://
[1] Use Ctrl-C to stop
/opt/duckrails/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:501:in `table_structure': Could not find table 'mocks' (ActiveRecord::StatementInvalid)
<!DOCTYPE html>
<html class="">
<link rel="shortcut icon" href="/fabric.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="" rel="apple-touch-icon-precomposed" type="image/png" />
<script type="text/javascript">
import android.Manifest;
import android.content.Context;
import android.content.Intent;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=""
renatovieiradesouza /
Last active January 28, 2018 01:23 — forked from berardo/
2nd script to install all good tools on a fresh new Linux machine. The main reason for this file is to be used on my online course: Be sure you have everything in the 1st script:
# Java
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install java-common oracle-java8-installer
# sudo update-alternatives --config java
sudo apt-get install oracle-java8-set-default
echo "export JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: *\(.*\)\/bin\/javac/\1/p')" >> ~/.zshrc
source ~/.zshrc