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 / crawler.go
Created January 9, 2025 15:15
A simple web crawler
package main
import (
"bytes"
"crypto/tls"
"fmt"
"log"
@hacktivist123
hacktivist123 / .zshrc
Created October 21, 2024 19:34
zshrc 2
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@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/[email protected]
# 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