Skip to content

Instantly share code, notes, and snippets.

View arthurbarros's full-sized avatar
🏠
Working from home

arthur arthurbarros

🏠
Working from home
View GitHub Profile
<?php
// $wordlist, acho que e a lista do challange anterior que retornou uma porrada de conteudo
$cookie_data = 'ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw'
function xor_encrypt($in, $key) {
# $key = '<censored>';
$text = $in;
$outText = '';
@arthurbarros
arthurbarros / docker-create-swarm.sh
Created March 29, 2016 03:22 — forked from lukemadera/docker-create-swarm.sh
jwilder/nginx-proxy using Compose + Swarm + Machine attempt 1
#!/bin/bash
set -e
if [ -z "$DIGITALOCEAN_ACCESS_TOKEN" ]; then
echo >&2 "ERROR: You must export DIGITALOCEAN_ACCESS_TOKEN"
exit 1
fi
docker pull swarm > /dev/null
@arthurbarros
arthurbarros / nginx.conf
Created May 11, 2016 03:38 — forked from atma/nginx.conf
Nginx + nodejs + socket.io websockets
# Add to nginx.conf http section
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
@arthurbarros
arthurbarros / screen-crash-course.md
Created January 24, 2017 17:24 — forked from andrewsardone/screen-crash-course.md
GNU Screen Crash Course

GNU Screen Crash Course

Introduction

A real quick GNU screen crash course with the key features I use.

man screen

  • Emulates terminals in a full-screen window manager
  • Detachable, so shell sessions aren't attached to a login process
@arthurbarros
arthurbarros / app.css
Created February 12, 2017 21:43 — forked from koba04/app.css
socket.io chat sample by vue.js http://socket.io/get-started/chat/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font: 13px Helvetica, Arial;
}
@arthurbarros
arthurbarros / extract_frame.sh
Created June 22, 2017 20:04
Extract a single frame from a live stream
ffmpeg -v 0 -y -i "http://calertahls-lh.akamaihd.net/i/calertahls_1@167570/master.m3u8" -vframes 1 img/output.jpeg
@arthurbarros
arthurbarros / Anomaly Detection using Gaussian Distribution.ipynb
Last active July 27, 2017 23:13
Anomaly Detection with sklearn using Guassian Distribution #MachineLearning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arthurbarros
arthurbarros / churn-keras-model.ipynb
Created July 31, 2017 20:56
How to build a simple Keras model with Tensorflow backend
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
whitelist = []
def add_user_whitelist(user_id):
whitelist.append(user_id)
add_user_whitelist(12345678000)
@arthurbarros
arthurbarros / app.py
Last active March 22, 2018 20:27
Get all votes from the current day from CryptoPanic for a given currency
import requests
def get_url(url, news):
res = requests.get(url)
for new in res.json()['results']:
news.append(new)
if res.json()['next']:
news = get_url(res.json()['next'], news)
return news