What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-30 06:14:04
application_acquirerequeststate event asp.net to prevent session hijacking
protected void Application_BeginRequest(object sender, EventArgs e) { //Check If it is a new session or not , if not then do the further checks if (Request.Cookies["ASP.NET_SessionId"] != null && Request.C... Add solution -
Other 2021-09-28 20:51:03
logging in rest assured
Logging In many cases it can be useful to print the response and/or request details in order to help you create the correct expectations and send the correct requests. To do help you do thi s you can use one of the predefined filters supplied with REST... Add solution -
PHP 2021-09-27 15:13:03
yii2 set cookie
// get the cookie collection (yii\web\CookieCollection) from the "request" component $cookies = Yii::$app->request->cookies; // get the "language" cookie value. If the cookie does not exist, return "en" as the default ... Add solution -
Shell/Bash 2021-09-27 07:26:02
wget file from google drive
// Files smaller than 100MB wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME // Files bigger than 100MB wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(... Add solution -
PHP 2021-09-26 16:42:04
symfony get post params
use Symfony\Component\HttpFoundation\Request; $request = Request::createFromGlobals(); // the URI being requested (e.g. /about) minus any query parameters $request->getPathInfo(); // retrieves $_GET and $_POST variables respectively $request->que... Add solution -
Other 2021-09-25 15:18:02
anon
{"data":[{"ipPort":"148.251.153.6:1080","ip":"148.251.153.6","port":"1080","country":"DE","last_checked":"2021-05-16 21:03:55","proxy_level&... Add solution -
Other 2021-09-24 22:35:04
iptables_configuration
#!/bin/bash # A sample firewall shell script IPT="/sbin/iptables" SPAMLIST="blockedip" SPAMDROPMSG="BLOCKED IP DROP" SYSCTL="/sbin/sysctl" BLOCKEDIPS="/root/scripts/blocked.ips.txt" # Stop certain ... Add solution
Best helpers
Seria Yin
+5
Kyle Smith
+5
JSanchez
+5
Larapsodia
+5
TJG
+5
Sharma Pocso
+5
Wilber82
+5
T-rex
+5
Wayno
+5
Winny
+5
Sikku
+5
AlecPerkey
+5
The Alpha
+5
IQAndreas
+5
TeacherSue
+5