Skip to content

Instantly share code, notes, and snippets.

View saladinjake's full-sized avatar
🏠
Working from home

Example Codes saladinjake

🏠
Working from home
View GitHub Profile
@saladinjake
saladinjake / bankcode.txt
Created September 21, 2024 06:15 — forked from donejeh/bankcode.txt
Nigeria Banks Code List
'120001' '9mobile 9Payment Service Bank'
'801' 'Abbey Mortgage Bank'
'51204' 'Above Only MFB'
'51312' 'Abulesoro MFB'
'044' 'Access Bank'
'063' 'Access Bank (Diamond)'
'120004' 'Airtel Smartcash PSB'
'035A' 'ALAT by WEMA'
'50926' 'Amju Unique MFB'
'50083' 'Aramoko MFB'
@saladinjake
saladinjake / banks.json
Created September 21, 2024 06:12 — forked from LordGhostX/banks.json
List of Nigerian Banks and Codes
{
"9 payment service Bank": "120001",
"AB MICROFINANCE BANK": "090270",
"ABBEY MORTGAGE BANK": "070010",
"ABOVE ONLY MICROFINANCE BANK": "090260",
"ABU MICROFINANCE BANK": "090197",
"ACCESS BANK": "000014",
"ACCESSMONEY": "100013",
"ACCION MFB": "090134",
"ADDOSSER MFBB": "090160",
@saladinjake
saladinjake / codility_solutions.txt
Created November 3, 2020 07:32 — forked from lalkmim/codility_solutions.txt
Codility Solutions in JavaScript
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
@saladinjake
saladinjake / codility_solutions.txt
Created November 3, 2020 07:32 — forked from lalkmim/codility_solutions.txt
Codility Solutions in JavaScript
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
@saladinjake
saladinjake / self-signed_ssl_cert.md
Created May 15, 2019 15:19 — forked from clcollins/self-signed_ssl_cert.md
Generate an SSL Key, Certificate Request and Self-Signed Certificate

How to Generate an SSL Key, Certificate Request and Self-Signed Certificate

Replace <hostname> with your site's primary name.

Generate the key:

openssl genrsa -out <hostname>.key 2048

Generate the certificate request:

@saladinjake
saladinjake / more-advanced-docker
Created May 15, 2019 15:19 — forked from clcollins/more-advanced-docker
Slightly More Advanced Docker
Other Stuff to Cover
====================
(Used in conjunction with [Linux@Duke Intro To Docker](https://github.com/LinuxAtDuke/Intro-To-Docker))
* Processes Inside/Outside
* Env Vars
* Naming
* Linking
* Logging
@saladinjake
saladinjake / docker-appstack-wordpress
Created May 15, 2019 15:19 — forked from clcollins/docker-appstack-wordpress
Docker Appstack WP Instance, via command line
#!/bin/bash
# Version 1.2 - 2015-01-07
# https://gist.github.com/clcollins/cfab1f63dc1aa927bf9f
# REQUIRES:
#
# Software -
# 1. Docker: https://docker.com
#
@saladinjake
saladinjake / wp-upgrade.sh
Created May 15, 2019 15:18 — forked from clcollins/wp-upgrade.sh
WP-CLI Site Upgrade
#!/bin/bash
#
# TODO:
# How to handle NOT running the DB upgrade if it's not needed?
HOSTNAME="$(/bin/hostname)"
TMPDIR='/tmp'
MAILFROM="patch.adams@$HOSTNAME"
MAILTO="$@"
@saladinjake
saladinjake / run-docker-container.sh
Created May 15, 2019 15:18 — forked from clcollins/run-docker-container.sh
Bash script to easily setup and run Docker containers to test any given project
#!/bin/bash
# Set to true to just see what command
# would be run
DRY_RUN=false
TITLE='MY-TEST-CONTAINER'
IMAGE='MY-IMAGE'
# Local volume to be mapped into the container any time you run it
# usually with config files or whatnot
@saladinjake
saladinjake / throwaway_ssh_keypair.sh
Created May 15, 2019 15:17 — forked from clcollins/throwaway_ssh_keypair.sh
Generate throwaway SSH key pairs for automated ... things.
#!/bin/bash
error () {
local msg="${1}"
echo "${msg}"
exit 1
}
make_tempdir () {