Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Renato Souza renasti

🏠
Working from home
Block or report user

Report or block renasti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View criptografia_desafio
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",
}
View Duckrails
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)
View Fonte Fabric IO
<!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">
View gist:331647130be0c68a38c441768d01196d
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;
View gist:6babe065ae2ba4ea75b060a7ccf50e40
<?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">
@renasti
renasti / angular-nativescript-course-setup-ubuntu2.sh
Last active Jan 28, 2018 — 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
View angular-nativescript-course-setup-ubuntu2.sh
# 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
You can’t perform that action at this time.