0x77 SYMFONY3 – REST API
How to create a Symfony Rest API from scratch
symfony php
How to create a Symfony Rest API from scratch
symfony php
If you find yourself in this situation (and I hope you won’t!), you have some options to get your way with a misbehaving server remotely. You can force an immediate reboot with the following:
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
WHOA THERE! This is pretty much the same as pressing the reset button on the server (if equipped). No daemons will be shut down gracefully, no filesystem sync will occur, and you may get the wrath of a fsck (or worse, a non-booting server) upon reboot.
linux admin
sudo tcpdump -A -s 10240 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'
admin
validation: { enabled: true, enable_annotations: false }
Bundle\Entity\Post:
properties:
name:
- NotBlank: ~
text:
- NotBlank: ~
$entity = new Entity();
$validator = $this->get('validator');
$errors = $validator->validate($entity);
if (count($errors)>0) {
} else {
}
symfony
php
yum install libaio
rpm -Uvh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
rpm -Uvh oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
rpm -Uvh oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
echo "/usr/lib/oracle/12.1/client64/lib" >/etc/ld.so.conf.d/oracle.conf
ldconfig
yum install epel-release
yum install gcc python-pip.noarch python-devel
pip install cx_Oracle
linux
oracle
python
centos
for i in {1..3};do curl -s -w "%{time_total}\n" -o /dev/null http://www.google.com/; done
Загрузить пакеты XFCE и TightVNC можно из программного репозитория Ubuntu с помощью apt:
sudo apt-get update
sudo apt-get install xfce4 xfce4-goodies tightvncserver
Для завершения начальной настройки сервера VNC используйте команду vncserver, которая создаст безопасный пароль:
vncserver
linux
If your system is operating without error, you should be able to remove old kernels with a simple autoremove command in shell:
sudo apt-get autoremove --purge
Alternatively, and to be able to remove even manually installed kernels, you could use:
sudo purge-old-kernels
Source: https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels
linux ubuntu
E -----0----3-2-0---7--5----2--0---3--2------2-----
B --0-------------------------------------3------0-
E -----0----3-2-0---7--10---9-8---5---8-7-6---2--7-
B --0----------------------------------------------
E -3--7---3--7---3--8--7--6----2--3---8-7-6---2--7—
E -3--7---3--7---3--10--9–-8---5---8-7-6---5--2------0-
B ------------------------------------------------0----
http://gnugat.github.io/tags/ultimate%20symfony%20series/
symfony