Skip to content

Instantly share code, notes, and snippets.

@colincalnan
colincalnan / log4j_rce_check.py
Created December 10, 2021 19:48 — forked from byt3bl33d3r/log4j_rce_check.py
Python script to detect if an HTTP server is potentially vulnerable to the log4j 0day RCE (https://www.lunasec.io/docs/blog/log4j-zero-day/)
#! /usr/bin/env python3
'''
Needs Requests (pip3 install requests)
Author: Marcello Salvati, Twitter: @byt3bl33d3r
License: DWTFUWANTWTL (Do What Ever the Fuck You Want With This License)
This should allow you to detect if something is potentially exploitable to the log4j 0day dropped on December 9th 2021.
@colincalnan
colincalnan / ckeditor_quicktable.patch
Created September 4, 2019 23:38
ckeditor_quicktable.patch
diff --git a/docroot/modules/contrib/ckeditor_quicktable/src/Plugin/CKEditorPlugin/QuickTable.php b/docroot/modules/contrib/ckeditor_quicktable/src/Plugin/CKEditorPlugin/QuickTable.php
index c87f91cd..24bd55f2 100644
--- a/docroot/modules/contrib/ckeditor_quicktable/src/Plugin/CKEditorPlugin/QuickTable.php
+++ b/docroot/modules/contrib/ckeditor_quicktable/src/Plugin/CKEditorPlugin/QuickTable.php
@@ -6,6 +6,7 @@
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
use Drupal\Component\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
@colincalnan
colincalnan / behat.yml
Created May 18, 2017 17:21 — forked from sobi3ch/behat.yml
How integreate 'selectors' with Behat (regon_map is requreid to work with selectors)
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: https://production.server/
Drupal\DrupalExtension\Extension:
blackbox: ~
@colincalnan
colincalnan / README.md
Created May 18, 2017 17:08 — forked from jk/README.md
Behat + Mink + Selenium 2 Stack

Important files

Here you find the DSL language definition for your phrases you can use in .feature files:

  • features/bootstrap/FeatureContext.php inherits from
  • vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php

Installation

With Homebrew that gets really easy:

@colincalnan
colincalnan / FeatureContext.php
Created May 17, 2017 22:30 — forked from jhedstrom/FeatureContext.php
Using the Behat Drupal Extension on sites with basic auth
<?php
/**
* Run before every scenario.
*
* @BeforeScenario
*/
public function beforeScenario() {
if ($basic_auth = $this->getDrupalParameter('basic_auth')) {
$driver = $this->getSession()->getDriver();
if ($driver instanceof Selenium2Driver) {
@colincalnan
colincalnan / chimp-donate-button-widget.html
Created May 5, 2016 15:26
Get Button Code Paste this code on your website where you’d like the button to appear. We recommend having a web designer complete this step.
<script type="text/javascript" src="https://chimp.net/widget/js/loader.js?ODQ0MCxtaW5pLHRlYWwsRm9ydCBNY011cnJheSBXaWxkZmlyZSBSZXNwb25zZSxHcm91cA%3D%3D" id="chimp-button-script"></script>
@colincalnan
colincalnan / gist:8695331
Created January 29, 2014 19:38
Indenting (transforming) tabs in Foundation. 4 of them minus the first one.
$transform: 0px;
@for $i from 2 through 5 {
.section-container.auto > section:nth-of-type(#{$i}) > .title {
$transform: $transform + 4;
transform:translate($transform,0);
-ms-transform:translate($transform,0); /* IE 9 */
-webkit-transform:translate($transform,0); /* Safari and Chrome */
}
}
@colincalnan
colincalnan / README.md
Last active December 12, 2015 03:58
Testing bl.ocks.org

Please read me