Skip to content

Instantly share code, notes, and snippets.

@alexis-
alexis- / clone-google-form.js
Created August 10, 2021 18:33
This is a solution to copy a Google Form responses (answers) to another Google Form. See https://webapps.stackexchange.com/a/154041/271529
// See https://webapps.stackexchange.com/a/154041/271529 for instructions
//
// EDIT THIS SECTION
// The source spreadsheet ID (find in url) and sheet Name
const sheetId = '18Z-XvuBOXIYc7LH-Ht162nGPu4JxMb0x2Hxxxxxxxxx';
const sheetName = 'Sheet 1';
// The destination form ID (find in url)
@alexis-
alexis- / AllStyleCopRulesToNone.ruleset
Created April 5, 2020 21:47
AllStyleCopRulesToNone xml
<?xml version="1.0" encoding="utf-8" ?>
<RuleSet Name="AllStyleCopRulesToNone" Description="AllStyleCopRulesToNone" ToolsVersion="10.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA0001" Action="None"/>
<Rule Id="SA1000" Action="None"/>
<Rule Id="SA1001" Action="None"/>
<Rule Id="SA1002" Action="None"/>
<Rule Id="SA1003" Action="None"/>
<Rule Id="SA1004" Action="None"/>
<Rule Id="SA1005" Action="None"/>
@alexis-
alexis- / attack.md
Created May 17, 2017 18:21 — forked from timruffles/attack.md
Chrome/Gmail attack received 11/03/2016. Not sure if the Chrome meta refresh + data:text,html technique is novel.

The following attack will display a "you've been signed out" page for GMail, and attempt to steal your account credentials.

DO NOT PUT ANY ACCOUNT CREDENTIALS INTO ANY TABS CREATED AFTER VISITING THESE LINKS :)

I received an email in my GMail inbox with a fake attachment image, styled to look like the real GMail attachment UI:

fake

This linked to a page that ended up displaying a fake "you've been signed out" link, via the data:text/html... URL feature of Chrome:

@alexis-
alexis- / MethodBindingExtension.cs
Last active September 22, 2016 19:58 — forked from mikernet/MethodBindingExtension.cs
Ultimate WPF Event Method Binding Extension
// Ultimate WPF Event Method Binding implementation by Mike Marynowski
// View the article here: http://www.singulink.com/CodeIndex/post/building-the-ultimate-wpf-event-method-binding-extension
// This is an incredibly useful piece of code. I had some issues with using it and tweaked some bits to get it working.
namespace Singulink.Windows.Data
{
public class MethodBinding : MarkupExtension
{
private static readonly List<DependencyProperty> StorageProperties = new List<DependencyProperty>();