Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@mikamboo
mikamboo / README.md
Last active November 30, 2020 15:01
E2E Testing Solutions
@etc-tiago
etc-tiago / playwright.js
Created October 14, 2020 12:07
Playwright helper
const browserOpen = async (browser, url, headless = true) => {
const browserRef = await chromium.launch({ headless: false });
page = await browserRef.newPage();
await page.goto(url);
const element = async (selector) => await page.$(selector);
const click = async (selector) => await page.click(selector);
const inputFill = async (selector) => await page.click(selector);
const waitTimeout = async (milliseconds) => await page.waitForTimeout(milliseconds);
const countElement = async (selector) => await page.$$eval(selector, (el) => el.length);
@pax8-dkirby
pax8-dkirby / SentinelOne-VSSConfig.ps1
Created October 13, 2020 16:10
Configures Windows 10 Client OS VSS for SentinelOne.
<#
.SYNOPSIS
Configures Windows 10 Client OS VSS for SentinelOne.
.DESCRIPTION
.PARAMETER
@MrAru
MrAru / index.js
Last active January 31, 2021 14:22
Javascript file to automatically complete Daily Health in XMU
const { chromium } = require('playwright');
(async () => {
const COOKIES = [{
name: '_dx_captcha_vid',
value: '', // Enter your "_dx_captcha_vid" value here
url: 'https://xmuxg.xmu.edu.cn/app/214'
}, {
name: 'SAAS_U',
value: '', // Enter your "SAAS_U" value here
function Get-InstalledSoftware
{
<#
.SYNOPSIS
Reads installed software from registry
.PARAMETER DisplayName
Name or part of name of the software you are looking for
.EXAMPLE
@sinbad
sinbad / backup_gitea.sh
Created August 9, 2020 14:58
My Gitea Backup & Restore Scripts
#!/bin/bash
# `gitea dump` doesn't currently back up LFS data as well, only git repos
# It primarily backs up the SQL DB, and also the config / logs
# We'll backup like this:
# * "gitea dump" to backup the DB and config etc
# * tar / bzip all the repos since they will be skipped
# * Not rotated because git data is immutable (normally) so has all data
# * rsync LFS data directly from /volume/docker/gitea/git/lfs
# * No need for rotation since all files are immutable
@akunzai
akunzai / Get-InstalledProgram.ps1
Last active July 17, 2021 17:47
List Installed Programs on Windows
<#
.SYNOPSIS
List Installed Programs on Windows
.EXAMPLE
. ./Get-InstalledProgram.ps1
Get-InstalledProgram | Export-Csv ~/Desktop/InstalledApps.csv -Encoding UTF8 -NoTypeInformation
.EXAMPLE
. ./Get-InstalledProgram.ps1
Get-InstalledProgram -Detail | Format-List
#>
@kushagharahi
kushagharahi / .Slickdeals URL Cleaner.md
Last active January 22, 2025 18:49
Slickdeals URL Cleaner UserScript

Tired of having to go through referral/affiliate links before you can view a deal on Slickdeals? This script strips the urls on Slickdeals of referrers. If it can't strip the urls, it marks them as "Referral Link?" in hot pink.

Install this UserScript in GreaseMonkey or similar UserScript manager.

before and after script

Note: You must click View Forum Thread (requires login) ![image](https://user-images.githubusercontent.com/3326002/211234558-3e83f0b9-486f-4ab5-ae

/*
MIT License
Copyright (c) 2020 National Instruments
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell