If you get error:
run npm command gives error "/usr/bin/env: node: No such file or directory
Modify the Desktop icon ~/.local/share/applications/jetbrains-webstorm.desktop with:
| // ==UserScript== | |
| // @name VirginRadio Reducer | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.6 | |
| // @description Removes unnecessary parts from virginradio.it | |
| // @author Christian Castelli <voodoo81people@gmail.com> | |
| // @match https://www.virginradio.it/* | |
| // @grant none | |
| // ==/UserScript== |
| cd "C:%HOMEPATH%\.IntelliJIdea*\config" | |
| rmdir "eval" /s /q | |
| del "options\other.xml" | |
| reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f | |
| :: This will work for idea 2018.3 and later | |
| :: | |
| :: It is Highly Advised to Purchase the JetBrain Softwares | |
| :: This is only for the case You just want to Extend the | |
| :: Trial Period and Evaluate the IDE for some more Time |
| const removeDuplicatesFromArray = arr => | |
| [...new Set(arr.map(el => JSON.stringify(el)))].map(e => JSON.parse(e)) |
| # Redirect output to stderr. | |
| exec 1>&2 | |
| # prevent it.only or describe.only commited | |
| if [ "$allowonlytests" != "true" ] && | |
| test $(git diff --cached | grep -E "\b(it|describe).only\(" | wc -l) != 0 | |
| then | |
| cat <<\EOF | |
| Error: Attempt to add it.only or describe.only - which may disable all other tests | |
| /* The API returns way too much results: the example below is the best approximation | |
| * to get a discography. Anyway, there are some errors: | |
| * - another group is present | |
| * - Cheshire cat's album is missing | |
| */ | |
| import { Client } from 'disconnect'; | |
| import dotenv from 'dotenv'; | |
| import { envSchema } from './utils'; | |
| import { showResult } from './utils/terminal'; |
| /* 57034 results for 1141 pages! */ | |
| import dotenv from 'dotenv'; | |
| import LastFM from 'last-fm'; | |
| import { envSchema } from './utils'; | |
| import { showResult } from './utils/terminal'; | |
| const result = dotenv.config(); | |
| if (result.error) { | |
| console.error(result.error.message); |