Skip to content

Instantly share code, notes, and snippets.

View YossiCohen's full-sized avatar
🍍
Be a Pineapple - Stand tall, wear a crown, and be sweet on the inside

Yossi Cohen YossiCohen

🍍
Be a Pineapple - Stand tall, wear a crown, and be sweet on the inside
View GitHub Profile
@YossiCohen
YossiCohen / README.MD
Last active August 20, 2025 22:00
PhotoRec Organizer for recovered files

🗂️ PhotoRec Organizer

Transform the chaos of recovered files into beautiful, organized perfection.

🚀 What is this?

PhotoRec is amazing at recovering lost files, but terrible at organizing them. You end up with thousands of files scattered across numbered directories with cryptic names. PhotoRec Organizer fixes that mess by creating a beautiful, logical file structure that makes sense. There are 2 versions - v1 and v2. V1 output folder structure: ORDER/[Extension]/[Size-Bucket]/[rec-folder-number]_[filename]

@YossiCohen
YossiCohen / README.md
Last active February 15, 2025 23:51
VeraCrypt Brute-force cracker

VeraCrypt Brute-force cracker

This is a very simple file that will help you recover a forgotten password for your VeraCrypt encrypted file. it works on windows only (I'm sure that with a some basic Bash knowladge you can translate it to linux too)

Instructions:

  1. Put both above files in VeraCrypt folder
  2. Fill up the word.list with optional passwords (you can generate it if there are too many)
  3. Edit VcCrack.cmd: a. Make sure that Drive Q: isn't mounted already (or change the Q in lines 4,6,7 to a different drive) b. replace the {{full path to the encrypted file}} with the relevant full path
@YossiCohen
YossiCohen / languageCompare.html
Last active April 29, 2020 15:10
Simple language comparison tool - for those who want to translate Snap - (should be placed in the project root - next to index.html)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div>
<h1>Insert two languages to compare</h1>
<h3>i.e.: he,de</h3>
@YossiCohen
YossiCohen / htz-bashrc
Created November 12, 2019 22:30 — forked from vsefer/htz-bashrc
Bash config from Hetzner
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@YossiCohen
YossiCohen / gitCheckoutFilter.sh
Created August 12, 2019 10:25
Smart git checkout command - lists branches with filter and allows selection of desired branch
#!/bin/bash
# Usage: gitCheckoutFilter.sh [filter]
# will list all branches with the relevant filter (grep) and allow branch selection
# i.e.
# ~/gitCheckoutFilter.sh yo
# 1) yossi_main
# 2) yossi_panel_redesign
##? 1
# Switched to branch 'yossi_main'
@YossiCohen
YossiCohen / web-servers.md
Created February 13, 2019 07:55 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@YossiCohen
YossiCohen / modal-dialog.service.js
Last active June 13, 2021 17:29
Simple wrapper for modal dialog $uibModal
araritApp.controller('modalDialogController', ['$scope','$state', '$uibModal', '$uibModalInstance', 'titleValue', 'textValue', 'buttons',
function ($scope, $state, $uibModal, $uibModalInstance, titleValue, textValue, buttons) {
$scope.title = titleValue;
$scope.text = textValue;
$scope.buttons = buttons;
$scope.btnClicked = function (callback) {
$uibModalInstance.close();
callback();
};