Skip to content

Instantly share code, notes, and snippets.

View kurtmilam's full-sized avatar
💯
❌ 🤠 coder

Kurt Milam kurtmilam

💯
❌ 🤠 coder
View GitHub Profile
// 1. navigate to your likes page
// 2. paste this script into the console
// 3. hit 'enter'
// 4. repeat if necesary
setInterval(() => {
Array.from(document.getElementsByTagName('div'))
.filter(x => x.getAttribute('data-testid') == 'unlike')
.forEach(x => x.click())
window.scrollTo(0, document.body.scrollHeight || document.documentElement.scrollHeight)
@kurtmilam
kurtmilam / deep_extend_javascript_objects_underscore_mixin.js
Last active October 3, 2020 14:56
Deep Extend / Merge Javascript Objects - underscore.js Mixin
/* Copyright (C) 2012-2014 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955
*
* This mixin now has its own github repository: https://github.com/kurtmilam/underscoreDeepExtend
* It's also available through npm and bower
*
* 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 copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFR
@kurtmilam
kurtmilam / nvm-windows-upgrade-npm-and-uninstall-node-version-instructions.md
Last active July 5, 2021 13:13
how to upgrade npm and uninstall a specific node version when using windows-nvm

Do these from powershell or bash running as admin.

Upgrade npm

Node usually ships with an older version of npm.

Two things to consider:

  1. You'll need to upgrade npm once for each version of node installed by nvm-windows with which you wish to use the different version of npm.
  2. You'll need to manually specify the nvm-windows' installation path for the version of node whose associated npm you wish to upgrade.

First, install npm-windows-upgrade. Then, locate the nvm-windows installation path for the version of node whose npm you wish to upgrade. Usually at C:\Users\[user name]\AppData\Roaming\nvm\[node version].