Implementation of the SOAP server - server.php
:
<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");
// model, which uses in web service functions as parameter
<?php | |
$client = new GuzzleHttp\Client(); | |
$promise = $client->requestAsync('GET', 'http://httpbin.org/get'); | |
$promise->then( | |
function (ResponseInterface $res) { | |
echo $res->getStatusCode() . "\n"; | |
}, | |
function (RequestException $e) { | |
echo $e->getMessage() . "\n"; |
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 -v sonarqube:/opt/sonarqube/data sonarqube | |
docker run -d -u zap -i owasp/zap2docker-stable zap.sh -p 8090:8090 | |
docker run -i owasp/zap2docker-stable zap-cli quick-scan --self-contained --start-options '-config api.disablekey=true' http://localhost | |
docker run -d -u zap -p 8080:8080 -p 8090:8090 -i owasp/zap2docker-stable zap-webswing.sh | |
http://localhost:8080/zap | |
docker start sonarqube |
<?php | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
* | |
* You may also want a list of unofficial codes: | |
* | |
* 103 => 'Checkpoint', | |
* 218 => 'This is fine', // Apache Web Server | |
* 419 => 'Page Expired', // Laravel Framework |
for file in *_; do mv -i $file `basename $file _`;done; |
version: '3' | |
services: | |
mysql56: | |
image: mysql:5.6 | |
restart: unless-stopped | |
container_name: mysql56-container | |
ports: | |
- "127.0.0.1:3356:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: rootPassword |
Windows Registry Editor Version 5.00 | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] | |
@="Edit with VS Code" | |
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\"" | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\vscode] |
Node.js — Clear/reset Terminal / Console. | |
# Method 1 (My favorite) | |
process.stdout.write('\x1Bc'); | |
# Method 2 | |
console.clear(); | |
# Method 3 | |
const readline = require('readline') |
[Thumbnailer Entry] | |
TryExec=/usr/bin/gdk-pixbuf-thumbnailer | |
Exec=/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o | |
MimeType=image/png;image/bmp;image/x-bmp;image/x-MS-bmp;image/gif;image/x-icon;image/x-ico;image/x-win-bitmap;image/vnd.microsoft.icon;application/ico;image/ico;image/icon;text/ico;application/x-navi-animation;image/jpeg;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/tiff;image/x-xpixmap;image/x-xbitmap;image/x-tga;image/x-icns;image/x-quicktime;image/qtif;image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-panasonic-raw2;image/x-pef;image/x-pentax-pef;image/x-ptx;image |
#!/bin/sh | |
# Empty all rules | |
sudo iptables -t filter -F | |
sudo iptables -t filter -X | |
# Bloc everything by default | |
sudo iptables -t filter -P INPUT DROP | |
sudo iptables -t filter -P FORWARD DROP | |
sudo iptables -t filter -P OUTPUT DROP |