Skip to content

Instantly share code, notes, and snippets.

View ataliba's full-sized avatar
🎯
Focusing

cybernetus@xda ataliba

🎯
Focusing
View GitHub Profile
@ataliba
ataliba / phttping.php
Created April 13, 2012 12:35
A simple script I create in the past to monitoring my blog/site
<?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);
@ataliba
ataliba / krnpertty.service
Created April 13, 2012 11:49
Update for my tip about the kernel otimization using cgroup
[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
@ataliba
ataliba / zzmeuip.sh
Created April 13, 2012 11:47
Função zzmeuip do funcoeszz - não foi adicionada ao repositório pois já existe uma que faz a função dela
#!/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