Skip to content

Instantly share code, notes, and snippets.

View hihebark's full-sized avatar
🔻

N.Amara hihebark

🔻
View GitHub Profile
@hihebark
hihebark / functions.sh
Created September 11, 2024 10:45 — forked from mortenscheel/functions.sh
Laravel specific git hooks for post-checkout and post-merge
#!/usr/bin/env bash
NC='\033[0m' # No Color
YELLOW='\033[0;33m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
RED='\033[0;31m'
MAGENTA='\033[0;35m'
notify_about_actions_required() {
changed_files="$(git diff-tree -r --name-status --no-commit-id $1 $2)"
@hihebark
hihebark / jwtRS256.sh
Last active January 9, 2021 20:08 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f private.jwt.key
# Don't add passphrase
openssl rsa -in private.jwt.key -pubout -outform PEM -out public.jwt.key.pub
@hihebark
hihebark / main.go
Created January 26, 2020 21:01 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@hihebark
hihebark / LinuxPrivEsc.sh
Created January 24, 2018 17:59 — forked from 1N3/LinuxPrivEsc.sh
Linux Privilege Escalation Script by 1N3 @CrowdShield - https://crowdshield.com
#!/bin/sh
#
# `7MN. `7MF'
# __, MMN. M
#`7MM M YMb M pd""b.
# MM M `MN. M (O) `8b
# MM M `MM.M ,89
# MM M YMM ""Yb.
#.JMML..JML. YM 88
# (O) .M'