Skip to content

Instantly share code, notes, and snippets.

Busy in getting busier

Ravi Kumar Prasad ravikp7

Busy in getting busier
View GitHub Profile
subfuzion /
Last active March 23, 2023 01:33
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

stigok / githook.js
Last active March 14, 2023 15:36
Verify GitHub webhook signature header in Node.js
View githook.js
* Verify GitHub webhook signature header in Node.js
* Written by stigok and others (see gist link for contributor comments)
* Licensed CC0 1.0 Universal
const crypto = require('crypto')
const express = require('express')
const bodyParser = require('body-parser')
jsoverson / intercept.js
Created February 19, 2019 21:28
Intercept responses with chrome and puppeteer
View intercept.js
const puppeteer = require('puppeteer');
const prettier = require('prettier');
const atob = require('atob');
const btoa = require('btoa');
const scriptUrlPatterns = [
const requestCache = new Map();
jadonk /
Last active January 26, 2022 13:38
Hacks and node-beaglebone-boot

Current status:

playdoh:BBBlfs jason$ node --version
playdoh:BBBlfs jason$ gcc --version
Configured with: --prefix=/Applications/ --with-gxx-include-dir=/Applications/
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
fstab /
Last active January 5, 2022 12:31
How to use and as an IRC client

How to use and as an IRC client

How to Join an IRC Channel on

Join the room #freenode_<#channel>, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room on

In, rooms can be joined with the directory symbol on the bottom left.

jadonk /
Last active April 9, 2021 18:42
Add X11 to a BeagleBone IoT image

As 'root' perform the following:

git clone
apt-get install -y --no-install-recommends xinput xinput-calibrator xorg xserver-xorg-video-fbdev \
    xserver-xorg-video-modesetting lightdm xserver-xorg-core xserver-xorg-input-joystick \
    dbus-x11 openbox cmst compton-conf libfm-tools libgl1-mesa-dri lximage-qt	\
    lxqt-about lxqt-admin lxqt-common lxqt-config lxqt-globalkeys lxqt-notificationd	\
    lxqt-panel lxqt-policykit lxqt-runner lxqt-session lxqt-sudo	\
 obconf pcmanfm-qt qterminal \
jhermsmeier /
Last active May 10, 2017 20:33
Copy a source to target in a very fast & memory efficient way


After many hours of trial and error, self-optimizing streams and such, I have finally found the fastest (?) and most efficient (?) way to copy an image from a given source to a given target.

There where several constraints that had to be as optimal as possible:

  • Speed
  • Memory consumption