Instance | Branch |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static java.util.List<FileItem> listDirectoryAppend(File dir, java.util.List<FileItem> lista) { | |
if (dir.isDirectory()) { | |
String[] filhos = dir.list(); | |
for (int i = 0; i < filhos.length; i++) { | |
File nome = new File(dir, filhos[i]); | |
if (nome.isFile()) { | |
if (nome.getName().toUpperCase().endsWith(".GBK")) { | |
lista.add(new FileItem(nome)); | |
} | |
} else if (nome.isDirectory()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
The Plist file above is located at ~/Library/Preferences/com.googlecode.iterm2.plist but the file is binary and not XML.
To edit and replace the XML I recommend using Visual Studio Code with the extension Binary Plist
.
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=dnicolson.binary-plist
The steps bellow are not needed if the settings file is replaced.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |