Skip to content

Instantly share code, notes, and snippets.

View undavide's full-sized avatar

Davide Barranca undavide

  • Sr. Developer Relations Engineer at Adobe
  • Bologna (countryside), Italy
  • 16:13 (UTC +01:00)
View GitHub Profile
@undavide
undavide / lexer.py
Last active April 21, 2021 11:06 — forked from mandiwise/lexer.py
Mostly working JSX lexer for Pygments
# -*- coding: utf-8 -*-
"""
pygments.lexers.jsx
~~~~~~~~~~~~~~~~~~~~
Lexers for JSX formats.
Based on https://github.com/fcurella/jsx-lexer
"""
import re
@undavide
undavide / find-corrupted-files.sh
Last active May 8, 2018 09:57 — forked from JavierAroche/find-corrupted-files.sh
Find corrupted files using GM identify
folderToCheck='/Volumes/16TB/whatever/path'
outputFile=~/Desktop/FileIntegrity.log
counter=1
Red="\033[0;31m" # Red
Green="\033[0;32m" # Green
Color_Off="\033[0m" # Text Reset
cd "${folderToCheck}"
# Find all files and get count