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

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:

@marceloboeira
marceloboeira / A.txt
Last active March 31, 2019 08:56
MORE.txt
Latest Article - http://bit.ly/2FNDzu5
Open the Gist for More
Welcome to my GitHub Profile
Articles ➡️
Pet Projects ↘️
OSS Contributions ⬇️
"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
}
@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:
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
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)
linux-vdso.so.1 => (0x00007fffaa1fe000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff84e1f7000)
libunrar.so => ./libunrar.so (0x00007ff84e0bf000)
libmfcbr.so => ./libmfcbr.so (0x00007ff84dd8b000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff84da85000)
libcurl.so.3 => /usr/lib/x86_64-linux-gnu/libcurl.so.3 (0x00007ff84d81e000)
libid3-3.8.so.3 => ./libid3-3.8.so.3 (0x00007ff84d6dc000)
libpq.so.5 => not found
libavcore.so.0 => ./libavcore.so.0 (0x00007ff84d5d9000)
libavformat.so.52 => ./libavformat.so.52 (0x00007ff84d426000)
#!/bin/bash
export THEOS=/opt/theos
# clone theos.git
cd /opt
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd $THEOS
mv include include.bak
alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'"
# enable the git bash completion commands
source ~/.git-completion.bash
# enable git unstaged indicators - set to a non-empty value
GIT_PS1_SHOWDIRTYSTATE="."
# enable showing of untracked files - set to a non-empty value
GIT_PS1_SHOWUNTRACKEDFILES="."