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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Dec 21 10:32:59 2017 | |
@author: yitzhak.andrade | |
Extrair as intenções identificadas e os textos digitados pelos usuários e exportar para uma planilha. | |
""" |
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
######################################################## | |
# Diretórios | |
# https://www.howtogeek.com/117435/htg-explains-the-linux-directory-structure-explained/ | |
######################################################## | |
/ Diretório "root" onde tudo está localizado | |
/bin Binários essenciais (programas) dos usuários | |
/boot Arquivos binários do Kernel e boot do sistema | |
/dev Dispositivos. Pendrives, HDs, CD-Room, ... | |
/etc Arquivos de configuraçã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
protected void Application_Error(object sender, EventArgs e) | |
{ | |
// Get the exception object. | |
Exception ex = Server.GetLastError(); | |
// Log the exception and notify system operators | |
Logger.GravarLogErro(ex); | |
// Em modo debug, deixa estourar a exceção na tela | |
CompilationSection compilationSection = (CompilationSection)ConfigurationManager.GetSection(@"system.web/compilation"); |
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 | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
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 node:8 | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
# where available (npm@5+) | |
COPY package*.json ./ |
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
OUTFILE=output_$(date +"%Y-%m-%d_%H-%m-%S").json | |
while read PROXY; do | |
IP=$(curl -x $PROXY -s https://api.ipstack.com/check?access_key={enter_your_ipstack_access_key_here}) | |
echo $IP >> $OUTFILE | |
printf "\n" >> $OUTFILE | |
done <proxies.txt |
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
SELECT SQL_CALC_FOUND_ROWS * FROM [...]; | |
SELECT FOUND_ROWS(); |
Página de download: https://sourceforge.net/projects/cntlm/files/
- Após a instalação, vá até a pasta em que o software foi instalado (normalmente
C:\Program Files (x86)\Cntlm\
). - Segure o
Shift
e clique com o botão direto em uma área em branco dentro da pasta, e selecione a opçãoAbrir janela de comando aqui
. - No prompt de comando que será aberto, digite
cntlm -H
. Será pedido sua senha, entre com a senha do Windows (usuário de rede) e tecle enter. - Será gerado alguns parâmetros como o trecho abaixo:
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
pactl set-source-mute 1 toggle | |
amixer get Capture | grep '\[off\]' && \ | |
(notify-send -t 200 -a vim "MIC switched OFF" && paplay ~/Documents/Custom\ Scripts/mic-toggle/sfx-off.ogg) || \ | |
(notify-send -t 200 -a vim "MIC switched ON" && paplay ~/Documents/Custom\ Scripts/mic-toggle/sfx-on.ogg) |