Skip to content

Instantly share code, notes, and snippets.

@luizomf
luizomf / ambiente-dev-ubuntu.sh
Last active April 15, 2025 20:59
Ambiente de desenvolvimento Python no Ubuntu - Com VS Code, Google Chrome, ZSH, Oh-my-zsh, zsh-syntax-highlighting, zsh-autosuggestions e spaceship prompt.
#!/bin/bash
# Executar comandos a seguir para atualizar os pacotes
sudo apt update -y
sudo apt upgrade -y
# Só o Python
sudo apt install python3.10-full python3.10-dev -y
# Instalar pacotes a seguir
@souzagustavo
souzagustavo / XmlSerializerFromClass.cs
Last active August 31, 2018 15:16
C# - XmlSerialize from class and remove default namespaces
XmlSerializer serializer = new XmlSerializer(typeof(MetadataFile));
MemoryStream memoryStream = new MemoryStream();
//Configuration remove tag omit-xml-declaration
XmlWriterSettings settings = new XmlWriterSettings();
settings.OmitXmlDeclaration = true;
XmlWriter writer = XmlWriter.Create(memoryStream, settings);
//Remove namespace
StringWriter stringWriter = new StringWriter();