Skip to content

Instantly share code, notes, and snippets.

@jonavon
jonavon / bjs_coupon_clipper.js
Last active April 26, 2024 14:54 — forked from neil1023/bjs_coupon_clipper.js
BJs Coupon Clipper
// This script can be run in the browser console
// Just navigate to https://www.bjs.com/myCoupons and execute the script
// This script will clip all the coupons on the current page
//
// Created on 10/13/22
// Modified 2024-04-26
document.querySelectorAll("button[name='clipToCard']").forEach(function(item) {item.click()});
// Harris Teeter
@jonavon
jonavon / resume.md
Last active November 15, 2021 21:17
Resume
@jonavon
jonavon / README.md
Created August 28, 2020 13:51 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATE 17.10.2019

Only works on old youtube skin.

//added "&disable_polymer=true" after playlist link

Also, saw this now, there is a "remove watched" button.

  1. Open your watch later playlist on youtube.
  2. Open the development console for your browser ( Ctrl+Shift+J for chrome, Ctrl+Shift+K for firefox )
@jonavon
jonavon / m3u8-to-mp4.md
Created April 16, 2020 17:24 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@jonavon
jonavon / bash.sh
Last active January 29, 2020 14:02
# Tree replacement
find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-- \1/"
# Test Firewall with basic linux tools
#### Command for Destination Server; Create a listener on target port
nc -l 8080
#### Command for source server
echo > /dev/tcp/127.0.0.123/8085 && echo "Port is open"
" Export current file to docx via pandoc
!F:\wilcoxjo\opt\pandoc\pandoc.exe -V links-as-notes=true --resource-path=.:F:\wilcox\Documents\support -f markdown+grid_tables -t docx %:p -o %:p:r.docx
" Open document in word
!C:\PROGRA~2\MICROS~1\Office16\WINWORD.EXE %:p:r.docx
" Export to windows clipboard in JIRA wiki format
!F:\wilcoxjo\opt\pandoc\pandoc.exe -V links-as-notes=true -f markdown -t jira %:p |clip
" Replace HTML with actual chars
Function New-PSWebServer {
<#
.Synopsis
Creates a web server that will invoke PowerShell code based on routes being asked for by the client.
.Description
New-PSWebServer creates a web server. The web server is composed of a schema that defines the client's requests to routes where PowerShell code is executed.
Under the covers, New-PSWebServer uses the HTTPListener .NET class to execute powershell code as requested, retrieves the results and sends data back through the httplistener web server framework.
@jonavon
jonavon / trapmail
Created July 16, 2019 16:28 — forked from Caffe1neAdd1ct/trapmail
Stop live emails going out via sendmail
#!/bin/bash
formail -R cc X-original-cc \
-R to X-original-to \
-R bcc X-original-bcc \
-f -A"To: new@email.com" \
| /usr/sbin/sendmail -t -i
# pipe all to a log instead, comment out formail code
#tee -a /tmp/trapmail.log > /dev/null
@jonavon
jonavon / UploadService.ts
Created May 15, 2018 15:42 — forked from AndreasDickow/UploadService.ts
Angular2 Image Upload to Django Rest Framework with Form Data
@Injectable()
export class UploadService {
/**
* @param Observable<number>
*/
private progress$: Observable<number>;
/**
* @type {number}
*/
**/bin/*
*.bak
#########
# Maven #
#########
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup