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/sh | |
# ---------------------------------------------------------------------------- | |
# Mostra o seu ip público. | |
# Uso: zzmeuip | |
# Ex.: zzmeuip | |
# | |
# Autor: Ataliba Teixeira < ataliba (a) ataliba.eti.br > | |
# Desde: 2010-12-25 | |
# Versão: 1.0 | |
# Licença: GPL |
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
[Unit] | |
Description=Enable creation of task groups per TTY | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mkdir -p -m 0777 /sys/fs/cgroup/cpu/user | |
[Install] | |
WantedBy=multi-user.target |
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
<?php | |
$arquivo = "$HOME/logs/uptime"; | |
$abre = fopen($arquivo,"a+"); | |
$ip = "mysite.com.br"; | |
$comando = "/arpa/af/c/cerebro/bin/commands/httping -c 1 -g http://".$ip; | |
$saida = shell_exec($comando); |
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
Hello, | |
this a simple solution for this problem. If you want to access a host with your ssh and receive this error : | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! | |
Someone could be eavesdropping on you right now (man-in-the-middle attack)! |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
string Exec(const char *cmd); | |
void ReplaceAll(string& str, const string& from, const string& to); | |
int main(int argc, char **argv, char **envp) { | |
string whoami, users; |
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
# ---------------------------------------------------------------------------- | |
# Inverte a string passada como parâmetro para o comando | |
# Uso: zzinverte | |
# Ex.: zzinverte string | |
# | |
# Autor: Ataliba Teixeira, www.ataliba.eti.br | |
# Desde: 2012-04-30 | |
# Versão: 1 | |
# Licença: GPL | |
# ---------------------------------------------------------------------------- |
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
# Para entender a recursividade veja o final deste arquivo | |
No final do arquivo : | |
# Para entender a recursividade veja o início deste arquivo |
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
zzservices() | |
{ | |
grep ^$1 /etc/services | |
} |
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/env python | |
import poplib | |
from email import parser | |
import email | |
import os | |
import sys | |
import string | |
import re |
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 | |
HOST=$1 | |
WGET="/usr/bin/wget" | |
$WGET -q --tries=10 --timeout=5 $HOST | |
RESULT=$? | |
if [[ $RESULT -eq 0 ]]; then | |
echo "Connection made successfully to $HOST" |
OlderNewer