find . -name '*.js' -exec sh -c 'mv "$0" "${0%.js}.jsx"' {} \;
for i in *; do convert $i "${i%.*}.webp"; done
β― autocannon -c 5 -a 5 --timeout 1000000 'http://143.110.241.172/stream?limit=100000' | |
Running 5 requests test @ http://143.110.241.172/stream?limit=100000 | |
5 connections | |
βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββββ¬βββββββββββ¬βββββββββββ | |
β Stat β 2.5% β 50% β 97.5% β 99% β Avg β Stdev β Max β | |
βββββββββββΌβββββββββββΌβββββββββββΌβββββββββββΌβββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββ€ | |
β Latency β 14475 ms β 14588 ms β 15197 ms β 15197 ms β 14666.8 ms β 270.1 ms β 15197 ms β |
import puppeteer from "puppeteer-extra"; | |
import StealthPlugin from "puppeteer-extra-plugin-stealth"; | |
puppeteer.use(StealthPlugin()); | |
(async () => { | |
const browser = await puppeteer.launch({ headless: false }); | |
const page = await browser.newPage(); | |
const navigationPromise = page.waitForNavigation(); | |
await page.goto("https://accounts.google.com/"); |
#!/bin/bash | |
# To ~/.bashrc file add line: | |
# source ~/.git-plugin-bash.sh | |
# Based on Oh My Zsh Git plugin (without zsh functions): | |
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh | |
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git | |
# |
// Go to https://www.linkedin.com/mynetwork/invitation-manager/ and run the following code | |
// For more amazing content, visit -- https://bit.ly/devtools-yt | |
var ACCEPT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(2)"; | |
var REJECT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(1)"; | |
var DELAY = 2000; // in miliseconds | 2 seconds delay between each request accept | |
var ACCEPT = true; // set to false if you want to reject all connections | |
function sleep() { |
π Morning 111 commits βββββββββββββββββββββ 12.0% | |
π Daytime 256 commits βββββββββββββββββββββ 27.6% | |
π Evening 352 commits βββββββββββββββββββββ 37.9% | |
π Night 209 commits βββββββββββββββββββββ 22.5% |
let centerX = 15 | |
let centerY = 15 | |
let radius = 10 | |
let style = "fill:rgb(200,200,255);" | |
const fs = require('fs') | |
let svg = "" | |
svg += '<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n' | |
svg += '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' |
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && npm install" \; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sine Wave</title> | |
<script type="text/javascript"> | |
function showAxes(ctx,axes) { | |
var width = ctx.canvas.width; | |
var height = ctx.canvas.height; | |
var xMin = 0; |
# https://stackoverflow.com/questions/25191620/ | |
# creating-lowpass-filter-in-scipy-understanding-methods-and-units | |
import numpy as np | |
from scipy.signal import butter, lfilter, freqz | |
from matplotlib import pyplot as plt | |
def butter_lowpass(cutoff, fs, order=5): | |
nyq = 0.5 * fs |