I hereby claim:
- I am nerixyz on github.
- I am nerix (https://keybase.io/nerix) on keybase.
- I have a public key ASDDLHJUz1NmLEWt0B4q4HU3O7ilmrBxjRWUlqIA5qlFQwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const IgApiClient = require('instagram-private-api').IgApiClient; | |
const ig = new IgApiClient(); | |
ig.state.generateDevice(process.env.IG_USERNAME); | |
// you'll have to define IG_USERNAME and IG_PASSWORD | |
(async ()=>{ | |
const response = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD); | |
console.log(response); | |
})(); |
This is a small script to automatically scrape the tranding section of the indian TikTok alternative Chingari. It uses ffmpeg to transcode and concatenate videos. As a performance optimization, cuvid and nvenc are used to offload work to the GPU which results in 5 to 10 times higher transcoding/concatenation speeds.
function wrapObject(fn, that, args, name) { | |
const instance = fn.apply(that, args); | |
instance.__base = instance; | |
return new Proxy(instance, { | |
get: (target, key) => { | |
if(!['__base'].includes(key)) console.log(`[GET] ${name}.${key}`); | |
const value = target[key]; | |
return value; | |
}, | |
set: (target, key, value) => { |
In here are neat scripts to make the most out of the Web Audio API.
You can paste them into the DevTools.
import os.path | |
import typing | |
from mitmproxy import command | |
from mitmproxy import flow | |
from mitmproxy import tcp | |
from mitmproxy import exceptions | |
from mitmproxy import ctx | |
import json | |
import base64 |
function Test-CommandExists { | |
param ($command) | |
$oldPreference = $ErrorActionPreference | |
$ErrorActionPreference = 'stop' | |
try { | |
if(Get-Command $command) { | |
return $true | |
} | |
} catch { |