Skip to content

Instantly share code, notes, and snippets.

@Nerixyz
Nerixyz / vcvars.ps1
Last active February 5, 2023 08:22
Script to set Visual Studio Variables in powershell
function Test-CommandExists {
param ($command)
$oldPreference = $ErrorActionPreference
$ErrorActionPreference = 'stop'
try {
if(Get-Command $command) {
return $true
}
} catch {
@Nerixyz
Nerixyz / tcp-save.py
Created May 5, 2021 11:12
mitmproxy tcp-script
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
@Nerixyz
Nerixyz / README.md
Last active September 5, 2022 14:53
Web Audio API

Web Audio API

In here are neat scripts to make the most out of the Web Audio API.

You can paste them into the DevTools.

@Nerixyz
Nerixyz / tiktok.js
Created October 20, 2020 21:21
hackerCD - intercept canvas calls
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) => {
@Nerixyz
Nerixyz / README.md
Created July 11, 2020 19:23
Chingari Highlights to Video

Description

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.

Required

  • ffmpeg (built with nvenc and cuvid support
@Nerixyz
Nerixyz / insta-api-demo.js
Created July 6, 2019 18:14
insta-api-demo
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);
})();

Keybase proof

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: