Skip to content

Instantly share code, notes, and snippets.

View hihebark's full-sized avatar
🔻

N.Amara hihebark

🔻
View GitHub Profile
@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'
@hihebark
hihebark / makemoney.js
Created January 20, 2018 13:54
coinhive
(function(window){"use strict";var Miner=function(siteKey,params){this.params=params||{};this._siteKey=siteKey;this._user=null;this._threads=[];this._hashes=0;this._currentJob=null;this._autoReconnect=true;this._reconnectRetry=3;this._tokenFromServer=null;this._goal=0;this._totalHashesFromDeadThreads=0;this._throttle=Math.max(0,Math.min(.99,this.params.throttle||0));this._stopOnInvalidOptIn=false;this._waitingForAuth=false;this._selfTestSuccess=false;this._autoThreads={enabled:!!this.params.autoThreads,interval:null,adjustAt:null,adjustEvery:1e4,stats:{}};this._tab={ident:Math.random()*16777215|0,mode:CoinHive.IF_EXCLUSIVE_TAB,grace:0,waitReconnect:0,lastPingReceived:0,interval:null};if(window.BroadcastChannel){try{this._bc=new BroadcastChannel("coinhive");this._bc.onmessage=function(msg){if(msg.data==="ping"){this._tab.lastPingReceived=Date.now()}}.bind(this)}catch(e){}}if(CoinHive.CONFIG.REQUIRES_AUTH){this._auth=new CoinHive.Auth(this._siteKey,{theme:this.params.theme||"light",lang:this.params.language||"a
@hihebark
hihebark / broker.py
Last active January 15, 2018 16:08
python broker that work with java clients
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" LICENSE:
Copyleft 2018 Hihebark
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
( CopyLeft License ) any later version.