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)"
#!/bin/sh
RED='\e[1;41m'
GREEN='\e[1;42m'
NC='\033[0m'
echo "Checking PHPStan..."
phpstan analyse --memory-limit=256M --level 0 app --quiet
RESULT=$?
@hihebark
hihebark / kill_kinsing_kdevtmpfsi.sh
Last active May 7, 2021 11:48
an unsuitable quick solution to kill the kdevtmpfsi / kinsing malware spreading.
#!/bin/sh
# an unsuitable quick solution
# added it to crontab -e
ps -aux | grep -v grep | grep -E "kdevtmpfsi|kinsing" | awk '{print $2}' | while read line ; do kill -9 $line ; done && rm -rf /tmp/kdevtmpfsi* && rm -rf /tmp/kinsing*
echo "$(date) removing..."
@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 / Regex to Match Numbers in Plain french
Last active August 12, 2020 10:35
Regex to Match Numbers in Plain french from 1 to 100 JavaScript
/((?:(quatre(\-)?(vingt(s)?)?(\-)?(un|deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|(dix(\-(sept|huit|neuf))?))?)|(soixante(\-)?(deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|(dix(\-)?(sept|huit|neuf)?))?)|(dix(\-)?(sept|huit|neuf)?)|(vingt(\-)?(deux|trois|quatre|cinq|six|sept|huit|neuf)?)|(trente(\-)?(deux|trois|quatre|cinq|six|sept|huit|neuf)?)|(quarante(\-)?(deux|trois|quatre|cinq|six|sept|huit|neuf)?)|(cinquante(\-)?(deux|trois|quatre|cinq|six|sept|huit|neuf)?)|(cent)|(zero|un|deux|trois|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|(dix(\-)?(sept|huit|neuf)?)))[\s|et|\-|\/|_]*){5,}/ig
❶❷❸❹❺❻❼❽❾❿ ➊➋➌➍➎➏➐➑➒➓ ➀➁➂➃➄➅➆➇➈➉
½ ⅓ ⅔ ⅛ ⅜ ⅝ ⅞
♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓
♩ ♪ ♫ ♬ ♭ ♮ ♯ ◄◄ ◄ ■ ► ►►
☀ ☁ ☂ ☃ ☼ ϟ☽ ★ ☆ ☾ ✩ ✪ ✫ ✬ ✭ ✮ ✯ ✰
♔ ♕ ♖ ♗ ♘ ♙ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧
✽ ✾ ✿ ❀ ❁ ❂ ❃ ❄ ❅ ❆ ❇ ❈ ❉ ❊ ❋ ✱ ✲ ✳ ✴ ✵ ✶ ✷ ✸ ✹ ✺ ✻ ✼
↔ ↕ ← ↖ ↑ ↗ → ↘ ↓ ↙ ˿ ≪ « » ↨ ⇦ ⇧ ⇨ ⇩⇐⇑ ⇒⇓ ⇔ ⇕ ⇖ ⇗ ⇘ ⇙ ⇚ ⇛ ⇜ ⇝ ⇄ ⇅ ⇆ ⇇ ⇈ ⇉ ⇊ ↺ ↻ ↰ ↱ ↲ ↳ ↴ ↵ ↶ ↷ ← ↑ → ↓ ➜ ➝ ➞ ➟ ➡ ➥ ➦ ➨ ➩ ➪ ➯ ➱ ➲ ⋖ ⋗ ⋘ ⋙ ⋚ ⋛ ⋜ ⋝≤ ≥ ≦ ≧ ≨ ≩ ≪ ≫ ≲ ≳
☺ ☻ ッ ヅ ツ ゾ シ ジ
๏̯͡๏ ღ ஐ ₪ ۩۞۩ ๑۩۩๑ இ ๖ۣۜG☣ ☤ ☬ ☫ ☪ ☧ ❦ ❧ ♨ ☎
@hihebark
hihebark / ListOfHospitalsInAlgeria.json
Last active June 2, 2024 16:50
List of hospitals in Algeria - Liste des hôpitaux en Algérie - قائمة المستشفيات في الجزائر
{
"1": {
"name": "Wilaya d'Adrar",
"code": 1,
"hospital": [
"Hôpital d'Adrar|Hôpital Ibn Sina d'Adrar",
"Hôpital de Timimoun|Hôpital Mohamed Hachemi de Timimoun",
"Hôpital de Reggane",
"Hôpital d'Aoulef|Hôpital Noureddine Sahraoui d'Aoulef",
"Hôpital de Bordj Badji Mokhtar",
@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"

Keybase proof

I hereby claim:

  • I am hihebark on github.
  • I am hihebark (https://keybase.io/hihebark) on keybase.
  • I have a public key ASDHdU4KvlVD5CWeFV54itxT_s41bxTOAHUJPTDtx8zV-go

To claim this, I am signing this object:

@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'