Skip to content

Instantly share code, notes, and snippets.

View bitbd83's full-sized avatar
💭
{ varStealing = null; where var coDe = openSource }gth>openWare

BitBD bitbd83

💭
{ varStealing = null; where var coDe = openSource }gth>openWare
View GitHub Profile
# Install rvm system-wide
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Update the packages
apt-get update
apt-get upgrade
apt-get install build-essential
# get the packages required by ruby
rvm pkg install zlib
@bitbd83
bitbd83 / facebook-contact-info-summary.rb
Created March 23, 2018 07:29 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It dumps all cell phone call + SMS message + MMS records, plus a summary of each.
#
# Place this script inside the extracted Facebook data download folder
# alongside the 'html' folder.
#
@bitbd83
bitbd83 / auth.js
Created December 22, 2020 09:33 — forked from tooooolong/auth.js
// This code is a script used in Postman
// It can generate auth token for BigONE OpenAPI
function base64url(source) {
// Encode in classical base64
encodedSource = CryptoJS.enc.Base64.stringify(source);
// Remove padding equal characters
encodedSource = encodedSource.replace(/=+$/, '');