RIAEvangelist/node-ipc is malware / protestware
The RIAEvangelist/node-ipc
module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
# as function | |
sub filter { my $fields = shift; my @results = @_; foreach my $result (@results) { my $replacement = {}; foreach my $field (@$fields) { $replacement->{$field} = $result->{$field}; } $result = $replacement; } return @results; } | |
# as anonymous func | |
my $filter = sub {my $fields = shift; my @results = @_; foreach my $result (@results) {my $replacement = {}; foreach my $field (@$fields) {$replacement->{$field} = $result->{$field};} $result = $replacement;} return @results;}; | |
# usages | |
my @results = $filter->([qw/metadata uuid/], $object->attribute->asHashRefs); | |
my @results = filter([qw/metadata uuid/], $object->attribute->asHashRefs); |
The RIAEvangelist/node-ipc
module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
// ==UserScript== | |
// @name Humanity Solver | |
// @version 1 | |
// @grant none | |
// @include http://human.hatelabo.jp/quiz?* | |
// @include https://human.hatelabo.jp/quiz?* | |
// ==/UserScript== | |
// 下記URLを参考に過不足分を補正したもの | |
// https://web.archive.org/web/20210104141218/https://anond.hatelabo.jp/20210104230501 |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
// ==UserScript== | |
// @name Hatena Haiku spam filter | |
// @namespace https://noromanba.github.com | |
// @description Hatena Haiku spam filter for UserScript | |
// @include *://h.hatena.ne.jp/* | |
// @exclude *://h.hatena.ne.jp/setting/* | |
// @exclude *://h.hatena.ne.jp/guide | |
// @exclude *://h.hatena.ne.jp/help/* | |
// @grant none | |
// @noframes |
<?php | |
// Create translator for date diff | |
$translator = new Symfony\Component\Translation\Translator('nl_NL'); | |
$translator->addLoader('array', new Symfony\Component\Translation\Loader\ArrayLoader()); | |
$translator->addResource('array', array( | |
'diff.ago.second' => 'een seconde geleden|%count% seconden geleden', | |
'diff.ago.minute' => 'een minuut geleden|%count% minuten geleden', | |
'diff.ago.hour' => 'een uur geleden|%count% uur geleden', | |
'diff.ago.day' => 'een dag geleden|%count% dagen geleden', | |
'diff.ago.month' => 'een maand geleden|%count% maanden geleden', |
#!/bin/bash | |
# you need httpie (apt-get install httpie) | |
# you need to replace <these things> with your details | |
# run with 'source' to export vars to your shell for experimentation | |
# 1. authenticate to get an access token | |
auth_server=https://authserver.mojang.com | |
user=<your login email> |