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-4.2.11.1/lib/active_support/dependencies.rb:240:in `load_dependency'
duckrails_1 | rake aborted!
duckrails_1 | PG::ConnectionBad: could not connect to server: Connection timed out
function GetUrl() {
param(
[string]$orgUrl,
[hashtable]$header,
[string]$AreaId
)
# 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://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
import requests, hashlib, json
#Recupera texto cifrado e diretrizes de decodificacao
def resgataTextoCifrado():
url = "https://api.codenation.dev/v1/challenge/dev-ps/generate-data"
query = {"token":"c335374e8256c92a323d169944a44c3267ce965a"}
headers = {
'Cache-Control': "no-cache",
'Host': "api.codenation.dev",
}
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://0.0.0.0:80
[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="">
<head>
<title>Fabric</title>
<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="https://www.fabric.io/apple-touch-icon-fabric.png" rel="apple-touch-icon-precomposed" type="image/png" />
<script type="text/javascript">
package br.com.sentinelacriativa.bluetooth_estudo;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:orientation="vertical"
tools:context=".MainActivity">
@renatovieiradesouza
renatovieiradesouza / angular-nativescript-course-setup-ubuntu2.sh
Last active January 28, 2018 01:23 — forked from berardo/angular-nativescript-course-setup-ubuntu2.sh
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: https://udemy.com/angular-native. Be sure you have everything in the 1st script: https://gist.github.com/berardo/80aa074fa870990744bb1ef8829cc0cf
# 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