- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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 class Radix { | |
public static int[] lista = { 110, 420, 565, 986, 101, 622, 383, 74, 233, 857 }; //Lista desordenada que utilizaremos. | |
public static int dec = 3; //Número máximo de cada numero inteiro. Pra não ficar infinito. | |
/** | |
* | |
* Método Main, método principal onde roda a aplicação. | |
* |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>SMbiosdate</key> | |
<string>09/04/2012</string> | |
<key>SMbiosvendor</key> | |
<string>Apple Inc.</string> | |
<key>SMbiosversion</key> | |
<string>IM131.88Z.010A.B00.1209042338</string> |
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
#Atualizar a Lista de repositórios. | |
sudo apt-get update | |
#Atualizar toda Distro. | |
sudo apt-get -f dist-upgrade ou update-manager -d -c | |
#Atualizar Pacotes. | |
sudo apt-get upgrade | |
#Procurar arquivos corrompidos. |
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 | |
## Instalação do Samba. | |
apt-get install -y samba samba-common python-glade2 system-config-samba | |
## Backup do arquivo de configuação padrão e download das configurações pré-definidas em laboratório. | |
cd /etc/samba | |
mv smb.conf smb.conf.bak | |
wget --no-cache https://gist.githubusercontent.com/marcelocmenezes/e40671c3eb0145ebfc1afb44a6c7c18b/raw/106b91ac6ed87d0b5d8bb13c6793b6c27150cc02/smb.conf |
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
# Cron de Backup de Segunda-Feira à Sexta-Feira | |
0 22 * * 1-5 root /backup/script |
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
## Script de backup | |
## Backup completo e compactado | |
## Parâmetros de entrada "script caminho destino" | |
## Definindo variáveis. | |
Write-Host "Definindo variáveis..." | |
$Day = Get-Date -UFormat "%a" | |
$BackUpName = Get-Date -UFormat "%a_%Y%m%d.7z" | |
$Source = $args[0] | |
$Target = $args[1] |
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
# apt-get update | |
# apt-get install libcurl4-openssl-dev git build-essential autotools-dev autoconf | |
# apt-get install libcurl3 libcurl4-gnutls-dev | |
# mkdir /Downloads | |
# cd /Downloads | |
# git clone https://github.com/wolf9466/cpuminer-multi | |
# cd cpuminer-multi | |
# ./autogen.sh |
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/sh | |
# inpath - verify that a specified program is either valid as-is, | |
# or can be found in the PATH directory list. | |
if [ -d '~/www' ]; then | |
echo -e "Excluindo arquivos antigos." | |
rm -R ~/www | |
fi | |
echo -e "Clonando projeto do repositorio remoto" | |
git clone git@bitbucket.org:jurosbaixo/api-juros-baixos.git ~/www |
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
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress | |
volumes: | |
- ./wp-content:/var/www/html/wp-content | |
restart: always | |
ports: |
OlderNewer