Skip to content

Instantly share code, notes, and snippets.

View 0xnu's full-sized avatar
⚔️

Finbarrs Oketunji 0xnu

⚔️
View GitHub Profile
@0xnu
0xnu / globalSalesTaxCalculator.ts
Last active March 20, 2024 18:18
Calculate Sales Tax with Global Tax API.
import axios from 'axios';
interface TaxData {
vendor_country: string;
customer_country: string;
service_type_code: string;
item_amount: number;
shipping_cost: number;
}
@0xnu
0xnu / fix_yum.sh
Created October 20, 2022 07:13
Yum crashed with Keyboard Interrupt error
cd /usr/bin
sudo unlink python
sudo ln -s python2 python
yum update -y
@0xnu
0xnu / amzn2-pyenv.sh
Last active October 18, 2022 18:47
Install Pyenv on Amazon Linux 2
### prerequisites
sudo yum -y update
sudo yum -y install git tmux
sudo yum -y install @development zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils
### install `pyenv`
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
@0xnu
0xnu / CreateIssue.sh
Created April 17, 2021 09:35
travis create issue
#!/bin/bash
body="{ \"title\": \"Travis Build no. $TRAVIS_JOB_NUMBER failure \", \"body\": \"Error code: $TRAVIS_TEST_RESULT \n\n JOB URL : $TRAVIS_JOB_WEB_URL\", \"labels\": [\"critical\"]}"
curl -i \
-H "Authorization: token $TicketApi" \
-d "$body" \
https://api.github.com/repos/$TRAVIS_REPO_SLUG/issues
@0xnu
0xnu / LICENSE.rst
Last active February 17, 2023 12:50

The MIT License (MIT)

Copyright © 2023 Finbarrs Oketunji

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT

@0xnu
0xnu / missing_players.txt
Created January 14, 2020 15:11
2019-2020 NBA Players.
empty