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
find -type f -exec md5sum "{}" + | |
Ex: lista apenas por extensão: | |
find -type f -name "*.zip" -exec md5sum "{}" + |
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
find . -type d -name "workspace" | xargs rm -rf |
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
for f in `grep -rl srv267 .`; | |
do \ | |
sed -i 's/srv267/pvl010/g' $f && \ | |
echo $f \ | |
set -- $(md5sum $f) && \ | |
echo $1 > $f.md5; | |
set -- $(sha1sum $f) && \ | |
echo $1 > $f.sha1; | |
done; |
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
0 - instalar o build-essential: | |
sudo apt-get install build-essential | |
1 - instalar o nodejs e o npm: | |
sudo apt-get install node; | |
sudo apt-get install npm; | |
2 - instalar o gearman: | |
sudo apt-get install gearman |
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
Este guia tem por objetivo facilitar a minha vida para ter o meu ambiente restaurado ou construído do zero, mas pode ser utilizado por qualquer outra pessoa que goste de um ubuntu ainda mais fácil para utilizar no desenvolvimento de aplicações PHP com repositórios Git. Não estão colocados aqui detalhes sobre instalação de banco de dados, e o hardwar alvo é um macbook pro 17" i7 com HD SSD. | |
COLOCANDO UM SAY COMO DO MAC NO LINUX | |
sudo apt-get install gnustep-gui-runtime | |
say "hello" | |
1 - Install Ubuntu Unity LTS - Update and upgrade | |
2 - Install Nvidia driver and reboot | |
3 - Install Gnome Desktop over Ubuntu |
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
INSTALL JENKINS IMAGE FOR DOCKER | |
-------------------------------- | |
Go as root: | |
$ sudo su | |
Run the jenkins container for the first time specifying the volume on current filesystem and ports: | |
# docker run -p 8080:8080 -p 50000:50000 -v /home/phackwer/Projects/jenkins/:/var/jenkins_home jenkins |
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 | |
####################################################################################### | |
# Author Pablo Sanchez | |
# RAID Bug Killer - kills $COMMAND processes older then $SECONDS | |
####################################################################################### | |
COMMAND='php' | |
SECONDS=900 # 15 minutes | |
(ps --noheaders -o pid,etime -C $COMMAND) | while read -r PID TIME; do | |
SavedIFS="$IFS" | |
IFS="-:." |
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 LEVENSHTEIN(LATINEX('Joaum Culioins da Çilva Roxa'), | |
LATINEX('João Culhões da Silva Rocha')); | |
SELECT LEVENSHTEIN(LATINEX('Valdisnei'), LATINEX('Walt Disney')); | |
SELECT LEVENSHTEIN(LATINEX('Uólaci Martinez de Çouza Broxado'), | |
LATINEX('Wallace Martins de Sousa Brochado')); | |
SELECT LEVENSHTEIN(LATINEX('Wanezza Manguabeira da Costta'), | |
LATINEX('Vanessa Mangabeira da Costa')); | |
SELECT LEVENSHTEIN(LATINEX('Amiltão De Georgio'), LATINEX('Hamilton Di | |
Giorgio')); |
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
sudo apt-get install libmtdev xserver-xorg-dev | |
git clone https://github.com/p2rkw/xf86-input-mtrack/ | |
cd xf86-input-mtrack | |
./configure | |
sudo make installsudo ln -s /usr/local/lib/xorg/modules/input/* /usr/lib/xorg/modules/input/ | |
Add to xorg.conf | |
Section "InputClass" | |
MatchIsTouchpad "on" |
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 | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class City extends Model | |
{ | |
/** | |
* @var array |