Skip to content

Instantly share code, notes, and snippets.


Eddy EddyVinck

View GitHub Profile
EddyVinck /
Last active Jul 18, 2019
Setting up ssh for Gitlab on Windows

After installing Git and in Git Bash...

$ ssh-keygen -t rsa

You can change the default name or location if you prefer

Copy the key to your GitLab

$ cat ~/.ssh/ | xclip

View module-usage-variable.twig
{# The module_usage output #}
settings_module= {
body= {
widget_name=Module Usage,
View header-logo-email-module.twig
{% if use_header_logo %}
<!-- Start header logo -->
View Testcafe-first-tests.js
import { Selector } from "testcafe";
import { TodoPo } from "./po/todo.po";
// #1: page under test is
fixture("Test TodoMVC App").page("");
// #2
test("Create todo", async t => {
const todoList = Selector("ul.todo-list");
View using-global-values-in-email.twig
{# in my_email_template.html #}
{# Notice use_header_logo={{use_header_logo}} in the module_block. #}
{# This is how the value is passed into the module. #}
{# It's important to explicitly check for false since the value can be null #}
{# When the client has not changed the boolean switches in 'Module Usage' #}
{# This is based on the assumption that the module is enabled by default. #}
View find-module-by-id.twig
{# In my_email_template.html #}
{# Add the control module so authors can change the settings in the template #}
{% module_block module "module_1234"
module_id="1234" label="Module Usage",
widget_name='Module Usage',
label='Module Usage' %}
View use-this-module.twig
{% if module.module_settings.use_this_module_ %}
<!-- HTML to show when checked -->
{% endif %}
View HubSpot-Wrapped-Custom-Module.twig
<!-- All the markup you see here is added by HubSpot-->
<td align="center" valign="top" class="bodyContent" width="100%" colspan="12">
<table cellpadding="0" cellspacing="0" border="0">
<td valign="top" colspan=12 width="100.0%" class=" column">
<div class="widget-span widget-type-custom_widget ">
<div class="layout-widget-wrapper">
{% module_block module "module_1234"
EddyVinck / 2017-06-28T12_53_16_520Z-debug.log
Created Jun 28, 2017
Debug log after updating to webpack 3
View 2017-06-28T12_53_16_520Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@4.2.0
3 info using node@v7.9.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle webpack-demo@1.0.0~prebuild: webpack-demo@1.0.0
6 silly lifecycle webpack-demo@1.0.0~prebuild: no script for prebuild, continuing
View i_dont_know_why_im_sharing_this_but_whatever.js
// by: throw_away_stacy on reddit
// and yes I do birthday parties too
const WebSocket = require('websocket').w3cwebsocket;
const users = require('./users.json');
const Q = require('q');
const superagent = require('superagent');
const _ = require('highland');
const getPixels = require('get-pixels');