Skip to content

Instantly share code, notes, and snippets.

View pasankg's full-sized avatar
🤓
Learning

Pasan Gamage pasankg

🤓
Learning
  • Australia | France
View GitHub Profile
@pasankg
pasankg / Shopify-Script-Product-Option.json
Created July 8, 2021 00:43
Shopify Script Product Option JSON Example
{
"product":{
"styles":{
"product":{
"@media (min-width: 601px)":{
"max-width":"calc(25% - 20px)",
"margin-left":"20px",
"margin-bottom":"50px"
},
"price":{
<?php
/**
* @file
* Definition of Drupal\my_style\Plugin\views\style\MyStyle.
*/
namespace Drupal\my_style\Plugin\views\style;
use Drupal\core\form\FormStateInterface;
<?php
echo "<h1>This is a vulnerable site</h1>";
//
// basic basic proxy
//
function postToString() {
$query_string = "";
if ($_POST) {
$kv = array();
foreach ($_POST as $key => $value) {
<?php
class Defence {
protected $url;
protected $postData;
protected $query_string;
}
your_details:
'#type': fieldset
'#title': 'Your Details'
application_type:
'#type': fieldset
'#title': Type
choose_one_option:
'#type': radios
'#title': 'Please select an Application Type'
'#options':
<?php
use Drupal\Tests\bravo_testing\Functional\BravoFunctionalTestBase;
/**
* Tests for the custom block.
*/
class CustomBlockFunctionalTest extends BravoFunctionalTestBase {
/**
@pasankg
pasankg / config
Created May 25, 2017 07:22
.ssh/config
Host *
ForwardAgent yes
Host 127.0.0.1
ForwardAgent yes