Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Busche mrbusche

View GitHub Profile
@mrbusche
mrbusche / gist:7722a5daf1efa9f629b81f94dfe1e096
Created Apr 11, 2021
fatal:open /dev/null or dup failed: No such file or directory
View gist:7722a5daf1efa9f629b81f94dfe1e096
https://www.programmersought.com/article/86564277583/
sfc /scannow
@mrbusche
mrbusche / twobed.html
Last active Aug 12, 2020
two bedroom
View twobed.html
<div class='property-calendar-extreme-outer mrg-left-0 mrg-right-neg-50 row'>
<div class='outer-calendar-table col-sm-6 col-md-4 col-lg-3'>
<div class='table-wrapper'>
<table class='table property-calendar-table'>
<tbody>
<tr style='background-color:#e6e6e6;'>
<td colspan='7' class='property-calendar-td property-calendar-td-month' align='center'>Aug - 2020
</td>
</tr>
<tr>
@mrbusche
mrbusche / delete recursively.sh
Created Jul 16, 2020
Delete all folders and contents with name
View delete recursively.sh
# delete all folders with name of .idea
find . -type d -name .idea -prune -exec rm -rf {} \;
@mrbusche
mrbusche / amazonPriceDrops.js
Last active May 7, 2020
filter amazon wishlist to price drops only
View amazonPriceDrops.js
// old version
javascript: (function () {function removeItemsWithoutPriceDrops(){let e=!1;const t=document.getElementsByClassName("a-spacing-none g-item-sortable");for(var r=0;r<t.length;r++){var o=t[r].querySelectorAll(".itemPriceDrop"),n=t[r].querySelectorAll("span.a-offscreen");n=n.length?(n=n[0].innerHTML).replace("$",""):0,(0==o.length||n>999999)&&(t[r].parentElement.removeChild(t[r]),e=!0)}e&&removeItemsWithoutPriceDrops()}removeItemsWithoutPriceDrops();})();
// new version
javascript: (function() { function removeItemsWithoutPriceDrops() { const lowPrice = 999999; let anyRemoved = false; const listItems = document.getElementsByClassName( "a-spacing-none g-item-sortable" ); for (var i = 0; i < listItems.length; i++) { let priceDrop = listItems[i] .querySelectorAll("span.a-size-small.a-color-tertiary")[1] .innerText.startsWith("Price dropped"); let price = priceDrop ? listItems[i].querySelectorAll("span.a-offscreen") : 0; if (!priceDrop ||
@mrbusche
mrbusche / softskill.txt
Created Jan 27, 2020
Interview soft skill questions
View softskill.txt
Original Source: https://deanhume.com/my-favourite-soft-skills-interview-questions/
Questions such as:
Why are you leaving your old workplace?
Why are you interested in working here?
How would your colleagues describe you if I asked them to tell me about you?
What criticisms or strengths might they mention?
Do you have any goals that you would like to achieve in the next few years?
What made you want to be an [insert role here]?
@mrbusche
mrbusche / combine json with same key
Last active Dec 31, 2019
combine json with same key
View combine json with same key
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="combined"></div>
<script>
const request = new XMLHttpRequest();
request.open('GET', 'combined.json');
@mrbusche
mrbusche / jQuery check_uncheck all
Created Oct 17, 2019
jQuery check/uncheck all
View jQuery check_uncheck all
$('#checkAll').click(function() {
$('input:checkbox[id^="check_"]').prop('checked', this.checked);
});
View enhanced air yards
% diff (air yards - rec yards ) / rec yards > 50%
air yards / targets > 10
rec yards / targets
targets > 20
View surface go
# Description: Boxstarter Script
# Original Author: Jess Frazelle <jess@linux.com>
# Modifed by Matt Busche
# Last Updated: 9/22/2018
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
@mrbusche
mrbusche / MFL Searching
Last active Aug 11, 2019
MFL searching
View MFL Searching
//option 1
var names = ['Michael, Christine','Allen, Buck','Breida, Matt','Sanu, Mohamed','Ross, John','Gore, Frank'];
function loopNames(names) {
for (var name = 0; name < names.length; name++) {
(function (name) {
setTimeout(function () {
document.getElementById('add_filt_name').value = names[name];
picker_filter('add');
console.log(document.getElementById('add').getElementsByTagName('tbody').length > 0 ? names[name] : '');