Skip to content

Instantly share code, notes, and snippets.

View RoLYroLLs's full-sized avatar
🎯
Focusing

RoLY roLLs RoLYroLLs

🎯
Focusing
View GitHub Profile
@RoLYroLLs
RoLYroLLs / findUppercase.bat
Created July 28, 2014 20:41
Script to find files and folders which contain any uppercase character.
@echo off
set folder="C:\"
for /f "delims=" %%A in ( ' dir /b %folder% ^| findstr /R "[ABCDEFGHIJKLMNOPQRSTUVWXYZ]" ' ) do (
echo path: %%~dpnxA
echo name: %%~nxA
echo.
)
@RoLYroLLs
RoLYroLLs / toLowerCase.bat
Last active August 29, 2015 14:04
A batch script to lowercase all files and directories within the contained directory
@echo off
setLocal EnableDelayedExpansion
for /F "tokens=*" %%I in ('dir /L /B /s') do (
set f=%%I
set f=!f:%%~dpI=!
ren "%%I" "!f!"
echo "%%I" "!f!"
)
@RoLYroLLs
RoLYroLLs / .bash_profile
Last active August 29, 2015 14:00
Git Aware Bash Prompt with some shell shortcuts to Git plumbing
# Git shortcuts
alias gb='git branch'
alias gs='git status'
alias gsu='git status -su'
alias ga='git add'
alias gaa='git add -A'
alias gun='git reset HEAD'
alias gc='git commit'
alias gcm='git commit -m'
alias gco='git checkout'
@RoLYroLLs
RoLYroLLs / .gitconfig
Last active October 10, 2016 23:15
Small list of personal git config
[user]
name = [name]
email = [email]
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
# windows; if on a windows machine, uncomment line below
#autocrfl = true