Skip to content

Instantly share code, notes, and snippets.

View boxpositron's full-sized avatar
🎯
Focusing

David Ibia boxpositron

🎯
Focusing
View GitHub Profile
@boxpositron
boxpositron / comma_seperated_list_tuple.py
Last active December 11, 2018 10:29
Write a program which accepts a sequence of comma-seperated numbers from console and generate a list and a tuple which contains every number
import sys
'''
Write a program which accepts a sequence of comma-seperated
numbers from console and generate a list and a tuple which
contains every number
'''
def create_list(data):
@boxpositron
boxpositron / README.md
Last active August 10, 2019 03:36
Documentation for X Serial Server API

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

@boxpositron
boxpositron / README.md
Last active August 18, 2019 21:40
Team members and roles for the NYSC LMB Application

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 / example.py
Created November 16, 2019 12:53
XServer Python Integration
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'''

xServer API Documentation

Base URL

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

Validation Endpoint

Validation will fail if license key is not activated

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 -
@boxpositron
boxpositron / ec2-init.sh
Last active July 21, 2020 11:27
EC2 Setup Base - NGINX
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
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`)
}
@boxpositron
boxpositron / map.json
Created October 22, 2021 10:38 — forked from drain/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",
@boxpositron
boxpositron / processor.ts
Last active April 11, 2022 10:00
ComposeMessage Tracksend
‎‎​