This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function fooActionCreator(){ | |
| const cancellation = createTimeoutCancellation(10000); | |
| try { | |
| const result = await Promise.race([ | |
| fetch('/data', {cancellation}), | |
| cancellation, | |
| ]); | |
| return {type: 'REQUEST_DONE', result}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import delay from 'delay'; | |
| async function fooActionCreator(){ | |
| try { | |
| const result = await Promise.race([ | |
| fetch('/data', {cancellation}), | |
| delay(10000).then(() => throw 'CANCELLED'), | |
| ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| del %WINDIR%\perfc.* /f | |
| echo > %WINDIR%\perfc | |
| echo > %WINDIR%\perfc.dat | |
| echo > %WINDIR%\perfc.dll | |
| attrib +R %WINDIR%\perfc.* | |
| echo DONE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.from(document.querySelectorAll('*')).forEach( | |
| p => { | |
| p.onblur = function(e) { | |
| console.log('1') | |
| e.preventDefault() | |
| e.stopPropagation() | |
| console.log('2') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
OlderNewer