Skip to content

Instantly share code, notes, and snippets.

View marceloboeira's full-sized avatar
🤙
Making things boring

MB marceloboeira

🤙
Making things boring
View GitHub Profile
from numpy import *
meshes = input("Number of meshes: ")
voltage = zeros(meshes)
resistence = zeros((meshes, meshes))
for i in range(meshes):
voltage[i] = input("Voltage of mesh %d: " % i)
resistence[i][i] = input("Resistence of mesh %d: " % i)
require "socket"
class Server
def self.start
server = TCPServer.new("localhost", 5000)
server.recv_buffer_size = 4096
data = Hash(String, String).new
loop do
socket = server.accept
@marceloboeira
marceloboeira / datadog-agent.yml
Created April 5, 2018 18:08
DataDog Kubernetes Daemonset with APM Agent, Logs enabled and a custom config.
---
apiVersion: v1
kind: ConfigMap
metadata:
name: datadog
namespace: kube-system
data:
default-config: |-
# Autodiscovery
listeners:
"images": [
{
"id": "bffdcdd6b5a4bb7ed436a0e256260f58",
"contentType": "image\/jpeg",
"url": "https:\/\/cdn.hey.car\/images\/cas\/bffdcdd6b5a4bb7ed436a0e256260f58\/original.jpg",
"state": "CREATED",
"classes": {
"no_banner": 7.538352e-5,
"banner": 0.99992466
}
Welcome to my GitHub Profile
Articles ➡️
Pet Projects ↘️
OSS Contributions ⬇️
@marceloboeira
marceloboeira / A.txt
Last active March 31, 2019 08:56
MORE.txt
Latest Article - http://bit.ly/2FNDzu5
Open the Gist for More

Keybase proof

I hereby claim:

  • I am marceloboeira on github.
  • I am marceloboeira (https://keybase.io/marceloboeira) on keybase.
  • I have a public key whose fingerprint is E01A CDEA 9224 AB68 3048 D476 09B8 37C3 34E9 9578

To claim this, I am signing this object: