Skip to content

Instantly share code, notes, and snippets.

View edsoncelio's full-sized avatar
🐧

Edson C. edsoncelio

🐧
View GitHub Profile
@edsoncelio
edsoncelio / gitlab-ci.yml
Created March 19, 2019 12:56
Configuração para integração Gitlab + Source Repository do GCP
image: docker:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
stages:
- update_mirror
google_source:
image: google/cloud-sdk
stage: update_mirror
@edsoncelio
edsoncelio / propose_cprLATAM2018.md
Last active December 29, 2018 12:26
Ideias de propostas para o CPR LATAM 2018: https://www.cprlatam.org/convocatoria-por/

Possíveis áreas

  • Governança da Internet
  • Automatização e futuro do trabalho
  • Internet das Coisas

Possíveis temas

Referências

@edsoncelio
edsoncelio / hperv
Created October 25, 2018 12:55
Enabling hyper v at windows 10 with power shell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
@edsoncelio
edsoncelio / golangebooks.md
Last active October 22, 2018 13:19
Some free resources to study Go
@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 / poadcasts.md
Last active August 18, 2018 00:10
Podcasts DevOps e TI em Geral
@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 / Online Compilers.md
Last active July 30, 2018 13:26
Compiladores Online
@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();