Skip to content

Instantly share code, notes, and snippets.

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

Shedrack akintayo hacktivist123

🏠
Working from home
View GitHub Profile
@hacktivist123
hacktivist123 / check_site.sh
Last active May 10, 2024 14:33
scrapes a site and sends a notification
#!/bin/bash
# Configuration
URL="https://cilium.slack.com/join/shared_invite/zt-2i32e3vq8-wZwHT3v2RCI0YNDiqkIK3g"
EXPECTED_TITLE="Join Cilium & eBPF on Slack | Slack"
LOG_FILE="$HOME/Developer/Isovalent/check_slack/website_check_log.txt"
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
ACCEPT_LANGUAGE="en-US,en;q=0.9"
@hacktivist123
hacktivist123 / count_stars.py
Last active November 28, 2023 16:07
This script calculate the total stars in all repos in a public Github Organisation
import requests
def get_org_repos(org_name, token):
"""Fetch all repositories for the specified organization."""
repos = []
page = 1
while True:
url = f'https://api.github.com/orgs/{org_name}/repos?page={page}'
headers = {'Authorization': f'token {token}'}
response = requests.get(url, headers=headers)
@hacktivist123
hacktivist123 / .zprofile
Created March 22, 2021 21:15
my zsh profile
# Setting PATH for Python 3.8
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
export PATH="$HOME/.cargo/bin:$PATH"
@hacktivist123
hacktivist123 / .zshrc
Last active July 10, 2021 13:38
my zsh config
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
export NVM_DIR="/Users/coder_blvck/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
@hacktivist123
hacktivist123 / config.yml
Created March 15, 2021 22:29
Circle CI Cloud Foundry Orb
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Use a package of configuration called an orb.
orbs:
# Declare a dependency on the cloudfoundry-orb
cloudfoundry: circleci/cloudfoundry@1.0.0
# Orchestrate or schedule a set of jobs
workflows:
cf-deploy:
jobs:
@hacktivist123
hacktivist123 / config.yml
Last active March 19, 2021 09:55
Cloud Foundry CircleCI
version: '2.1'
jobs:
install-login-deploy:
docker:
- image: cimg/base:stable
steps:
- checkout
- run:
name: Install Cloud Foundry CLI
@hacktivist123
hacktivist123 / .gitlab-ci.yml
Last active February 16, 2021 11:11
Config file for Gitlab CI
stages:
- build
- deploy
build:
image: node:14
stage: build
script:
- npm install
- npm audit fix

Keybase proof

I hereby claim:

  • I am hacktivist123 on github.
  • I am akintayoshedrack (https://keybase.io/akintayoshedrack) on keybase.
  • I have a public key whose fingerprint is 2C6D E887 D342 D9D8 C9C7 0672 0EFE FC0C 4715 5944

To claim this, I am signing this object:

//Given a String, return a new string with the reversed order of characters
// We'll be impementing it with 4 different solutions, to test out each solution just un-comment it
//solution 1
function reverse (str){
const arr = str.split('');
arr.reverse();
return arr.join('');
}