Scraping the 1000 data from this site and save it as a json file.
From this site: https://f2e-test.herokuapp.com
Username | Password |
---|
WooCommerce | |
Asked 8 years, 2 months ago | |
Active 2 months ago | |
Viewed 28k times | |
9 | |
7 | |
I want to add a New Payment Method in WooCommerce. |
#!/bin/bash | |
# Program name: pingLoop.sh | |
# Run: source pingLoop.sh | |
# put your target list of ip to arr | |
declare -a arr=("192.168.0.1" "192.168.0.2") | |
for ip in "${arr[@]}" | |
do | |
# change 200 to the number of packets that you want |
url=https://abc.com | |
max=999999 | |
for ((i=1;i<=$max;i++)); do curl -v --header "Connection: keep-alive" "$url"; done |
Scraping the 1000 data from this site and save it as a json file.
From this site: https://f2e-test.herokuapp.com
Username | Password |
---|
// example of fetching a | |
(async function(){ | |
const fetch = require('node-fetch') | |
const fs = require('fs') | |
const cheerio = require('cheerio') | |
const html = await fetch(`http://www.macaodaily.com/html/2018-11/25/node_2.htm`).then(res => res.text()) | |
const path = `./temp/${year}-${month}` |
const fs = require('fs'); | |
Array.prototype.remove = function(data) { | |
const dataIdx = this.indexOf(data) | |
if(dataIdx >= 0) { | |
this.splice(dataIdx ,1); | |
} | |
return this.length; | |
} |
/* | |
JavaScript Caesar shift | |
by Evan Hahn (evanhahn.com) | |
* * * * * * * * * * * * | |
For small occasions (like month-anniversaries), I like to make little websites | |
for people that only "unlock" on the right day. |
window.addEventListener('scroll', function(){ | |
console.log(window.pageYOffset) | |
}) |
import React from 'react' | |
import { connect } from 'react-redux' | |
import { mount, shallow } from 'enzyme' | |
import ToastList from '../../../src/components/common/ToastList' | |
jest.mock('../../../src/components/common/ToastList/ToastItem/index.js', () => | |
(props) => <mock-toast-item id={props.id}> | |
{props.msg} | |
</mock-toast-item> | |
) |