Skip to content

Instantly share code, notes, and snippets.

const rows = [];
document.querySelectorAll("table tr").forEach(tr => {
const cols = [...tr.querySelectorAll("td")].map(td => td.innerText.trim());
if (cols.length >= 2) {
rows.push({
ResultType: cols[0],
Reason: cols[1]
});
}
});
@1Dimitri
1Dimitri / rclone-cron.sh
Created September 18, 2021 17:19 — forked from christippett/rclone-cron.sh
An rclone backup script for cron
#!/bin/bash
##############################################################################
# An rclone backup script by Chris Tippett (c.tippett@gmail.com)
#
# Originally adapted from the great work by Jared Males (jaredmales@gmail.com)
# https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7
#
# Copyright (C) 2020 Chris Tippett (c.tippett@gmail.com)
#
@1Dimitri
1Dimitri / PowerShellGet - Setup Local Repo.ps1
Created September 12, 2021 16:36 — forked from CosmosKey/PowerShellGet - Setup Local Repo.ps1
PowerShellGet - Setup a local repository demo
###############################################################
#
# A quick look at setting up local PowerShellGet repositories
#
###############################################################
#
# Find and install a module from PSGallery
@1Dimitri
1Dimitri / gist:400d28999fbecafc78c1b6bc379b6e35
Created January 15, 2021 18:39 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@1Dimitri
1Dimitri / .. MediaCreationTool.bat .md
Created November 29, 2020 00:07 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 20H2 with business (Enterprise) edition support

Preview1 Preview2

2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number
@1Dimitri
1Dimitri / script.py
Created October 1, 2019 16:20 — forked from samber/script.py
POC gmail api (Oauth2 + Gmail api)
#!/usr/bin/env python3
import httplib2
import apiclient
from oauth2client.client import OAuth2WebServerFlow
scopes = [
'https://mail.google.com/',
'https://www.googleapis.com/auth/gmail.settings.basic',
'https://www.googleapis.com/auth/userinfo.profile',
@1Dimitri
1Dimitri / MSBuildProcDumper.csproj
Created August 22, 2018 14:53
MSBuild - Process Dumper - lsass example
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This inline task executes c# code. -->
<!-- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe MSBuildProcDumper.csproj -->
<!-- Feel free to use a more aggressive class for testing. -->
<Target Name="Hello">
<ClassExample />
</Target>
<UsingTask
TaskName="ClassExample"
TaskFactory="CodeTaskFactory"
@1Dimitri
1Dimitri / InterceptorThing.ps1
Created August 22, 2018 14:28
Interceptor - Normal User No Admin Required.
<#
.SYNOPSIS
This script demonstrates the ability to capture and tamper with Web sessions.
For secure sessions, this is done by dynamically writing certificates to match the requested domain.
This is only proof-of-concept, and should be used cautiously, to demonstrate the effects of such an attack.
Function: Interceptor
Author: Casey Smith, Twitter: @subTee
License: BSD 3-Clause