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 | |
pasta_raiz=$(basename "$(pwd)") | |
echo "Pasta raiz: $pasta_raiz" | |
echo "Selecione a pasta atual (pasta dentro de $pasta_raiz):" | |
select pasta_atual in */; do | |
pasta_atual=${pasta_atual%/} # Remove a barra do final | |
break | |
done |
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
[Desktop Entry] | |
Type=Application | |
Exec=script.sh | |
Icon=icon.png | |
Name=Name Application | |
GenericName=Application | |
Categories=Categoria; |
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
[Desktop Entry] | |
Type=Application | |
Exec=script.sh | |
Icon=icon.png | |
Name=Name Application | |
GenericName=Application | |
Categories=Categoria; |
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
syntax enable | |
set number | |
set ts=4 | |
set autoindent | |
set expandtab |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<meta charset="utf-8"> | |
<title id="app">{{nameApp}}</title> | |
</head> | |
<body> | |
<div id="alunosApp"> | |
<form> |
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
from pymongo import MongoClient | |
from time import strftime | |
#model for post | |
post = { | |
"title":"Title of Post", | |
"content":"Content of posts. Text, test. I need Work!!!", | |
"author":"Tiago Vizoto", | |
"date": strftime('%Y-%m-%D') | |
} |
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 | |
read -p "Digite o caminho do arquivo: " CAMINHO | |
while [ 1 = 1 ] | |
do | |
DATA=$(date) | |
if [ "$(cat $CAMINHO | wc -l)" -ge 50 ] | |
then | |
echo " $DATA O Arquivo $CAMINHO passou de 50 linhas">>/home/mago/linhas.log |
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 | |
read -p "Digite o caminho do arquivo: " CAMINHO | |
while [ 1 = 1 ] | |
do | |
DATA=$(date) | |
if [ "$(du -s $CAMINHO | cut -f1)" -ge 10000 ] | |
then | |
echo " $DATA O Diretorio $CAMINHO passou dos 10M">>/home/mago/trabalho.log |
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
class Deque: | |
def __init__(self): | |
self.len=0 | |
self.deque = [] | |
def empty(self): | |
if self.len == 0: | |
return True | |
return False |
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
class Fila: | |
def __init__(self): | |
self.fila = [] | |
self.tamanho_fila = 0 | |
def push(self, e): | |
self.fila.append(e) | |
self.tamanho_fila +=1 | |
def pop(self): |
NewerOlder