Skip to content

Instantly share code, notes, and snippets.

View ravikp7's full-sized avatar
Busy in getting busier

Ravi Kumar Prasad ravikp7

Busy in getting busier
View GitHub Profile
subfuzion /
Last active April 20, 2024 13:17
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.

jsoverson / intercept.js
Created February 19, 2019 21:28
Intercept responses with chrome and puppeteer
const puppeteer = require('puppeteer');
const prettier = require('prettier');
const atob = require('atob');
const btoa = require('btoa');
const scriptUrlPatterns = [
const requestCache = new Map();
stigok / githook.js
Last active July 30, 2023 09:46
Verify GitHub webhook signature header in Node.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')
jadonk /
Last active May 23, 2023 16:20
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 \
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.