Skip to content

Instantly share code, notes, and snippets.

View ujeenator's full-sized avatar
💭
I may be slow to respond.

Eugenus Optimus ujeenator

💭
I may be slow to respond.
View GitHub Profile
async function fooActionCreator(){
const cancellation = createTimeoutCancellation(10000);
try {
const result = await Promise.race([
fetch('/data', {cancellation}),
cancellation,
]);
return {type: 'REQUEST_DONE', result};
import delay from 'delay';
async function fooActionCreator(){
try {
const result = await Promise.race([
fetch('/data', {cancellation}),
delay(10000).then(() => throw 'CANCELLED'),
]);
const app = require("koa")();
const router = require("koa-router")();
const r = require("rethinkdbdash")();
const ajv = require("ajv")({
removeAdditional: true
});
app.use(require("koa-body")());
app.use(router.routes());
del %WINDIR%\perfc.* /f
echo > %WINDIR%\perfc
echo > %WINDIR%\perfc.dat
echo > %WINDIR%\perfc.dll
attrib +R %WINDIR%\perfc.*
echo DONE
### Keybase proof
I hereby claim:
* I am ujeenator on github.
* I am ujeenator (https://keybase.io/ujeenator) on keybase.
* I have a public key ASCUYX8YhnSTl9cmPTDDzXjk9yAvsUFPZW5908slFSf0-go
To claim this, I am signing this object:
Array.from(document.querySelectorAll('*')).forEach(
p => {
p.onblur = function(e) {
console.log('1')
e.preventDefault()
e.stopPropagation()
console.log('2')
0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9
0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9
#petya #notpetya #virus #петя #вирус
Windows Petya protection check list for System Administrators (Version 1.2)
Provided AS IS without warranty, use it only if you understand what you doing
1. Close vulnerable ports via CMD (WARNING it disables SMB)
netsh advfirewall firewall add rule name="Petya TCP" dir=in action=block protocol=TCP localport=1024-1035,135,139,445
netsh advfirewall firewall add rule name="Petya UDP" dir=in action=block protocol=UDP localport=1024-1035,135,139,445
#!/bin/sh
brew uninstall ffmpeg
brew tap justinmayer/tap
brew tap-pin justinmayer/tap
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-tesseract --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg