Skip to content

Instantly share code, notes, and snippets.

View WengerK's full-sized avatar
🤓

Kevin Wenger WengerK

🤓
View GitHub Profile
@WengerK
WengerK / gist:7f42c07aa5f12ab741b4
Last active August 29, 2015 14:16
Check for SSL FREAK Vulnerability
# Fire this command to check your vulnerability
# A handshake failure signifies that EXPORT cipher is not active on the server and it is safe.
openssl s_client -connect www.google.com:443 -cipher EXPORT
@WengerK
WengerK / By attributes
Created November 21, 2012 11:00
Dynamic change title & meta page on ASP
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Title="MyTitle" Inherits="ASP1._Default" MasterPageFile="~/MasterPage.Master" %>
@WengerK
WengerK / .htaccess
Created May 3, 2016 18:58 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@WengerK
WengerK / fields.php
Created June 13, 2016 08:25
Drupal 8 - Liste of fields types
// The list of possible types:
kint(\Drupal::service('plugin.manager.field.field_type')->getDefinitions());
@WengerK
WengerK / README.md
Last active August 15, 2016 12:07
What's my IP using PHP CLI

What's my IP using PHP CLI

A mechanism for discovering the IP of the computer using PHP CLI

@WengerK
WengerK / JS
Created August 24, 2016 14:43
Get jQuery version from console
jQuery().jquery;
@WengerK
WengerK / README.md
Last active August 31, 2016 14:42
Atom Stylelint - Undefined rules

Undefined rule "no-missing-eof-newline" -> Renamed as "no-missing-end-of-source-newline"
Undefined rule "media-query-parentheses-space-inside" Renamed as "media-feature-parentheses-space-inside"
Undefined rule "number-zero-length-no-unit" Renamed as "length-zero-no-unit" Undefined rule "property-unit-blacklist" Renamed as "declaration-property-unit-blacklist" Undefined rule "property-unit-whitelist" Renamed as "declaration-property-unit-whitelist" Undefined rule "property-value-blacklist" Renamed as "declaration-property-value-blacklist" Undefined rule "property-value-whitelist" Renamed as "declaration-property-value-whitelist"

Dependencies

  • "gulp-stylelint": "^3.0.0",
@WengerK
WengerK / settings.php
Created April 28, 2017 08:52
Disable Poorman Cron for Drupal 8
// Disable cron in settings.php for D8.
$config['automated_cron.settings']['interval'] = 0;
@WengerK
WengerK / README.md
Last active May 10, 2017 09:33
VS Code - C'est mieux

Article Ressources - VS Code, c'est mieux !

This is the Gist repository for my article VS Code, c'est mieux.

Be aware that this article has been wrote for the Blog of Antistatique — Web Agency in Lausanne, Switzerland. A place where I work as Full Stack Web Developer.

Feel free to read it the full article on Medium or check it out on Antistatique.

Content of this Gist :

  • settings.json : VS Code settings.json
@WengerK
WengerK / README.md
Created June 4, 2017 14:55
Sort Github issues by reaction

Search UI

is:issue is:open sort:reactions-+1-desc

URL GET Parameters

?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc