This file contains hidden or 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) |
This file contains hidden or 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(); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Show hidden characters
{ | |
"font_face": "Fira Code", | |
"font_size": 13, | |
"theme": "Material-Theme-Darker.sublime-theme", | |
"color_scheme": "Monokai.sublime-color-scheme", | |
"always_show_minimap_viewport" : true, | |
"bold_folder_labels" : true, | |
"font_options" : ["gray_antialias", "subpixel_antialias"], // On retina Mac & Windows |
This file contains hidden or 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 hidden or 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. | |
""" |