Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

David Ibia boxpositron

🎯
Focusing
View GitHub Profile
View rename_js_files.sh
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
@boxpositron
boxpositron / processor.ts
Last active Apr 11, 2022
ComposeMessage Tracksend
View map.json
{
"PX1": "no_script",
"PX2": "js_bootstrap",
"PX3": "domready",
"PX4": "fingerprint",
"PX6": "nav_timing",
"PX7": "incognito",
"PX8": "score_session",
"PX9": "score_impression",
"PX10": "ui_interaction",
View recursion-example.js
const recursionExample = () =>
new Promise((resolve, reject) => {
const maxCycles = 10
let cycle = 0
const run = () => {
try {
if (cycle > maxCycles) {
throw new MaxTriesError(`Max of ${maxCycles} reached`)
}
View ec2-closed-instance.sh
sudo yum update -y
sudo yum install epel-release -y
sudo yum install git -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
View xserver-validation.md

xServer API Documentation

Base URL

https://xserver.boxmarshall.com/api/v2/authorize

Validation Endpoint

Validation will fail if license key is not activated

@boxpositron
boxpositron / ec2-init.sh
Last active Jul 21, 2020
EC2 Setup Base - NGINX
View ec2-init.sh
sudo yum update -y
sudo amazon-linux-extras install epel -y
sudo yum install git -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
@boxpositron
boxpositron / example.py
Created Nov 16, 2019
XServer Python Integration
View example.py
import requests
class LicenseValidationError(Exception):
'''This exception is raised when license validation fails'''
pass
class LicenseActivationError(Exception):
'''This exception is raised when license activation fails'''
@boxpositron
boxpositron / README.md
Last active Aug 18, 2019
Team members and roles for the NYSC LMB Application
View README.md

Team Description

Name: David Ibia Github: boxpositron Roles: [Server Side Lead, Project Code Review]

Name: Adesuyi Adelekan Github: desuyi Roles: [Server Side Development]

@boxpositron
boxpositron / README.md
Last active Aug 10, 2019
Documentation for X Serial Server API
View README.md

Build Status

X Serial Generation API

Requirements

Every API request must have an associated bearer token that will be provided.
Requests made without this authorisation token will return a 403 Status