Skip to content

Instantly share code, notes, and snippets.

View kristijorgji's full-sized avatar

Kristi Jorgji kristijorgji

View GitHub Profile
@kristijorgji
kristijorgji / zip_folders.sh
Last active February 20, 2025 13:48
zip_folders.sh
#!/bin/bash
#===============================================================================
# 📦 Folder Zipper Script
#===============================================================================
# This script zips all directories inside a given source directory and stores
# the zipped files inside a specified destination directory.
#
# USAGE:
# ./zip_folders.sh <sourceDir> <destDir>
@kristijorgji
kristijorgji / git-clone-all-org-repos
Last active February 20, 2025 13:36
A script allowing you to speed up the work and clone all repos of your organisation in one go
#!/bin/bash
#===============================================================================
# GitHub Organization Repository Cloner
# @kristijorgji
#===============================================================================
# This script clones all repositories of a specified GitHub organization into a
# designated folder. If a repository already exists, it pulls the latest changes.
#===============================================================================
# USAGE:
@kristijorgji
kristijorgji / git-rewrite.sh
Created June 17, 2021 11:54
git-rewrite.sh
#!/bin/sh
#===============================================================================
# This script will rewrite the history of your git commits based on the if condition below at line 20
# In this personal usage example, I add email to all commits that are without email set, and set my correct name
#===============================================================================
export GIT_REWRITE_LOG_FILE=/git-rewrite.log
echo '' > $GIT_REWRITE_LOG_FILE;
@kristijorgji
kristijorgji / letencrypt-copy-live.sh
Last active June 17, 2021 11:55
letencrypt-copy-live.sh
#!/usr/bin/env bash
# @kristijorgji
# This script copies all the live certbot/letsencrypt certificates to the dest you specify as first argument
# Example:
# bash letsencrypt-copy-live /home/ubuntu/certificates
DEST=$1
cd /etc/letsencrypt/live;
@kristijorgji
kristijorgji / graphql-field-finder.js
Created June 24, 2019 09:38 — forked from stubailo/graphql-field-finder.js
Find all GraphQL queries in your codebase that use a certain field
// This is a script that looks for usage of a specific field in GraphQL
// queries in your codebase.
//
// First, add a .graphqlconfig in your directory pointing to your schema
// Then, run the script with:
//
// node graphql-field-finder.js Field.name
//
// It will output a list of files and queries that contain the field you're
// looking for: