Skip to content

Instantly share code, notes, and snippets.

View edsoncelio's full-sized avatar
🐧

Edson C. edsoncelio

🐧
View GitHub Profile
@edsoncelio
edsoncelio / jsoncpp_build.md
Last active July 10, 2018 18:11
Build process Json to C++
  1. Clone or download: https://github.com/open-source-parsers/jsoncpp
  2. Create a dir to build inside the JsonCpp dir: mkdir -p build/debug
  3. Change to new directory: cd build/debug
  4. Run Cmake: cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON
    -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ../..
  5. Build:
@edsoncelio
edsoncelio / install.sh
Created July 16, 2018 22:38
Instalação do mono e dotnet no raspberrypi3
#!/bin/bash
#Script para instalação e configuração do Mono no RaspBerryPi3+ Stretch 9
#executar em modo sudo!
#TODO: Permite a instalação do Mono, Mono-Devel e Dotnet
ERROR_LOG = "/tmp/log.dat"
instalar_menu(){
echo "--------------------------------------"
echo "O que deseja instalar?"
@edsoncelio
edsoncelio / Manual de Configuração - Mono e RaspBerryPi 3.md
Created July 21, 2018 00:12
Manual de Configuração - Mono e RaspBerryPi 3

Instalação e Configuração - Mono RaspberryPi 3

Especificações de hardware utilizadas:

  • RaspberryPi 3
  • Raspbian 9 (stretch) - kernel 4.9+

Instalação do mono-dev:

  • sudo apt-get update
  • sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
@edsoncelio
edsoncelio / mac_address.cs
Last active July 25, 2018 13:32
Função para recuperar endereço MAC da interface Wlan0 em c#
public void ShowNetworkInterfaces(Label label_mac)
{
var end_mac="";
IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
//nics[1] eh a interface wlan0, sendo : nics[1] = eth0, nics[2] = wlan0
PhysicalAddress address = nics[2].GetPhysicalAddress();
byte[] bytes = address.GetAddressBytes();
@edsoncelio
edsoncelio / Online Compilers.md
Last active July 30, 2018 13:26
Compiladores Online
@edsoncelio
edsoncelio / DevOps Resources.md
Last active April 11, 2020 16:35
DevOps Resources.md

Additional Resources : Intro to DevOps - Udacity

Notable Books

@edsoncelio
edsoncelio / poadcasts.md
Last active August 18, 2018 00:10
Podcasts DevOps e TI em Geral
@edsoncelio
edsoncelio / search_line.py
Created September 16, 2018 20:19
Finding the n-th line in a file
def search_line(i):
with open("file") as fp:
for index, line in enumerate(fp):
if index == i:
print (line)
@edsoncelio
edsoncelio / golangebooks.md
Last active October 22, 2018 13:19
Some free resources to study Go