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
# source: https://superuser.com/a/1676775/91564 | |
# - só devem ser executados após alterar o mount no /etc/wsl.conf | |
# - e reiniciar o Ubuntu | |
# (wsl --terminate Ubuntu; wsl --list --verbose) | |
# checar se terminou e iniciar | |
cd ~ # ir até pasta do usuário | |
mv .ssh .ssh_orig # fazer backup do conteúdo atual | |
ln -s /mnt/c/Users/<user>/.ssh/ .ssh # criar um link da pasta do usuário atual do windows dentro do WSL |
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
function Get-DiskInfo { | |
<# | |
.SYNOPSIS | |
Obtém informações detalhadas sobre discos e volumes com opções de filtro | |
.PARAMETER Letter | |
Filtra por letra(s) de unidade específica(s) (ex: "C", "D,E,F") | |
.PARAMETER Name | |
Filtra discos pelo nome/modelo contendo o texto especificado (case-insensitive) |
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
function Get-DiskInfo { | |
<# | |
.SYNOPSIS | |
Obtém informações detalhadas sobre discos e volumes com opções de filtro | |
.PARAMETER Letter | |
Filtra por letra(s) de unidade específica(s) (ex: "C", "D,E,F") | |
.PARAMETER Name | |
Filtra discos pelo nome/modelo contendo o texto especificado (case-insensitive) |
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
param ( | |
[int]$QuantidadeNumeros = 6, # Quantidade de números a serem sorteados (padrão: 6) | |
[int]$Minimo = 1, # Valor mínimo do número (padrão: 1) | |
[int]$Maximo = 60, # Valor máximo do número (padrão: 60) | |
[int]$TempoPorNumero = 3, # Tempo de sorteio por número em segundos (padrão: 3) | |
[int]$Intervalo = 100 # Intervalo entre as atualizações em milissegundos (padrão: 100) | |
) | |
function Simular-Sorteio { | |
param ( |
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 | |
# Wake-On-LAN Utility with Enhanced Features | |
# Project homepage: https://leesteve.tk/wol.sh | |
# Version 0.3 (Improved) | |
# MIT License | |
# CHANGELOG | |
# 0.3 - 2025-02-04: - adicionado campo de descrição para o arquivo | |
# 0.2 - 2025-01-27: - opção de arquivo como input |
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 | |
##name: site-status.sh | |
FAIL_CODE=6 | |
check_status(){ | |
LRED="\033[1;31m" # Light Red | |
LGREEN="\033[1;32m" # Light Green | |
NC='\033[0m' # No Color |
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
/** | |
* teambets.sp | |
* Adds team betting. After dying, a player can bet on which team will win. | |
*/ | |
#include <sourcemod> | |
#pragma semicolon 1 | |
#define PLUGIN_VERSION "2.7.2" | |
public Plugin:myinfo = | |
{ | |
name = "Team Bets", |
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
PASTAINICIO=$(pwd); | |
PATHHEADER="$PASTAINICIO/.header" | |
if (test -r $PATHHEADER) | |
then | |
cat $PATHHEADER; | |
fi |
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
anos=`seq 2016 2018`; # 2016 a 2018 | |
meses=`seq -w 1 12`; # todos os meses | |
for ano in $anos | |
do | |
for mes in $meses | |
do | |
data=$ano$mes; | |
tam=`du -c DCIM/**/IMG_$data*.jpg DCIM/**/VID_$data*.mp4 2> /dev/null | tail -1 | cut -f 1` | |
echo $data: $tam |
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
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.lg2 log --pretty='%h - %s (%an)' | |
alias.alias config --get-regexp ^alias\. | |
alias.unadd reset HEAD -- | |
alias.unstage reset HEAD -- |
NewerOlder