List all ips address from apache access log
Updated . Posted . Visible to the public.
grep Apr/2014 /var/log/apache2/access.log | awk '{ print $1 }' | sort -n | uniq -c | sort -rn
Last edit
Tushar
Related cards:
Disable event tag as doctrine.event_subscriber from Symfony 2
In controller
$em = $this->getDoctrine()->getManager();
$evm = $em->getEventManager();
$evm->removeEventSubscriber($this->get('service.taged.as.doctrine.event_subscriber '));
Postman set access token in Test
pm.test("Status test", function () {
var jsonBody = pm.response.jsonBody
pm.environment.set('access_token', jsonBody.access_token)
});
Common Ubuntu 20.04 LEMP stack setup commands
Install required packages
sudo add-apt-repository universe
sudo apt update && sudo apt dist-upgrade && sudo apt autoremove
sudo apt-get install -y build-essential nginx git redis-server wget htop apache2-utils unzip mysql-server nginx mysq...
HOW TO SHUTDOWN WITHOUT SUDO PASSWORD (ubuntu, debian)
in /etc/sudoer add following line
username ALL = NOPASSWD: /sbin/shutdown
also to allow at group level
%admin ALL = NOPASSWD: /sbin/shutdown
now one can use shutdown command without sudo password, but shutdown comman...
Ubutnu 20.04 - Update mysql 8 root password
from bash terminal login as root user
sudo su
mysql
From MySQL cli change password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password_here';
flush privileges;
Awesome PHP
A list of amazingly awesome PHP libraries, resources and shiny things.
https://gist.github.com/ziadoz/1677679
Posted by Tushar to Tushar's deck (2014-04-29 06:50)