This file contains 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 { createServer } = require("https"); | |
const { parse } = require("url"); | |
const next = require("next"); | |
const fs = require("fs"); | |
const port = 3000; | |
// const dev = process.env.NODE_ENV !== "production"; | |
const dev = false; | |
const app = next({ dev }); | |
const handle = app.getRequestHandler(); |
This file contains 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
"standard.options": { | |
"ignore": [ | |
"node_modules/**" | |
], | |
"javascript.format.enable": false, | |
"javascript.validate.enable": false, | |
"standard.enable": true, | |
"standard.autoFixOnSave": true, | |
"standard.validate": [ | |
"javascript", |
This file contains 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
"use strict"; | |
const puppeteer = require("puppeteer"); | |
const _ = require('lodash'); | |
const log = data => console.log(data); | |
async function autoScroll(page){ | |
await page.evaluate(async () => { |
This file contains 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
[ | |
{ | |
"date": "2020-09-30T09:15:00.000Z", | |
"open": 21482.3, | |
"high": 21514.75, | |
"low": 21405.05, | |
"close": 21468.9, | |
"volume": 533150, | |
"time": "Sep 30, 2020 2:45 PM", | |
"hma": 21360.62454978355, |
This file contains 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 csv = require("csvtojson"); | |
const _ = require('lodash'); | |
const logD = data => { | |
console.log(data); | |
process.exit(); | |
} | |
const args = process.argv.slice(2); | |
if (args.length !== 1 || !args[0]) { |
This file contains 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
{ | |
"explore_tabs": [ | |
{ | |
"tab_id": "home_tab", | |
"tab_name": "homes", | |
"pagination_metadata": { | |
"has_next_page": true, | |
"items_offset": 18, | |
"section_offset": 5, | |
"search_session_id": "c20a7c71-74be-42e9-843f-927a4dafd9da", |
This file contains 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
function isChatMessage(message) { | |
if (message.__x_isSentByMe) { | |
return false; | |
} | |
if (message.__x_isNotification) { | |
return false; | |
} | |
if (!message.__x_isUserCreatedType) { | |
return false; | |
} |
This file contains 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
diskutil list | |
diskutil unmountDisk /dev/disk3 | |
diskutil eraseDisk FAT32 NAME_OF_DISK MBRFormat /dev/disk3 | |
sudo dd if=my_img_or_iso_file.img of=/dev/disk3 bs=1m | |
diskutil unmountDisk /dev/disk3 | |
diskutil eject /dev/disk3 |
This file contains 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
sudo mount /dev/sdXXX /mnt | |
sudo mount /dev/sdXX /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
sudo chroot /mnt | |
grub-install /dev/sdX | |
update-grub | |
# Note : sdX = disk | sdXX = efi partition | sdXXX = system partition | |
# 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi |
This file contains 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
navigator.serviceWorker.getRegistrations().then(function(registrations) { | |
for(let registration of registrations) { | |
registration.unregister() | |
} }) |
NewerOlder